Merge pull request 'Fix l10n handling on Debian 11' (#1) from fix-l10n-bug-1542 into master

Reviewed-on: #1
pull/4/head
Jan Dittberner 2 years ago
commit 2884caf1a5

@ -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) ) {

Loading…
Cancel
Save