2014-11-07 15:08:02 +02:00
|
|
|
# For autocompiling qm-files.
|
|
|
|
|
2014-11-28 16:40:29 +01:00
|
|
|
TRANSLATIONS = translations/es.ts \
|
2015-08-16 13:10:09 +02:00
|
|
|
translations/cs.ts \
|
2014-11-28 16:40:29 +01:00
|
|
|
translations/bg.ts \
|
2014-11-07 15:08:02 +02:00
|
|
|
translations/de.ts \
|
2015-10-20 15:23:52 +03:00
|
|
|
translations/el.ts \
|
2014-11-07 15:08:02 +02:00
|
|
|
translations/fi.ts \
|
|
|
|
translations/fr.ts \
|
2015-03-14 16:25:18 +01:00
|
|
|
translations/hr.ts \
|
2015-03-03 19:56:37 +01:00
|
|
|
translations/hu.ts \
|
2014-11-07 15:08:02 +02:00
|
|
|
translations/it.ts \
|
2015-02-11 21:25:26 +01:00
|
|
|
translations/nl.ts \
|
2015-05-25 02:15:34 +02:00
|
|
|
translations/no_nb.ts \
|
2015-01-10 04:53:28 +02:00
|
|
|
translations/lt.ts \
|
2014-11-07 15:08:02 +02:00
|
|
|
translations/pl.ts \
|
|
|
|
translations/ru.ts \
|
2015-03-06 17:35:09 +01:00
|
|
|
translations/sl.ts \
|
2014-11-07 15:08:02 +02:00
|
|
|
translations/sv.ts \
|
2015-11-12 12:51:15 +02:00
|
|
|
translations/tr.ts \
|
2015-01-08 10:28:53 -02:00
|
|
|
translations/uk.ts \
|
2015-02-16 12:43:39 +08:00
|
|
|
translations/zh.ts \
|
2015-01-08 10:28:53 -02:00
|
|
|
translations/pt.ts
|
2014-11-07 15:08:02 +02:00
|
|
|
|
|
|
|
#rules to generate ts
|
|
|
|
isEmpty(QMAKE_LUPDATE) {
|
|
|
|
win32: QMAKE_LUPDATE = $$[QT_INSTALL_BINS]/lupdate.exe
|
|
|
|
else: QMAKE_LUPDATE = $$[QT_INSTALL_BINS]/lupdate
|
|
|
|
}
|
|
|
|
|
|
|
|
#limitation: only on ts can be generated
|
|
|
|
updatets.name = Creating or updating ts-files...
|
|
|
|
updatets.input = _PRO_FILE_
|
|
|
|
updatets.output = $$TRANSLATIONS
|
|
|
|
updatets.commands = $$QMAKE_LUPDATE ${QMAKE_FILE_IN}
|
|
|
|
updatets.CONFIG += no_link no_clean
|
|
|
|
QMAKE_EXTRA_COMPILERS += updatets
|
|
|
|
|
|
|
|
#rules for ts->qm
|
|
|
|
isEmpty(QMAKE_LRELEASE) {
|
|
|
|
win32: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease.exe
|
|
|
|
else: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
|
|
|
}
|
|
|
|
updateqm.name = Compiling qm-files...
|
|
|
|
updateqm.input = TRANSLATIONS
|
|
|
|
updateqm.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
|
|
|
updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
|
|
|
updateqm.CONFIG += no_link no_clean target_predeps
|
|
|
|
QMAKE_EXTRA_COMPILERS += updateqm
|
2014-11-08 13:27:30 +01:00
|
|
|
|
|
|
|
# Release all the .ts files at once
|
|
|
|
updateallqm = $$QMAKE_LRELEASE -silent $$TRANSLATIONS
|