diff --git a/tageditor.pro b/tageditor.pro index ce7f55f..4db2210 100644 --- a/tageditor.pro +++ b/tageditor.pro @@ -1,4 +1,5 @@ projectname = tageditor +VERSION = 1.1.5 # include ../../common.pri when building as part of a subdirs project; otherwise include general.pri !include(../../common.pri) { @@ -128,6 +129,3 @@ INSTALLS += icon menu.path = $$(INSTALL_ROOT)/share/applications/ menu.files = $${PWD}/resources/desktop/applications/$${projectname}.desktop INSTALLS += menu -translations.path = $$(INSTALL_ROOT)/share/$${projectname}/translations/ -translations.files = $${OUT_PWD}/translations/*.qm -INSTALLS += translations diff --git a/translations.pri b/translations.pri index d19ca01..f126169 100644 --- a/translations.pri +++ b/translations.pri @@ -1,15 +1,16 @@ !isEmpty(TRANSLATIONS) { isEmpty(QMAKE_LRELEASE) { - win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe - else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease + QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease } isEmpty(TS_DIR):TS_DIR = translations - genqm.name = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm + genqm.name = translations genqm.input = TRANSLATIONS genqm.output = $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm genqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm genqm.CONFIG = no_link QMAKE_EXTRA_COMPILERS += genqm PRE_TARGETDEPS += compiler_genqm_make_all - message("Project contains translations. Use updateqm to compile translations.") + translations.path = $$(INSTALL_ROOT)/share/$${projectname}/translations/ + translations.files = $${OUT_PWD}/translations/*.qm + INSTALLS += translations }