add ts-untranslated target

the generated file is not meant for committing
This commit is contained in:
Oswald Buddenhagen
2010-07-16 15:11:51 +02:00
parent abf94a6cdd
commit c7bd870ef1
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@@ -54,6 +54,7 @@ Thumbs.db
# translation related:
share/qtcreator/translations/*_tr.h
share/qtcreator/translations/qtcreator_untranslated.ts
# Directories to ignore
# ---------------------

View File

@@ -29,7 +29,7 @@ extract.commands += \
$$XMLPATTERNS -output $$CUSTOMWIZARD_TR_H -param files=$$CUSTOMWIZARD_FILES $$PWD/extract-customwizards.xq
QMAKE_EXTRA_TARGETS += extract
files = $$files($$PWD/*_??.ts)
files = $$files($$PWD/*_??.ts) $$PWD/qtcreator_untranslated.ts
for(file, files) {
lang = $$replace(file, .*_(.*)\\.ts, \\1)
v = ts-$${lang}.commands
@@ -44,7 +44,8 @@ QMAKE_EXTRA_TARGETS += ts-all
ts.commands = \
@echo \"The \'ts\' target has been removed in favor of more fine-grained targets.\" && \
echo \"Use \'ts-<lang>\' instead.\"
echo \"Use \'ts-<lang>\' instead. To add a language, use \'ts-untranslated\',\" && \
echo \"rename the file and re-run \'qmake\'.\"
QMAKE_EXTRA_TARGETS += ts
TEMPLATE = app