diff options
author | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-12-27 20:34:03 +0900 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-29 17:26:33 +0100 |
commit | 4b7d58e71e8864a90d3b567f21029968d6e8edef (patch) | |
tree | 9f25bb4a64713bef08b020d090075c5f06cc7924 /app/translations.pri | |
parent | d084bc1f764833566f3e8eafc9fc297c3fa9ee08 (diff) |
Add basic translation support
Added French and Japanese translations
Change-Id: I58eca5ffaad2367a4dd26b6472bdbcd45c957061
Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'app/translations.pri')
-rw-r--r-- | app/translations.pri | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/translations.pri b/app/translations.pri new file mode 100644 index 0000000..81bd94b --- /dev/null +++ b/app/translations.pri @@ -0,0 +1,16 @@ +defineReplace(prependAll) { + for(a,$$1):result += $$2$${a}$$3 + return($$result) +} + +qtPrepareTool(QMAKE_LRELEASE, lrelease) +TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/translations/$${TARGET}_,.ts) + +qm.depends = $${TRANSLATIONS} +qm.input = TRANSLATIONS +qm.output = $$OUT_PWD/../package/root/translations/${QMAKE_FILE_BASE}.qm +qm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT} +qm.name = LRELEASE ${QMAKE_FILE_IN} +qm.CONFIG += no_link +QMAKE_EXTRA_COMPILERS += qm +PRE_TARGETDEPS += compiler_qm_make_all |