From 9d981c55e5aa223fdab000f78a644ad3d0bf5884 Mon Sep 17 00:00:00 2001 From: kleidis <167202775+kleidis@users.noreply.github.com> Date: Sun, 18 Aug 2024 09:25:24 +0200 Subject: [PATCH] qt: Fix default language not being set to the main one the system uses --- src/citra_qt/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 0b5b16695..5f1d64954 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -3093,8 +3093,9 @@ 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 + QLocale defaultLocale = QLocale::system(); + loaded = translator.load(defaultLocale, {}, {}, QStringLiteral(":/languages/")); } else { // Otherwise load from the specified file loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/"));