bb1914a1ab
GitOrigin-RevId: 733e537a8ad76fd355b6f501127f7d0eb8861775
18 lines
722 B
Diff
18 lines
722 B
Diff
diff --git i/src/GUI/app.cpp w/src/GUI/app.cpp
|
|
index 37e9d3f..d4a065c 100644
|
|
--- i/src/GUI/app.cpp
|
|
+++ w/src/GUI/app.cpp
|
|
@@ -35,11 +35,10 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
|
|
installTranslator(gpxsee);
|
|
|
|
QTranslator *qt = new QTranslator(this);
|
|
-#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
|
+#if defined(Q_OS_WIN32)
|
|
if (qt->load(QLocale::system(), "qt", "_", ProgramPaths::translationsDir()))
|
|
#else // Q_OS_WIN32 || Q_OS_MAC
|
|
- if (qt->load(QLocale::system(), "qt", "_", QLibraryInfo::location(
|
|
- QLibraryInfo::TranslationsPath)))
|
|
+ if (qt->load(QLocale::system(), "qt", "_", QLatin1String("@qttranslations@/translations")))
|
|
#endif // Q_OS_WIN32 || Q_OS_MAC
|
|
installTranslator(qt);
|
|
|