Skip to content

Commit

Permalink
Show sr@latin correctly in the language selector
Browse files Browse the repository at this point in the history
  • Loading branch information
hatstand committed Jan 8, 2015
1 parent a61eac1 commit 08449c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/behavioursettingspage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 08449c7

Please sign in to comment.