Hotfix: detect installed UTF-8 locales

This commit is contained in:
Pierre Rudloff 2017-10-12 23:28:54 +02:00
parent aee67fa869
commit e315d602f2

View file

@ -63,7 +63,9 @@ class LocaleManager
$process->run();
$installedLocales = explode(PHP_EOL, trim($process->getOutput()));
foreach ($this->supportedLocales as $supportedLocale) {
if (in_array($supportedLocale, $installedLocales)) {
if (in_array($supportedLocale, $installedLocales)
|| in_array($supportedLocale.'.utf8', $installedLocales)
) {
$return[] = new Locale($supportedLocale);
}
}