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 <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-02-07 11:13:55 +01:00
parent c688da7195
commit 4ee9315a68
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View File

@ -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 && $potentialName[0] !== '_') {//first check if the language name is in the translation file