qt/main: remove defaultLocale from main.cpp

This commit is contained in:
Gamer64 2024-09-02 00:52:43 +02:00
parent a608155b91
commit 13f0a3eef3

View File

@ -3400,8 +3400,7 @@ void GMainWindow::LoadTranslation() {
if (UISettings::values.language.isEmpty()) {
// Use the system's default locale
QLocale defaultLocale = QLocale::system();
loaded = translator.load(defaultLocale, {}, {}, QStringLiteral(":/languages/"));
loaded = translator.load(QLocale::system(), {}, {}, QStringLiteral(":/languages/"));
} else {
// Otherwise load from the specified file
loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/"));