From 0b9a1d0556b29eebf2ea138aca8d8411a74958b2 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 12 May 2017 18:44:25 +0200 Subject: [PATCH] add target to create untranslated.ts this is the standard way to start a new translation. Change-Id: Ie0235e41e39484af0b832a9b7488501bc883aaea Reviewed-by: Katja Marttila --- .gitignore | 2 ++ src/sdk/sdk.pro | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2f83fcb1..cf1dfa3a 100644 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,5 @@ doc-build .rcc .pch .metadata + +/src/sdk/translations/untranslated.ts diff --git a/src/sdk/sdk.pro b/src/sdk/sdk.pro index 90becf93..6af36feb 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, /) {