summaryrefslogtreecommitdiffstats
path: root/src/sdk/sdk.pro
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdk/sdk.pro')
-rw-r--r--src/sdk/sdk.pro32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/sdk/sdk.pro b/src/sdk/sdk.pro
index ac84dd66e..08f890cec 100644
--- a/src/sdk/sdk.pro
+++ b/src/sdk/sdk.pro
@@ -30,38 +30,6 @@ exists($$LRELEASE) {
IB_TRANSLATIONS = $$files($$PWD/translations/*_??.ts)
IB_TRANSLATIONS -= $$PWD/translations/ifw_en.ts
- wd = $$toNativeSeparators($$IFW_SOURCE_TREE)
- sources = src
- lupdate_opts = -locations relative -no-ui-lines -no-sort
-
- IB_ALL_TRANSLATIONS = $$IB_TRANSLATIONS $$PWD/translations/ifw_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_ALL_TRANSLATIONS
- QMAKE_EXTRA_TARGETS += ts-all
-
- isEqual(QMAKE_DIR_SEP, /) {
- commit-ts.commands = \
- cd $$wd; \
- git add -N src/sdk/translations/*_??.ts && \
- for f in `git diff-files --name-only src/sdk/translations/*_??.ts`; do \
- $$LCONVERT -locations none -i \$\$f -o \$\$f; \
- done; \
- git add src/sdk/translations/*_??.ts && git commit
- } else {
- commit-ts.commands = \
- cd $$wd && \
- git add -N src/sdk/translations/*_??.ts && \
- for /f usebackq %%f in (`git diff-files --name-only src/sdk/translations/*_??.ts`) do \
- $$LCONVERT -locations none -i %%f -o %%f $$escape_expand(\\n\\t) \
- cd $$wd && git add src/sdk/translations/*_??.ts && git commit
- }
- QMAKE_EXTRA_TARGETS += commit-ts
-
empty_ts = "<TS></TS>"
write_file($$OUT_PWD/translations/ifw_en.ts, empty_ts)|error("Aborting.")
IB_TRANSLATIONS += $$OUT_PWD/translations/ifw_en.ts