mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-08 03:40:05 +00:00
cleanup code
This commit is contained in:
parent
9d981c55e5
commit
376c9005d6
1 changed files with 2 additions and 3 deletions
|
@ -3093,9 +3093,8 @@ void GMainWindow::LoadTranslation() {
|
|||
bool loaded;
|
||||
|
||||
if (UISettings::values.language.isEmpty()) {
|
||||
// Use the system's default locale
|
||||
QLocale defaultLocale = QLocale::system();
|
||||
loaded = translator.load(defaultLocale, {}, {}, QStringLiteral(":/languages/"));
|
||||
// Use the system's default locale
|
||||
loaded = translator.load(QLocale::system(), {}, {}, QStringLiteral(":/languages/"));
|
||||
} else {
|
||||
// Otherwise load from the specified file
|
||||
loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue