]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Generate .qm files from .ts.
authornds <nds@opencascade.com>
Tue, 9 Oct 2007 12:56:19 +0000 (12:56 +0000)
committernds <nds@opencascade.com>
Tue, 9 Oct 2007 12:56:19 +0000 (12:56 +0000)
src/LogWindow/LogWindow.pro

index 9365764c7b00ab31eafad5f403cbe86ad50baa5b..b5c0c72e2321ee1b0b940d40f861a7e3ff049c76 100644 (file)
@@ -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