mirror of
https://github.com/QuasarApp/installer-framework.git
synced 2025-04-26 05:34:32 +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:
parent
a6abb9fe5a
commit
0b9a1d0556
2
.gitignore
vendored
2
.gitignore
vendored
@ -88,3 +88,5 @@ doc-build
|
||||
.rcc
|
||||
.pch
|
||||
.metadata
|
||||
|
||||
/src/sdk/translations/untranslated.ts
|
||||
|
@ -29,13 +29,14 @@ exists($$LRELEASE) {
|
||||
sources = src
|
||||
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)
|
||||
v = ts-$${lang}.commands
|
||||
$$v = cd $$wd && $$LUPDATE $$lupdate_opts $$sources -ts $$file
|
||||
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
|
||||
|
||||
isEqual(QMAKE_DIR_SEP, /) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user