From: nds Date: Tue, 9 Oct 2007 12:56:19 +0000 (+0000) Subject: Generate .qm files from .ts. X-Git-Tag: TG_Saint_Valentine-Day~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f1fdeace6072b20afe5684228046605ec4ee1cbc;p=modules%2Fgui.git Generate .qm files from .ts. --- diff --git a/src/LogWindow/LogWindow.pro b/src/LogWindow/LogWindow.pro index 9365764c7..b5c0c72e2 100644 --- a/src/LogWindow/LogWindow.pro +++ b/src/LogWindow/LogWindow.pro @@ -18,6 +18,22 @@ HEADERS = *.h SOURCES = *.cxx +TRANSLATIONS = resources/LogWindow_msg_en.ts + +unix:GUIResources = ../../resources +win32:GUIResources = ..\\..\\resources + +lrelease.name = LRELASE ${QMAKE_FILE_IN} +unix:lrelease.commands = $(QTDIR)/$(CONFIG_ID)/bin/lrelease ${QMAKE_FILE_NAME} -qm $${GUIResources}/${QMAKE_FILE_BASE}.qm +win32:lrelease.commands = $(QTDIR)\\$(CONFIG_ID)\\bin\\lrelease ${QMAKE_FILE_NAME} -qm $${GUIResources}\\${QMAKE_FILE_BASE}.qm +unix:lrelease.output = $${GUIResources}/${QMAKE_FILE_BASE}.qm +win32:lrelease.output = $${GUIResources}\\${QMAKE_FILE_BASE}.qm +lrelease.input = TRANSLATIONS +unix:lrelease.clean = $${GUIResources}/${QMAKE_FILE_BASE}.qm +win32:lrelease.clean = $${GUIResources}\\${QMAKE_FILE_BASE}.qm +lrelease.CONFIG += no_link target_predeps +QMAKE_EXTRA_COMPILERS += lrelease + includes.files = $$HEADERS includes.path = ../../include