Skip to content
Snippets Groups Projects
Unverified Commit e5be2991 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Use proper lanugage in langauge code


Fixes #8180

The _ is not valid in language codes use - instead.

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent c688da71
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,9 @@ class TemplateLayout extends \OC_Template { ...@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment