summaryrefslogtreecommitdiff
path: root/asteroid-stopwatch.pro
diff options
context:
space:
mode:
authorFlorent Revest <revestflo@gmail.com>2017-03-04 18:00:57 +0100
committerFlorent Revest <revestflo@gmail.com>2017-03-04 18:00:57 +0100
commit9713bddf71b3f400d2685fc279d853e59ff5e1d0 (patch)
tree182f2015c796f3afdee6bd65a2a09136d47e2c04 /asteroid-stopwatch.pro
parentf6deeed2f9d4521ee4f5f812484f3a52c96b5d9e (diff)
Makes .desktop file translatable
Diffstat (limited to 'asteroid-stopwatch.pro')
-rw-r--r--asteroid-stopwatch.pro20
1 files changed, 19 insertions, 1 deletions
diff --git a/asteroid-stopwatch.pro b/asteroid-stopwatch.pro
index a9730b0..b3c7850 100644
--- a/asteroid-stopwatch.pro
+++ b/asteroid-stopwatch.pro
@@ -7,10 +7,28 @@ SOURCES += main.cpp
RESOURCES += resources.qrc
OTHER_FILES += main.qml
+lupdate_only{
+ SOURCES = i18n/asteroid-stopwatch.desktop.h
+}
+
+# Needed for lupdate
+TRANSLATIONS = i18n/asteroid-stopwatch.de.ts \
+ i18n/asteroid-stopwatch.es.ts \
+ i18n/asteroid-stopwatch.fa.ts \
+ i18n/asteroid-stopwatch.fr.ts \
+ i18n/asteroid-stopwatch.ko.ts \
+ i18n/asteroid-stopwatch.nl.ts \
+ i18n/asteroid-stopwatch.pl.ts \
+ i18n/asteroid-stopwatch.pt_BR.ts \
+ i18n/asteroid-stopwatch.ru.ts \
+ i18n/asteroid-stopwatch.sv.ts \
+ i18n/asteroid-stopwatch.uk.ts
+
TARGET = asteroid-stopwatch
target.path = /usr/bin/
-desktop.files = asteroid-stopwatch.desktop
+desktop.commands = bash $$PWD/i18n/generate-desktop.sh $$PWD asteroid-stopwatch.desktop
+desktop.files = $$OUT_PWD/asteroid-stopwatch.desktop
desktop.path = /usr/share/applications
INSTALLS += target desktop