summaryrefslogtreecommitdiff
path: root/translations/check-ts.xq
blob: 050f5054f51ae9c2791e1f53e9ec840213be5149 (plain)
1
2
3
4
5
for $file in tokenize($files, codepoints-to-string(10))
    let $fresh := doc($file)/TS/context/message[not (translation/@type = 'obsolete')]
    return if (count($fresh) gt 0)
           then concat($file, ":", count($fresh/translation[not (@type = 'unfinished')]) * 100 idiv count($fresh))
           else concat($file, ":n/a")