Whereas the version of pocount used by me has an option '--no-color', it is maybe better to use another pocount output format like --csv in combination with python csv module?
I guess the csv format provided by pocount will not change when switching the version of translate-toolkit. So the script might get more stable without using a fragile regexp.
For comparison her is the output with option --csv on my machine:
No, it doesn't work :(
Whereas the version of pocount used by me has an option '--no-color', it is maybe better to use another pocount output format like --csv in combination with python csv module?
https:/ /docs.python. org/2/library/ csv.html? highlight= csv#module- csv
I guess the csv format provided by pocount will not change when switching the version of translate-toolkit. So the script might get more stable without using a fragile regexp.
For comparison her is the output with option --csv on my machine:
$:> pocount --csv po/map_ the_green_ plateau. wmf/la. po the_green_ plateau. wmf/la. po, 25, 438, 283, 0, 0, 0, 0, 25, 438
Filename, Translated Messages, Translated Source Words, Translated Target Words, Fuzzy Messages, Fuzzy Source Words, Untranslated Messages, Untranslated Source Words, Total Message, Total Source Words, Review Messages, Review Source Words
po/map_