summaryrefslogtreecommitdiffstats
path: root/core/qt-init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qt-init.cpp')
-rw-r--r--core/qt-init.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/qt-init.cpp b/core/qt-init.cpp
index d77abfb89..685f02248 100644
--- a/core/qt-init.cpp
+++ b/core/qt-init.cpp
@@ -70,7 +70,9 @@ void init_qt_late()
loc.setDefault(QLocale("es_ES"));
loc = QLocale();
}
- QString uiLang = uiLanguage(&loc);
+ initUiLanguage();
+ QString uiLang = getUiLanguage();
+ loc = getLocale();
QLocale::setDefault(loc);
qtTranslator = new QTranslator;