mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 17:25:11 +00:00
0e4294fd3e
Co-authored-by: Guillaume Girol <symphorien@users.noreply.github.com>
18 lines
609 B
Diff
18 lines
609 B
Diff
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);
|
|
|