summaryrefslogtreecommitdiff
path: root/share/qtcreator/translations/check-ts.xq
blob: 2d6404cefc7438e683cea53ff1e1c5e92d7cd38d (plain)
1
2
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))