]> git.ipfire.org Git - thirdparty/grub.git/commit
templates: Filter out POSIX locale for translation
authorMichael Chang <mchang@suse.com>
Tue, 26 Oct 2021 07:11:00 +0000 (15:11 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 22 Nov 2021 14:55:06 +0000 (15:55 +0100)
commit5983c2c6adf1c1bbb3ecd751253d1e898bdfd8a3
treeba808b9cb019824325572d0e1eaa4780426fb75a
parent29d44a236a5e939b8ff24e6c31141d5b1e48f693
templates: Filter out POSIX locale for translation

The POSIX locale is default or native operating system's locale
identical to the C locale, so no translation to human speaking languages
are provided. For this reason we should filter out LANG=POSIX as well as
LANG=C upon generating grub.cfg to avoid looking up for it's gettext's
message catalogs that will consequently result in an unpleasant message:

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

Signed-off-by: Michael Chang <mchang@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub.d/00_header.in