templates: Filter C.UTF-8 locale for translation
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>
This commit is contained in:
parent
8d59cbd64e
commit
f42266a8a2
@ -191,7 +191,7 @@ EOF
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Gettext variables and module
|
# 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
|
cat << EOF
|
||||||
set locale_dir=\$prefix/locale
|
set locale_dir=\$prefix/locale
|
||||||
set lang=${grub_lang}
|
set lang=${grub_lang}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user