Merge pull request #8668 from nextcloud/8217_13
[stable13] Use proper lanugage in langauge code
This commit is contained in:
commit
ff7237a098
|
@ -128,7 +128,9 @@ class TemplateLayout extends \OC_Template {
|
||||||
|
|
||||||
}
|
}
|
||||||
// Send the language to our layouts
|
// 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(\OC::$server->getSystemConfig()->getValue('installed', false)) {
|
||||||
if (empty(self::$versionHash)) {
|
if (empty(self::$versionHash)) {
|
||||||
|
|
Loading…
Reference in New Issue