Skip to content
Snippets Groups Projects
Unverified Commit d767d01a authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #8218 from nextcloud/display_proper_lang_string

Display the proper language strings in setttings
parents 5b3843ca 4ee9315a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment