summaryrefslogtreecommitdiffstats
path: root/translations/check-ts.xq
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-07 15:19:31 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-07 15:23:40 (GMT)
commitbf966d125d5c5fa7719ae9f9110db8742d5a4c85 (patch)
tree374aeb962bd7ea9b0665f303890e4a58eaeaee6e /translations/check-ts.xq
parent83c6f16a17ff5ddee23e752e0eebc014bbc10f01 (diff)
downloadQt-bf966d125d5c5fa7719ae9f9110db8742d5a4c85.zip
Qt-bf966d125d5c5fa7719ae9f9110db8742d5a4c85.tar.gz
Qt-bf966d125d5c5fa7719ae9f9110db8742d5a4c85.tar.bz2
add check-ts target to auto-asses translation completeness
Diffstat (limited to 'translations/check-ts.xq')
-rw-r--r--translations/check-ts.xq3
1 files changed, 3 insertions, 0 deletions
diff --git a/translations/check-ts.xq b/translations/check-ts.xq
new file mode 100644
index 0000000..2d6404c
--- /dev/null
+++ b/translations/check-ts.xq
@@ -0,0 +1,3 @@
+for $file in tokenize($files, codepoints-to-string(10))
+ let $fresh := doc($file)/TS/context/message[not (translation/@type = 'obsolete')]
+ return concat($file, ":", count($fresh/translation[not (@type = 'unfinished')]) * 100 idiv count($fresh))