translations/check-ts.xq
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
     1 for $file in tokenize($files, codepoints-to-string(10))
     1 for $file in tokenize($files, codepoints-to-string(10))
     2     let $fresh := doc($file)/TS/context/message[not (translation/@type = 'obsolete')]
     2     let $fresh := doc($file)/TS/context[not (name = 'QtXmlPatterns')]/message[not (translation/@type = 'obsolete')]
     3     return concat($file, ":", count($fresh/translation[not (@type = 'unfinished')]) * 100 idiv count($fresh))
     3     return concat($file, ":", count($fresh/translation[not (@type = 'unfinished')]) * 100 idiv count($fresh))