From f4ca863a91d79e191a9cdf18cd29d41ec71b0971 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 22 Sep 2016 22:07:42 -0700 Subject: 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 --- core/qthelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/qthelper.cpp b/core/qthelper.cpp index ce7bc3e65..0628dd2e3 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -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()); } -- cgit v1.2.3-70-g09d2