Commit 77175561 authored by Oliver Bock's avatar Oliver Bock

Added automatic linguist release (i18n update) to make process

* Doesn't require the user to invoke lrelease manually
* However, qmake needs to be run once with "-nodepend"
parent c0e08c4f
......@@ -31,8 +31,26 @@ SOURCES += src/pulsaranimationwidget.cpp \
src/main.cpp
FORMS += src/pulsatingscience.ui
RESOURCES += src/pulsatingscience.qrc
TS_DIR = src/resources
TRANSLATIONS = src/resources/pulsatingscience_de.ts
UI_DIR = src/.ui
RCC_DIR = src/.rcc
MOC_DIR = src/.moc
OBJECTS_DIR = src/.obj
\ No newline at end of file
OBJECTS_DIR = src/.obj
!isEmpty(TRANSLATIONS) {
isEmpty(QMAKE_LRELEASE) {
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
}
isEmpty(TS_DIR):TS_DIR = translations
linguist.name = lrelease ${QMAKE_FILE_IN}
linguist.input = TRANSLATIONS
linguist.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm
linguist.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN}
linguist.CONFIG = no_link
QMAKE_EXTRA_COMPILERS += linguist
PRE_TARGETDEPS += compiler_linguist_make_all
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment