We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a2e63b commit 4144b51Copy full SHA for 4144b51
patchmanager.pro
@@ -37,6 +37,11 @@ qm.commands += lupdate -noobsolete $${TRANSLATION_SOURCES} -ts $${TS_FILE} && \
37
# create the qm files
38
qm.commands += ; [ $$HAVE_TRANSLATIONS -eq 1 ] && lrelease -nounfinished $${TRANSLATIONS_OUT} || :
39
40
+# special case: as TS_FILE serves as both source file as well as
41
+# the English translation source, create the en qm file from it:
42
+qm.files += $$replace(TS_FILE, \.ts, -en.qm)
43
+qm.commands += ; [ $$HAVE_TRANSLATIONS -eq 1 ] && lrelease -nounfinished $$TS_FILE -qm $$replace(TS_FILE, \.ts, -en.qm) || :
44
+
45
INSTALLS += qm
46
47
OTHER_FILES += $$TRANSLATIONS
0 commit comments