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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/qt-init.cpp b/core/qt-init.cpp
index ead7f4654..105742b82 100644
--- a/core/qt-init.cpp
+++ b/core/qt-init.cpp
@@ -59,9 +59,16 @@ void init_qt_late()
QLocale loc;
// assign en_GB for use in South African locale
+ // and capture other French and Spanish speaking countries with the corresponding canonical locales
if (loc.country() == QLocale::SouthAfrica) {
loc.setDefault(QLocale("en_GB"));
loc = QLocale();
+ } else if (loc.language() == QLocale::French) {
+ loc.setDefault(QLocale("fr_FR"));
+ loc = QLocale();
+ } else if (loc.language() == QLocale::Spanish) {
+ loc.setDefault(QLocale("es_ES"));
+ loc = QLocale();
}
QString uiLang = uiLanguage(&loc);
QLocale::setDefault(loc);