summaryrefslogtreecommitdiffstats
path: root/translations/check-ts.xq
diff options
context:
space:
mode:
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))