Merge pull request #8217 from nextcloud/fix_8180

Use proper lanugage in langauge code
This commit is contained in:
Morris Jobke 2018-02-07 11:37:51 +01:00 committed by GitHub
commit 8d57d68846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,9 @@ class TemplateLayout extends \OC_Template {
}
// Send the language to our layouts
$this->assign('language', \OC::$server->getL10NFactory()->findLanguage());
$lang = \OC::$server->getL10NFactory()->findLanguage();
$lang = str_replace('_', '-', $lang);
$this->assign('language', $lang);
if(\OC::$server->getSystemConfig()->getValue('installed', false)) {
if (empty(self::$versionHash)) {