Fix l10n handling on Debian 11

Fixes bug #1542
This commit is contained in:
Jan Dittberner 2022-07-07 17:56:50 +02:00 committed by Jan Dittberner
parent 9140217aa7
commit 687497c82f

View file

@ -302,9 +302,9 @@ class L10n {
$locale = self::$locales[$translation_code];
// set up locale
if ( !putenv("LANG=$locale") ) {
if ( !putenv("LANGUAGE=$locale") ) {
trigger_error("L10n::set_translation(): could not set the ".
"environment variable LANG to $locale", E_USER_WARNING);
"environment variable LANGUAGE to $locale", E_USER_WARNING);
return false;
}
if ( !setlocale(LC_ALL, $locale) ) {