Hotfix: detect installed UTF-8 locales
This commit is contained in:
parent
aee67fa869
commit
e315d602f2
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,9 @@ class LocaleManager
|
||||||
$process->run();
|
$process->run();
|
||||||
$installedLocales = explode(PHP_EOL, trim($process->getOutput()));
|
$installedLocales = explode(PHP_EOL, trim($process->getOutput()));
|
||||||
foreach ($this->supportedLocales as $supportedLocale) {
|
foreach ($this->supportedLocales as $supportedLocale) {
|
||||||
if (in_array($supportedLocale, $installedLocales)) {
|
if (in_array($supportedLocale, $installedLocales)
|
||||||
|
|| in_array($supportedLocale.'.utf8', $installedLocales)
|
||||||
|
) {
|
||||||
$return[] = new Locale($supportedLocale);
|
$return[] = new Locale($supportedLocale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue