summaryrefslogtreecommitdiffstats
path: root/translations
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-07-13 10:57:07 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-07-15 20:00:28 (GMT)
commit511a838afdb1d028bf184bb56c9ead39312987ca (patch)
tree7fb17b693253af4de2a6a5000877f8afa152496f /translations
parent807bc3aca8a0b07ee1dfe1e398044d32756e5de0 (diff)
downloadQt-511a838afdb1d028bf184bb56c9ead39312987ca.zip
Qt-511a838afdb1d028bf184bb56c9ead39312987ca.tar.gz
Qt-511a838afdb1d028bf184bb56c9ead39312987ca.tar.bz2
(re-)add 'untranslated' ts targets
these files are not meant for commit, but it's good to have a quick way to create templates.
Diffstat (limited to 'translations')
-rwxr-xr-xtranslations/check-ts.pl2
-rw-r--r--translations/translations.pri6
2 files changed, 5 insertions, 3 deletions
diff --git a/translations/check-ts.pl b/translations/check-ts.pl
index 5f38703..0ff9d17 100755
--- a/translations/check-ts.pl
+++ b/translations/check-ts.pl
@@ -49,7 +49,7 @@ my @groups = ("assistant", "designer", "linguist", "qt_help", "qtconfig", "qvfb"
my %scores = ();
my %langs = ();
-my $files = join("\n", <*.ts>);
+my $files = join("\n", <*_??.ts>);
my $res = `xmlpatterns -param files=\"$files\" check-ts.xq`;
for my $i (split(/ /, $res)) {
$i =~ /^([^.]+).ts:(.*)$/;
diff --git a/translations/translations.pri b/translations/translations.pri
index b41f2a0..735411e 100644
--- a/translations/translations.pri
+++ b/translations/translations.pri
@@ -25,7 +25,8 @@ defineTest(addTsTargets) {
lang = $$replace(file, .*_((.._)?..)\\.ts$, \\1)
addTsTarget(ts-$$lang, ts-$$1-$$lang, $$2, $$file)
}
- addTsTarget(ts-all, ts-$$1-all, $$2, $$files)
+ addTsTarget(ts-untranslated, ts-$$1-untranslated, $$2, $$PWD/$${1}_untranslated.ts)
+ addTsTarget(ts-all, ts-$$1-all, $$2, $$PWD/$${1}_untranslated.ts $$files)
}
addTsTargets(qt, -I../include -I../include/Qt \
@@ -59,6 +60,7 @@ check-ts.depends = ts-all
ts.commands = \
@echo \"The \'ts\' target has been removed in favor of more fine-grained targets.\" && \
- echo \"Use \'ts-<target>-<lang>\' or \'ts-<lang>\' instead.\"
+ echo \"Use \'ts-<target>-<lang>\' or \'ts-<lang>\' instead. To add a language,\" && \
+ echo \"use \'untranslated\' for <lang>, rename the files and re-run \'qmake\'.\"
QMAKE_EXTRA_TARGETS += $$unique(TS_TARGETS) ts check-ts