Merge branch 'master' into develop
This commit is contained in:
commit
a665422e53
2 changed files with 5 additions and 2 deletions
|
@ -98,7 +98,8 @@ module.exports = function (grunt) {
|
|||
},
|
||||
files: {
|
||||
'i18n/fr_FR/LC_MESSAGES/Alltube.mo': 'i18n/fr_FR/LC_MESSAGES/Alltube.po',
|
||||
'i18n/zh_CN/LC_MESSAGES/Alltube.mo': 'i18n/zh_CN/LC_MESSAGES/Alltube.po'
|
||||
'i18n/zh_CN/LC_MESSAGES/Alltube.mo': 'i18n/zh_CN/LC_MESSAGES/Alltube.po',
|
||||
'i18n/es_ES/LC_MESSAGES/Alltube.mo': 'i18n/es_ES/LC_MESSAGES/Alltube.po'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue