* [PATCH 1/1] templates: filter C.UTF-8 locale for translation
@ 2022-09-19 13:31 Christian Hesse
2022-09-22 17:10 ` Daniel Kiper
0 siblings, 1 reply; 2+ messages in thread
From: Christian Hesse @ 2022-09-19 13:31 UTC (permalink / raw)
To: grub-devel; +Cc: Christian Hesse
From: Christian Hesse <mail@eworm.de>
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>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--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}
--
2.37.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] templates: filter C.UTF-8 locale for translation
2022-09-19 13:31 [PATCH 1/1] templates: filter C.UTF-8 locale for translation Christian Hesse
@ 2022-09-22 17:10 ` Daniel Kiper
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Kiper @ 2022-09-22 17:10 UTC (permalink / raw)
To: Christian Hesse; +Cc: grub-devel, Christian Hesse
On Mon, Sep 19, 2022 at 03:31:28PM +0200, Christian Hesse wrote:
> From: Christian Hesse <mail@eworm.de>
>
> 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>
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-22 17:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-19 13:31 [PATCH 1/1] templates: filter C.UTF-8 locale for translation Christian Hesse
2022-09-22 17:10 ` Daniel Kiper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.