diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-04-30 09:45:01 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-30 09:46:54 -0700 |
commit | 084c2c04db07f8e0dab171016e59148b704594b9 (patch) | |
tree | 0af1bec300e5efc2d01c7041fa8827f90a494679 /qt-gui.cpp | |
parent | 1739b4879aba545e29c5a85621b9a9e9a341cb4c (diff) | |
download | subsurface-084c2c04db07f8e0dab171016e59148b704594b9.tar.gz |
Make Subsurface with a British accent work
Our workaround for the lack of a US-English translation breaks en-GB. With
this the British version of Subsurface should work as well.
Reported-by: Tim Wootton <tim@tee-jay.demon.co.uk>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r-- | qt-gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index 934589f8d..dc3fb4004 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -121,7 +121,7 @@ void init_ui(void) // we don't have translations for English - if we don't check for this // Qt will proceed to load the second language in preference order - not what we want // on Linux this tends to be en-US, but on the Mac it's just en - if (!uiLang.startsWith("en")) { + if (!uiLang.startsWith("en") || uiLang.startsWith("en-GB")) { qtTranslator = new QTranslator; if (qtTranslator->load(loc, "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath))) { application->installTranslator(qtTranslator); |