summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 30afebed9..8d3421e9f 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -106,7 +106,9 @@ void init_ui(int *argcp, char ***argvp)
qDebug() << "can't find Qt localization for locale" << uiLang;
}
ssrfTranslator = new QTranslator;
- if (ssrfTranslator->load(loc,"subsurface", "_")) {
+ if (ssrfTranslator->load(loc,"subsurface", "_") ||
+ ssrfTranslator->load(loc,"subsurface", "_", getSubsurfaceDataPath("translations")) ||
+ ssrfTranslator->load(loc,"subsurface", "_", getSubsurfaceDataPath("../translations"))) {
application->installTranslator(ssrfTranslator);
} else {
qDebug() << "can't find Subsurface localization for locale" << uiLang;