mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-27 09:19:51 +00:00
Silence error messages when translations are unavailable.
This commit is contained in:
parent
92c042b6b3
commit
fe65cbefd2
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -38,6 +38,7 @@ grub2 (2.00-1) UNRELEASED; urgency=low
|
|||||||
* Backport from upstream:
|
* Backport from upstream:
|
||||||
- Don't decrease efi_mmap_size (LP: #1046429).
|
- Don't decrease efi_mmap_size (LP: #1046429).
|
||||||
* grub-common Suggests: console-setup for grub-kbdcomp (closes: #686815).
|
* grub-common Suggests: console-setup for grub-kbdcomp (closes: #686815).
|
||||||
|
* Silence error messages when translations are unavailable.
|
||||||
|
|
||||||
-- Christian Perrier <bubulle@debian.org> Sat, 02 Jun 2012 19:51:35 +0200
|
-- Christian Perrier <bubulle@debian.org> Sat, 02 Jun 2012 19:51:35 +0200
|
||||||
|
|
||||||
|
25
debian/patches/gettext_quiet.patch
vendored
Normal file
25
debian/patches/gettext_quiet.patch
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
Description: Silence error messages when translations are unavailable
|
||||||
|
Author: Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
Bug: https://savannah.gnu.org/bugs/?35880
|
||||||
|
Forwarded: https://savannah.gnu.org/bugs/?35880
|
||||||
|
Last-Update: 2012-09-06
|
||||||
|
|
||||||
|
Index: b/grub-core/gettext/gettext.c
|
||||||
|
===================================================================
|
||||||
|
--- a/grub-core/gettext/gettext.c
|
||||||
|
+++ b/grub-core/gettext/gettext.c
|
||||||
|
@@ -412,6 +412,14 @@
|
||||||
|
|
||||||
|
grub_free (lang);
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ /* If no translations are available, fall back to untranslated text. */
|
||||||
|
+ if (err == GRUB_ERR_FILE_NOT_FOUND)
|
||||||
|
+ {
|
||||||
|
+ grub_errno = GRUB_ERR_NONE;
|
||||||
|
+ return 0;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -14,3 +14,4 @@ mkconfig_loopback.patch
|
|||||||
efi_disk_cache.patch
|
efi_disk_cache.patch
|
||||||
restore_mkdevicemap.patch
|
restore_mkdevicemap.patch
|
||||||
efi_mmap_size.patch
|
efi_mmap_size.patch
|
||||||
|
gettext_quiet.patch
|
||||||
|
@ -412,6 +412,14 @@ grub_gettext_init_ext (struct grub_gettext_context *ctx,
|
|||||||
|
|
||||||
grub_free (lang);
|
grub_free (lang);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If no translations are available, fall back to untranslated text. */
|
||||||
|
if (err == GRUB_ERR_FILE_NOT_FOUND)
|
||||||
|
{
|
||||||
|
grub_errno = GRUB_ERR_NONE;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user