Skip to content

Commit 4144b51

Browse files
authored
Generate -en.qm file from translation source (#185)
1 parent 0a2e63b commit 4144b51

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

patchmanager.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ qm.commands += lupdate -noobsolete $${TRANSLATION_SOURCES} -ts $${TS_FILE} && \
3737
# create the qm files
3838
qm.commands += ; [ $$HAVE_TRANSLATIONS -eq 1 ] && lrelease -nounfinished $${TRANSLATIONS_OUT} || :
3939

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+
4045
INSTALLS += qm
4146

4247
OTHER_FILES += $$TRANSLATIONS

0 commit comments

Comments
 (0)