mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-09 04:10:05 +00:00
cleanup code
This commit is contained in:
parent
9d981c55e5
commit
376c9005d6
1 changed files with 2 additions and 3 deletions
|
@ -3094,8 +3094,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…
Add table
Add a link
Reference in a new issue