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()) { if (UISettings::values.language.isEmpty()) {
// Use the system's default locale // Use the system's default locale
QLocale defaultLocale = QLocale::system(); loaded = translator.load(QLocale::system(), {}, {}, QStringLiteral(":/languages/"));
loaded = translator.load(defaultLocale, {}, {}, QStringLiteral(":/languages/"));
} else { } else {
// Otherwise load from the specified file // Otherwise load from the specified file
loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/")); loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/"));