diff --git a/src/gui/application.cpp b/src/gui/application.cpp index a26a6635a..7d79aa182 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -973,7 +973,7 @@ QString substLang(const QString &lang) void Application::setupTranslations() { const auto enforcedLocale = Theme::instance()->enforcedLocale(); - const auto lang = substLang(!enforcedLocale.isEmpty() ? enforcedLocale : QLocale::system().name()); + const auto lang = substLang(!enforcedLocale.isEmpty() ? enforcedLocale : QLocale::system().uiLanguages(QLocale::TagSeparator::Underscore).first()); auto *translator = new QTranslator(this); auto *qtTranslator = new QTranslator(this);