mirror of
https://git.proxmox.com/git/grub2
synced 2025-10-04 15:29:30 +00:00
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
This commit is contained in:
parent
a7b960126f
commit
ddc3423d5c
@ -427,6 +427,11 @@ grub_gettext_init_ext (struct grub_gettext_context *ctx,
|
|||||||
if (locale[0] == 'e' && locale[1] == 'n'
|
if (locale[0] == 'e' && locale[1] == 'n'
|
||||||
&& (locale[2] == '\0' || locale[2] == '_'))
|
&& (locale[2] == '\0' || locale[2] == '_'))
|
||||||
grub_errno = err = GRUB_ERR_NONE;
|
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;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user