summary refs log tree commit diff
path: root/pkgs/applications/misc/gpxlab/fix-qttranslations-path.patch
blob: 8dcba75d764fbf1bf9135b8a793b9c2f82475b5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git i/GPXLab/main.cpp w/GPXLab/main.cpp
index b12d2dd..58d37c5 100644
--- i/GPXLab/main.cpp
+++ w/GPXLab/main.cpp
@@ -19,10 +19,10 @@ int main(int argc, char *argv[])
     app.installTranslator(&gpxlab);
 
     QTranslator qt;
-#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
+#if defined(Q_OS_WIN32)
     qt.load(QLocale::system(), "qt", "_", TRANSLATIONS_DIR);
 #else
-    qt.load(QLocale::system(), "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath));
+    qt.load(QLocale::system(), "qt", "_", QLatin1String("@qttranslations@/translations"));
 #endif
     app.installTranslator(&qt);