diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-02-07 11:37:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-07 11:37:51 +0100 |
commit | 8d57d6884613078287601a49c30d0f0f0ced5a6a (patch) | |
tree | 7f2e4a0f9a0e419c1f0e780a5c7ff6ae56e52dde /lib | |
parent | 2a3272331f8b0e345df762ebeb54b2f58183225f (diff) | |
parent | e5be2991019f1a6716d253596562f8ab0f4df008 (diff) | |
download | nextcloud-server-8d57d6884613078287601a49c30d0f0f0ced5a6a.tar.gz nextcloud-server-8d57d6884613078287601a49c30d0f0f0ced5a6a.zip |
Merge pull request #8217 from nextcloud/fix_8180
Use proper lanugage in langauge code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TemplateLayout.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index 3acdae0e395..d37a8bbabbe 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -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)) { |