summaryrefslogtreecommitdiffstats
path: root/translations/check-ts.xq
blob: 1062e90063b94d7ed61513c02b16be2949ff6438 (plain)
1
2
3
for $file in tokenize($files, codepoints-to-string(10))
    let $fresh := doc($file)/TS/context[not (name = 'QtXmlPatterns')]/message[not (translation/@type = 'obsolete')]
    return concat($file, ":", count($fresh/translation[not (@type = 'unfinished')]) * 100 idiv count($fresh))