Qt: Add dummy English translation file (fixes #1469)

This commit is contained in:
Vicki Pfau 2020-08-06 17:12:59 -07:00
parent ecf4106ea2
commit c34e324674
3 changed files with 8 additions and 0 deletions

View File

@ -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:

View File

@ -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);

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en" sourcelanguage="en_US">
</TS>