2014-11-07 21:08:02 +08:00
|
|
|
# For autocompiling qm-files.
|
|
|
|
|
2016-04-29 16:01:22 +08:00
|
|
|
TRANSLATIONS = \
|
|
|
|
translations/ar.ts \
|
2016-06-24 05:36:46 +08:00
|
|
|
translations/be.ts \
|
2021-03-04 21:30:49 +08:00
|
|
|
translations/ber.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/bg.ts \
|
|
|
|
translations/cs.ts \
|
2016-05-06 02:20:03 +08:00
|
|
|
translations/da.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/de.ts \
|
|
|
|
translations/el.ts \
|
2016-06-10 00:08:40 +08:00
|
|
|
translations/eo.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/es.ts \
|
|
|
|
translations/et.ts \
|
2017-10-29 17:11:58 +08:00
|
|
|
translations/fa.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/fi.ts \
|
|
|
|
translations/fr.ts \
|
2021-03-04 21:30:49 +08:00
|
|
|
translations/gl.ts \
|
2016-05-06 02:40:23 +08:00
|
|
|
translations/he.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/hr.ts \
|
|
|
|
translations/hu.ts \
|
2022-02-19 04:08:58 +08:00
|
|
|
translations/is.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/it.ts \
|
|
|
|
translations/ja.ts \
|
2016-08-03 06:59:17 +08:00
|
|
|
translations/jbo.ts \
|
2021-03-04 21:30:49 +08:00
|
|
|
translations/kn.ts \
|
2016-11-28 22:04:11 +08:00
|
|
|
translations/ko.ts \
|
2022-02-19 04:09:20 +08:00
|
|
|
translations/lt.ts \
|
2018-01-12 05:19:39 +08:00
|
|
|
translations/mk.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/nl.ts \
|
|
|
|
translations/no_nb.ts \
|
|
|
|
translations/pl.ts \
|
2016-12-16 16:30:30 +08:00
|
|
|
translations/pr.ts \
|
2019-04-23 05:51:47 +08:00
|
|
|
translations/pt_BR.ts \
|
2022-02-19 04:09:20 +08:00
|
|
|
translations/pt.ts \
|
2017-05-01 03:18:02 +08:00
|
|
|
translations/ro.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/ru.ts \
|
2021-03-04 21:30:49 +08:00
|
|
|
translations/si.ts \
|
2016-10-26 20:02:00 +08:00
|
|
|
translations/sk.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/sl.ts \
|
2021-03-04 21:30:49 +08:00
|
|
|
translations/sq.ts \
|
2017-10-29 17:34:33 +08:00
|
|
|
translations/sr_Latn.ts \
|
2022-02-19 04:09:20 +08:00
|
|
|
translations/sr.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/sv.ts \
|
2016-12-08 00:43:26 +08:00
|
|
|
translations/sw.ts \
|
2017-07-09 11:26:13 +08:00
|
|
|
translations/ta.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/tr.ts \
|
2016-07-20 02:16:55 +08:00
|
|
|
translations/ug.ts \
|
2016-04-29 16:01:22 +08:00
|
|
|
translations/uk.ts \
|
2022-02-19 04:09:20 +08:00
|
|
|
translations/ur.ts \
|
2017-02-11 15:18:56 +08:00
|
|
|
translations/zh_CN.ts \
|
|
|
|
translations/zh_TW.ts
|
2014-11-07 21:08:02 +08: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 20:27:30 +08:00
|
|
|
|
|
|
|
# Release all the .ts files at once
|
|
|
|
updateallqm = $$QMAKE_LRELEASE -silent $$TRANSLATIONS
|