diff options
author | ozgursarier | 2017-11-12 16:40:31 +0300 |
---|---|---|
committer | ozgursarier | 2017-11-12 16:40:31 +0300 |
commit | 34d117402eaf3d2e1b63b98156e7faa853183b48 (patch) | |
tree | 3c6fbe121301a1320b4a33cafbcd1d66e1db21dc /05-gettext_quiet.patch | |
download | aur-34d117402eaf3d2e1b63b98156e7faa853183b48.tar.gz |
Initial import
Diffstat (limited to '05-gettext_quiet.patch')
-rw-r--r-- | 05-gettext_quiet.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/05-gettext_quiet.patch b/05-gettext_quiet.patch new file mode 100644 index 000000000000..162b01afd439 --- /dev/null +++ b/05-gettext_quiet.patch @@ -0,0 +1,30 @@ +From 56c88e431207238935aee7d7245a458ddb21e3d2 Mon Sep 17 00:00:00 2001 +From: Colin Watson <cjwatson@ubuntu.com> +Date: Mon, 13 Jan 2014 12:13:02 +0000 +Subject: Silence error messages when translations are unavailable + +Bug: https://savannah.gnu.org/bugs/?35880 +Forwarded: https://savannah.gnu.org/bugs/?35880 +Last-Update: 2013-11-14 + +Patch-Name: gettext_quiet.patch +--- + grub-core/gettext/gettext.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/grub-core/gettext/gettext.c b/grub-core/gettext/gettext.c +index 4880cefe3..3098e8918 100644 +--- a/grub-core/gettext/gettext.c ++++ b/grub-core/gettext/gettext.c +@@ -427,6 +427,11 @@ grub_gettext_init_ext (struct grub_gettext_context *ctx, + if (locale[0] == 'e' && locale[1] == 'n' + && (locale[2] == '\0' || locale[2] == '_')) + grub_errno = err = GRUB_ERR_NONE; ++ ++ /* If no translations are available, fall back to untranslated text. */ ++ if (err == GRUB_ERR_FILE_NOT_FOUND) ++ grub_errno = err = GRUB_ERR_NONE; ++ + return err; + } + |