summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-gui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index ac739ad6f..532d1b509 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -85,7 +85,10 @@ void init_ui(int *argcp, char ***argvp)
xslt_path = strdup(getSubsurfaceDataPath("xslt").toAscii().data());
QLocale loc;
- if (loc.uiLanguages().first() != "en-US") {
+ // 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 (!loc.uiLanguages().first().startsWith("en")) {
qtTranslator = new QTranslator;
if (qtTranslator->load(loc,"qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath))) {
application->installTranslator(qtTranslator);