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>
This commit is contained in:
Dirk Hohndel 2020-03-21 14:27:15 -07:00
parent 0d2ec0802d
commit e6cbb28a9f

View file

@ -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();