summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-05-12 18:44:25 +0200
committerKatja Marttila <katja.marttila@qt.io>2017-05-15 11:40:31 +0000
commit0b9a1d0556b29eebf2ea138aca8d8411a74958b2 (patch)
treec5d6468bf6157f1ecf02d793f23a42ef4d727d2a /src
parenta6abb9fe5a034b2d7fa05f3fb326e49a9420eb6e (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/sdk/sdk.pro5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sdk/sdk.pro b/src/sdk/sdk.pro
index 90becf933..6af36feb2 100644
--- a/src/sdk/sdk.pro
+++ b/src/sdk/sdk.pro
@@ -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, /) {