Show sr@latin correctly in the language selector

This commit is contained in:
John Maguire 2015-01-08 17:10:00 +01:00
parent a61eac109c
commit 08449c76c3
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ BehaviourSettingsPage::BehaviourSettingsPage(SettingsDialog* dialog)
// The regex captures the "ru" from "clementine_ru.qm"
if (!lang_re.exactMatch(filename)) continue;
QString code = lang_re.cap(1);
QString code = lang_re.cap(1).replace("@latin", "_Latn");
QString language_name = QLocale::languageToString(QLocale(code).language());
#if QT_VERSION >= 0x040800
QString native_name = QLocale(code).nativeLanguageName();