Commit 2e230933 authored by Han Young's avatar Han Young Committed by Nate Graham
Browse files

kcms/region_language: re-add logic to distinguish pt from pt_BR

The Old KCM had this, but it was mistakenly left commented out in
the new one.

BUG: 456692
parent 8e52e330
Pipeline #205046 passed with stage
in 6 minutes and 48 seconds
......@@ -72,15 +72,11 @@ QString LanguageListModel::languageCodeToName(const QString &languageCode)
return i18nc("%1 is language name, %2 is language code name", "%1 (%2)", languageName, languageCode);
}
// if (locale.name() != languageCode && m_availableLanguages.contains(locale.name())) {
// // KDE languageCode got translated by QLocale to a locale code we also have on
// // the list. Currently this only happens with pt that gets translated to pt_BR.
// if (languageCode == QLatin1String("pt")) {
// return QLocale(QStringLiteral("pt_PT")).nativeLanguageName();
// }
// return i18nc("%1 is language name, %2 is language code name", "%1 (%2)", languageName, languageCode);
// }
// KDE languageCode got translated by QLocale to a locale code we also have on
// the list. Currently this only happens with pt that gets translated to pt_BR.
if (languageCode == QStringLiteral("pt_BR")) {
return i18nc("%1 is português in system locale name, Brazil is to distinguish European português and Brazilian português", "%1 (Brazil)", languageName);
}
return languageName;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment