4
0
mirror of https://github.com/QuasarApp/installer-framework.git synced 2025-05-02 16:29:33 +00:00

add target to create untranslated.ts

this is the standard way to start a new translation.

Change-Id: Ie0235e41e39484af0b832a9b7488501bc883aaea
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
This commit is contained in:
Oswald Buddenhagen 2017-05-12 18:44:25 +02:00 committed by Katja Marttila
parent a6abb9fe5a
commit 0b9a1d0556
2 changed files with 5 additions and 2 deletions

2
.gitignore vendored

@ -88,3 +88,5 @@ doc-build
.rcc .rcc
.pch .pch
.metadata .metadata
/src/sdk/translations/untranslated.ts

@ -29,13 +29,14 @@ exists($$LRELEASE) {
sources = src sources = src
lupdate_opts = -locations relative -no-ui-lines -no-sort lupdate_opts = -locations relative -no-ui-lines -no-sort
for(file, IB_TRANSLATIONS) { IB_ALL_TRANSLATIONS = $$IB_TRANSLATIONS $$PWD/translations/untranslated.ts
for(file, IB_ALL_TRANSLATIONS) {
lang = $$replace(file, .*/([^/]*)\\.ts, \\1) lang = $$replace(file, .*/([^/]*)\\.ts, \\1)
v = ts-$${lang}.commands v = ts-$${lang}.commands
$$v = cd $$wd && $$LUPDATE $$lupdate_opts $$sources -ts $$file $$v = cd $$wd && $$LUPDATE $$lupdate_opts $$sources -ts $$file
QMAKE_EXTRA_TARGETS += ts-$$lang QMAKE_EXTRA_TARGETS += ts-$$lang
} }
ts-all.commands = cd $$wd && $$LUPDATE $$lupdate_opts $$sources -ts $$IB_TRANSLATIONS ts-all.commands = cd $$wd && $$LUPDATE $$lupdate_opts $$sources -ts $$IB_ALL_TRANSLATIONS
QMAKE_EXTRA_TARGETS += ts-all QMAKE_EXTRA_TARGETS += ts-all
isEqual(QMAKE_DIR_SEP, /) { isEqual(QMAKE_DIR_SEP, /) {