Skip to content

Commit 980f47e

Browse files
committed
qpmx translations
1 parent 669db38 commit 980f47e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/autoupdatergui/autoupdatergui.pro

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ win32 {
1111
LIBS += -lutil
1212
}
1313

14-
include(./translations/translations.pri)
15-
1614
HEADERS += \
1715
updatebutton_p.h \
1816
updatebutton.h \
@@ -41,6 +39,12 @@ FORMS += \
4139
RESOURCES += \
4240
autoupdatergui_resource.qrc
4341

42+
TRANSLATIONS += translations/qtautoupdatergui_de.ts \
43+
translations/qtautoupdatergui_es.ts \
44+
translations/qtautoupdatergui_template.ts
45+
46+
DISTFILES += $$TRANSLATIONS
47+
4448
load(qt_module)
4549

4650
win32 {
@@ -51,5 +55,13 @@ win32 {
5155
QMAKE_TARGET_BUNDLE_PREFIX = "de.skycoder42."
5256
}
5357

58+
qpmx_ts_target.path = $$[QT_INSTALL_TRANSLATIONS]
59+
qpmx_ts_target.depends += lrelease
60+
INSTALLS += qpmx_ts_target
61+
5462
!ReleaseBuild:!DebugBuild:!system(qpmx -d $$shell_quote($$_PRO_FILE_PWD_) --qmake-run init $$QPMX_EXTRA_OPTIONS $$shell_quote($$QMAKE_QMAKE) $$shell_quote($$OUT_PWD)): error(qpmx initialization failed. Check the compilation log for details.)
5563
else: include($$OUT_PWD/qpmx_generated.pri)
64+
65+
#replace template qm by ts
66+
qpmx_ts_target.files -= $$OUT_PWD/$$QPMX_WORKINGDIR/qtbackgroundprocess_template.qm
67+
qpmx_ts_target.files += translations/qtbackgroundprocess_template.ts

src/autoupdatergui/translations/translations.pri

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)