From 084c2c04db07f8e0dab171016e59148b704594b9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 30 Apr 2014 09:45:01 -0700 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-gui.cpp') 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); -- cgit v1.2.3-70-g09d2