summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/qt-init.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/qt-init.cpp b/core/qt-init.cpp
index 7f8af8379..587ace9a1 100644
--- a/core/qt-init.cpp
+++ b/core/qt-init.cpp
@@ -86,11 +86,13 @@ void init_qt_late()
#else
translationLocation = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
#endif
- if (qtTranslator.load(loc, "qt", "_", translationLocation)) {
+ if (qtTranslator.load(loc, "qtbase", "_", translationLocation) ||
+ qtTranslator.load(loc, "qtbase", "_", getSubsurfaceDataPath("translations")) ||
+ qtTranslator.load(loc, "qtbase", "_", getSubsurfaceDataPath("../translations"))) {
application->installTranslator(&qtTranslator);
} else {
- if (verbose && uiLang != "en_US" && uiLang != "en-US")
- qDebug() << "can't find Qt localization for locale" << uiLang << "searching in" << translationLocation;
+ if (uiLang != "en_US" && uiLang != "en-US")
+ qDebug() << "can't find Qt base localization for locale" << uiLang << "searching in" << translationLocation;
}
if (ssrfTranslator.load(loc, "subsurface", "_") ||
ssrfTranslator.load(loc, "subsurface", "_", translationLocation) ||