diff --git a/src/citra_qt/citra_qt.cpp b/src/citra_qt/citra_qt.cpp index 89458e153..a4264f51b 100644 --- a/src/citra_qt/citra_qt.cpp +++ b/src/citra_qt/citra_qt.cpp @@ -3519,7 +3519,6 @@ void GMainWindow::LoadTranslation() { if (language.isEmpty()) { #ifdef _WIN32 - // Use Windows API to get the active display language LANGID lang_id = GetUserDefaultUILanguage(); wchar_t locale_name[LOCALE_NAME_MAX_LENGTH]; @@ -3537,7 +3536,7 @@ void GMainWindow::LoadTranslation() { #endif } - // Replace dashes with underscores for compatibility with translation files + // For compatibility with translation files language.replace(QLatin1Char('-'), QLatin1Char('_')); bool loaded = translator.load(language, QStringLiteral(":/languages/")); diff --git a/src/citra_qt/citra_qt.h b/src/citra_qt/citra_qt.h index 161dc2b46..078d254b5 100644 --- a/src/citra_qt/citra_qt.h +++ b/src/citra_qt/citra_qt.h @@ -321,9 +321,6 @@ private: GameListPlaceholder* game_list_placeholder; LoadingScreen* loading_screen; - // General - QString current_language; - // Status bar elements QProgressBar* progress_bar = nullptr; QLabel* message_label = nullptr;