From f5423c48b8cbc6998fbb22663e6f75cdea1ff8e1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 10 Oct 2013 12:34:47 -0700 Subject: Try harder to find the translation files They could be below the data directory ("share") or next to it. Signed-off-by: Dirk Hohndel --- qt-gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2