mirror of
https://github.com/mandarine3ds/mandarine.git
synced 2024-11-27 00:10:23 +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()) {
|
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/"));
|
||||||
|
Loading…
Reference in New Issue
Block a user