Don't pass in the locale as the language
This messes with the translation of the date names etc. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
57f901e972
commit
70fea997af
1 changed files with 1 additions and 2 deletions
|
@ -140,7 +140,6 @@ class TemplateLayout extends \OC_Template {
|
|||
// Send the language and the locale to our layouts
|
||||
$lang = \OC::$server->getL10NFactory()->findLanguage();
|
||||
$locale = \OC::$server->getL10NFactory()->findLocale($lang);
|
||||
$localeLang = \OC::$server->getL10NFactory()->findLanguageFromLocale('lib', $locale);
|
||||
|
||||
$lang = str_replace('_', '-', $lang);
|
||||
$this->assign('language', $lang);
|
||||
|
@ -162,7 +161,7 @@ class TemplateLayout extends \OC_Template {
|
|||
if ($this->config->getSystemValue('installed', false) && $renderAs != 'error') {
|
||||
if (\OC::$server->getContentSecurityPolicyNonceManager()->browserSupportsCspV3()) {
|
||||
$jsConfigHelper = new JSConfigHelper(
|
||||
\OC::$server->getL10N('lib', $localeLang ?: $lang),
|
||||
\OC::$server->getL10N('lib'),
|
||||
\OC::$server->query(Defaults::class),
|
||||
\OC::$server->getAppManager(),
|
||||
\OC::$server->getSession(),
|
||||
|
|
Loading…
Reference in a new issue