mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
Translator: Also adjust env var LANGUAGE
when setting up the locale
fixes #3750
This commit is contained in:
parent
ef470b3c1d
commit
4af672fdfa
@ -187,6 +187,9 @@ class Translator
|
|||||||
$locale = setlocale(LC_ALL, 0);
|
$locale = setlocale(LC_ALL, 0);
|
||||||
putenv('LC_ALL=' . $locale); // Failsafe, Win and Unix
|
putenv('LC_ALL=' . $locale); // Failsafe, Win and Unix
|
||||||
putenv('LANG=' . $locale); // Windows fix, untested
|
putenv('LANG=' . $locale); // Windows fix, untested
|
||||||
|
|
||||||
|
// https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html
|
||||||
|
putenv('LANGUAGE=' . $localeName . ':' . getenv('LANGUAGE'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user