aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/translations/check-ts.xq
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-07-16 16:10:14 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-07-16 16:39:51 +0200
commit21ac8dcc0a3486de7fc82b3070dce0d6766143a5 (patch)
tree9bac377a6001f203723acbeb2a9a2488db97483b /share/qtcreator/translations/check-ts.xq
parent2d9c9cc86b5fde5b90eb4d9f63be8988c7599b08 (diff)
add check-ts target to assess completeness of translations
Diffstat (limited to 'share/qtcreator/translations/check-ts.xq')
-rw-r--r--share/qtcreator/translations/check-ts.xq3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/qtcreator/translations/check-ts.xq b/share/qtcreator/translations/check-ts.xq
new file mode 100644
index 0000000000..2d6404cefc
--- /dev/null
+++ b/share/qtcreator/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))