From 19ded76b77785c1fc967dbb61ec1aa277a70e2e0 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 7 Feb 2018 11:13:55 +0100 Subject: [PATCH] Display the proper language strings in setttings Since this was moved to lib, we have to the lib language files. Signed-off-by: Roeland Jago Douma --- lib/private/Settings/Personal/PersonalInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Settings/Personal/PersonalInfo.php b/lib/private/Settings/Personal/PersonalInfo.php index dbc05cbda2..9e2efa6c04 100644 --- a/lib/private/Settings/Personal/PersonalInfo.php +++ b/lib/private/Settings/Personal/PersonalInfo.php @@ -205,7 +205,7 @@ class PersonalInfo implements ISettings { $languages = []; foreach($languageCodes as $lang) { - $l = \OC::$server->getL10N('settings', $lang); + $l = \OC::$server->getL10N('lib', $lang); // TRANSLATORS this is the language name for the language switcher in the personal settings and should be the localized version $potentialName = (string) $l->t('__language_name__'); if($l->getLanguageCode() === $lang && substr($potentialName, 0, 1) !== '_') {//first check if the language name is in the translation file