Merge branch 'master' into develop

This commit is contained in:
Pierre Rudloff 2017-10-12 23:49:51 +02:00
commit a665422e53
2 changed files with 5 additions and 2 deletions

View file

@ -98,7 +98,8 @@ module.exports = function (grunt) {
}, },
files: { files: {
'i18n/fr_FR/LC_MESSAGES/Alltube.mo': 'i18n/fr_FR/LC_MESSAGES/Alltube.po', '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'
} }
} }
}, },

View file

@ -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);
} }
} }