summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-10 12:34:47 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-10 14:52:30 -0700
commitf5423c48b8cbc6998fbb22663e6f75cdea1ff8e1 (patch)
treefab7dd0fc152c07a7e5f3c7c4f9c7745fd439eba
parent8bd26af44e03d20659ac76f927479713e14fad15 (diff)
downloadsubsurface-f5423c48b8cbc6998fbb22663e6f75cdea1ff8e1.tar.gz
Try harder to find the translation files
They could be below the data directory ("share") or next to it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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;