Correctly pick up the UI language from settings

While Linux can set the locale from the language text, Windows needs the
correct locale value (which makes more sense to use, anyway - that's why
we save it).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-09-22 22:07:42 -07:00
parent 14fff2fc93
commit f4ca863a91

View file

@ -495,7 +495,7 @@ QString uiLanguage(QLocale *callerLoc)
GET_BOOL("UseSystemLanguage", locale.use_system_language);
if (!prefs.locale.use_system_language) {
loc = QLocale(s.value("UiLanguage", QLocale().uiLanguages().first()).toString());
loc = QLocale(s.value("UiLangLocale", QLocale().uiLanguages().first()).toString());
} else {
loc = QLocale(QLocale().uiLanguages().first());
}