mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue