From e315d602f2cac38fbed031e25d20b8cf076990a8 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 12 Oct 2017 23:28:54 +0200 Subject: [PATCH 1/2] Hotfix: detect installed UTF-8 locales --- classes/LocaleManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/LocaleManager.php b/classes/LocaleManager.php index aeed169..7e36e8c 100644 --- a/classes/LocaleManager.php +++ b/classes/LocaleManager.php @@ -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); } } From 24d4362f8013efe4c66118c6ecb79b008646b937 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 12 Oct 2017 23:45:34 +0200 Subject: [PATCH 2/2] Hotfix: build es_ES locale --- Gruntfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 01d1704..9f912e3 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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' } } },