From d8760dee6aba49f5dce9a695e820316c59c70d07 Mon Sep 17 00:00:00 2001 From: kleidis <167202775+kleidis@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:59:07 +0200 Subject: [PATCH] qt: Fix default language not being set to the main one the system uses (#236) * qt: Fix default language not being set to the main one the system uses * cleanup code --- src/citra_qt/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 0b5b16695..049f99a7d 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -3093,8 +3093,8 @@ void GMainWindow::LoadTranslation() { bool loaded; if (UISettings::values.language.isEmpty()) { - // If the selected language is empty, use system locale - loaded = translator.load(QLocale(), {}, {}, 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/"));