From f1fdeace6072b20afe5684228046605ec4ee1cbc Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 9 Oct 2007 12:56:19 +0000 Subject: [PATCH] Generate .qm files from .ts. --- src/LogWindow/LogWindow.pro | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.39.2