1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Build .qm files in qmake, before RCC runs

Otherwise the resource compiler complains that it can't find our translations

Fixes #668
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-08 13:27:30 +01:00
parent 3dabfcfbba
commit 740446522a
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,8 @@ CONFIG += c++11
# Rules for creating/updating {ts|qm}-files
include(translations/i18n.pri)
# Build all the qm files now, to make RCC happy
system($$fromfile(translations/i18n.pri, updateallqm))
RESOURCES += res.qrc

View File

@ -37,3 +37,6 @@ 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
# Release all the .ts files at once
updateallqm = $$QMAKE_LRELEASE -silent $$TRANSLATIONS