diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php index b8774c2f74..d824fa461e 100644 --- a/lib/private/L10N/Factory.php +++ b/lib/private/L10N/Factory.php @@ -126,7 +126,7 @@ class Factory implements IFactory { } if ($locale === null || !$this->localeExists($locale)) { - $locale = $this->findLocale($app, $lang); + $locale = $this->findLocale($lang); } if (!isset($this->instances[$lang][$app])) { diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index be81608f07..5e6719593a 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -135,7 +135,7 @@ class TemplateLayout extends \OC_Template { $lang = \OC::$server->getL10NFactory()->findLanguage(); $lang = str_replace('_', '-', $lang); $this->assign('language', $lang); - $this->assign('locale', \OC::$server->getL10NFactory()->findLocale()); + $this->assign('locale', \OC::$server->getL10NFactory()->findLocale($lang)); if(\OC::$server->getSystemConfig()->getValue('installed', false)) { if (empty(self::$versionHash)) {