tr.commands = lrelease $$_PRO_FILE_QMAKE_EXTRA_TARGETS += tr
tr.commands = lrelease $$_PRO_FILE_QMAKE_EXTRA_TARGETS += trPOST_TARGETDEPS += tr
isEmpty(LRELEASES): return()contains(TEMPLATE, .*subdirs): error("TRANSLATIONS does not work with TEMPLATE=subdirs")build_pass:build_all: \ debug_and_release:debug { return()}for (cp, LRELEASES) { isEmpty($${cp}.files): next() pfx = lrelease_$${cp} for (f, $${cp}.files) { fil = $$absolute_path($$f, $$_PRO_FILE_PWD_) $${pfx}.files += $$fil } path = $$eval($${cp}.path) isEmpty(path): path = ${QMAKE_FILE_IN_PATH} $${pfx}.output = $$path/${QMAKE_FILE_IN_BASE}.qm $${pfx}.input = $${pfx}.files $${pfx}.commands = lrelease ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT} $${pfx}.name = LRELEASE ${QMAKE_FILE_IN} $${pfx}.CONFIG = no_link no_clean target_predeps QMAKE_EXTRA_COMPILERS += $${pfx}}
QMAKEFEATURES = $$PWD/features
CONFIG += translations
# Release translations filestranslations.path = $$DESTDIR/translationstranslations.files = $$TRANSLATIONSLRELEASES += translations
tr.commands = lrelease $$_PRO_FILE_