]> git.proxmox.com Git - grub2.git/commitdiff
Silence error messages when translations are unavailable
authorColin Watson <cjwatson@ubuntu.com>
Mon, 13 Jan 2014 12:13:02 +0000 (12:13 +0000)
committerColin Watson <cjwatson@debian.org>
Fri, 24 Sep 2021 21:18:50 +0000 (22:18 +0100)
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

index 4d02e62c10995f283c1b0db5f1eaede816362bc9..2a19389f2af8b2b66776ffa3fbabe39d2dceec9a 100644 (file)
@@ -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;
 }