mirror of
https://github.com/mandarine3ds/mandarine.git
synced 2024-11-26 16:00:49 +00:00
qt/main: remove defaultLocale from main.cpp
This commit is contained in:
parent
a608155b91
commit
13f0a3eef3
@ -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/"));
|
||||
|
Loading…
Reference in New Issue
Block a user