Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
qt: Fix default language not being set to the main one the system uses (
Browse files Browse the repository at this point in the history
#236)

* qt: Fix default language not being set to the main one the system uses

* cleanup code
  • Loading branch information
kleidis authored Aug 21, 2024
1 parent e1ff3b8 commit d8760de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/citra_qt/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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/"));
Expand Down

0 comments on commit d8760de

Please sign in to comment.