projects
/
grub2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84681d1
)
Silence error messages when translations are unavailable
author
Colin Watson
<cjwatson@ubuntu.com>
Mon, 13 Jan 2014 12:13:02 +0000
(12:13 +0000)
committer
Mate Kukri
<mate.kukri@canonical.com>
Tue, 10 Feb 2026 11:27:19 +0000
(11:27 +0000)
Bug: https://savannah.gnu.org/bugs/?35880
Forwarded: https://savannah.gnu.org/bugs/?35880
Last-Update: 2013-11-14
Patch-Name: gettext-quiet.patch
Gbp-Pq: Name gettext-quiet.patch
grub-core/gettext/gettext.c
patch
|
blob
|
history
diff --git
a/grub-core/gettext/gettext.c
b/grub-core/gettext/gettext.c
index edebed9984e85c03aec0ef8d94e520fe6bf0545d..cf4c75e47f51bd6d614c78d4a4dce3f2741a999a 100644
(file)
--- a/
grub-core/gettext/gettext.c
+++ b/
grub-core/gettext/gettext.c
@@
-432,6
+432,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;
}