summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/L10N/Factory.php2
-rw-r--r--lib/private/TemplateLayout.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php
index b8774c2f74e..d824fa461e7 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 be81608f074..5e6719593a3 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)) {