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:
parent
14fff2fc93
commit
f4ca863a91
@ -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());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user