From c34e3246742754317d05d6117c2df3ca2d71e4e8 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 6 Aug 2020 17:12:59 -0700 Subject: [PATCH] Qt: Add dummy English translation file (fixes #1469) --- CHANGES | 1 + src/platform/qt/SettingsView.cpp | 3 +++ src/platform/qt/ts/mgba-en.ts | 4 ++++ 3 files changed, 8 insertions(+) create mode 100644 src/platform/qt/ts/mgba-en.ts diff --git a/CHANGES b/CHANGES index 61fc9edc5..98dffa506 100644 --- a/CHANGES +++ b/CHANGES @@ -32,6 +32,7 @@ Other fixes: - Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642) - Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769) - Qt: Fix a race condition in the frame inspector + - Qt: Add dummy English translation file (fixes mgba.io/i/1469) - SM83: Simplify register pair access on big endian - VFS: Fix directory node listing on some filesystems Misc: diff --git a/src/platform/qt/SettingsView.cpp b/src/platform/qt/SettingsView.cpp index 4eb99c55e..b0416133a 100644 --- a/src/platform/qt/SettingsView.cpp +++ b/src/platform/qt/SettingsView.cpp @@ -303,6 +303,9 @@ SettingsView::SettingsView(ConfigController* controller, InputController* inputC continue; } QLocale locale(name.remove(QString("%0-").arg(binaryName)).remove(".qm")); + if (locale.language() == QLocale::English) { + continue; + } m_ui.languages->addItem(locale.nativeLanguageName(), locale); if (locale.bcp47Name() == QLocale().bcp47Name()) { m_ui.languages->setCurrentIndex(m_ui.languages->count() - 1); diff --git a/src/platform/qt/ts/mgba-en.ts b/src/platform/qt/ts/mgba-en.ts new file mode 100644 index 000000000..bf4711add --- /dev/null +++ b/src/platform/qt/ts/mgba-en.ts @@ -0,0 +1,4 @@ + + + +