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:
parent
3dabfcfbba
commit
740446522a
2
qtox.pro
2
qtox.pro
|
@ -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
|
||||
|
||||
|
|
3
translations/i18n.pri
vendored
3
translations/i18n.pri
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user