From e6cbb28a9fbac6b58b60d1715e86948869e62607 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 21 Mar 2020 14:27:15 -0700 Subject: 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 --- core/qt-init.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') 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(); -- cgit v1.2.3-70-g09d2