From: Christian Hesse Date: Mon, 19 Sep 2022 13:31:28 +0000 (+0200) Subject: templates: Filter C.UTF-8 locale for translation X-Git-Tag: grub-2.12-rc1~260 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f42266a8a2a4215e4ffe419b8092bdf9ced33e8e;p=thirdparty%2Fgrub.git 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 Reviewed-by: Daniel Kiper --- diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in index f74c2a4c6..6a316a5ba 100644 --- a/util/grub.d/00_header.in +++ b/util/grub.d/00_header.in @@ -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}