]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
templates: Filter C.UTF-8 locale for translation
authorChristian Hesse <mail@eworm.de>
Mon, 19 Sep 2022 13:31:28 +0000 (15:31 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 4 Oct 2022 14:59:38 +0000 (16:59 +0200)
In addition to C locale there is also C.UTF-8 locale now. Filter that as
well, by using ${grub_lang}, which contains a stripped value.
This fixes the following message and resulting boot failure:

    error: file `/boot/grub/locale/C.gmo' not found.

Signed-off-by: Christian Hesse <mail@eworm.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub.d/00_header.in

index f74c2a4c6df74779b9ed7ba7cce477afc03ec006..6a316a5ba77ef892bf0f4d1ef20758e0a1628604 100644 (file)
@@ -191,7 +191,7 @@ EOF
 EOF
 
 # Gettext variables and module
-if [ "x${LANG}" != "xC" ] && [ "x${LANG}" != "xPOSIX" ] && [ "x${LANG}" != "x" ]; then
+if [ "x${grub_lang}" != "xC" ] && [ "x${LANG}" != "xPOSIX" ] && [ "x${LANG}" != "x" ]; then
   cat << EOF
   set locale_dir=\$prefix/locale
   set lang=${grub_lang}