summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-21 14:27:15 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-22 12:02:48 -0700
commite6cbb28a9fbac6b58b60d1715e86948869e62607 (patch)
tree65483b1cac8b50f0d0a84c18fa197b8d7bb9de1d /core
parent0d2ec0802d7974c2c8b580d9ea2cce267e5f750e (diff)
downloadsubsurface-e6cbb28a9fbac6b58b60d1715e86948869e62607.tar.gz
translations: use German translation for non-Swiss German locales
Unless a German speaker explicitly asks for the Swiss localization, give them the German localization. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/qt-init.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/qt-init.cpp b/core/qt-init.cpp
index 1979ec63d..7f8af8379 100644
--- a/core/qt-init.cpp
+++ b/core/qt-init.cpp
@@ -69,6 +69,9 @@ void init_qt_late()
} else if (loc.language() == QLocale::Spanish) {
loc.setDefault(QLocale("es_ES"));
loc = QLocale();
+ } else if (loc.language() == QLocale::German && loc.country() != QLocale::Switzerland) {
+ loc.setDefault(QLocale("de_DE"));
+ loc = QLocale();
}
initUiLanguage();
QString uiLang = getUiLanguage();