Re: pocount issue

Mike FABIAN <[email protected]>
Newsgroups gmane.linux.redhat.internationalization
Organization Red Hat
Message-ID <[email protected]>
Jean-Baptiste <[email protected]> さんはかきました:

> Hello,
>
>
> could someone confirm the good behavior of pocount on Fedora 31?
>
> pocount is part of the translate-toolkit which you can install using
> `sudo dnf install translate-toolkit`
>
>
> I just tried to launch `pocount myfile.po --csv` and it always crash
> with this message:
>
> translate.tools.pocount: ERROR: '<' not supported between instances of
> 'NoneType' and 'int'
>
>
> launching it in a whole folder gives the same error, plus one error
> per file:
>
> translate.tools.pocount: ERROR: 'StatsCache' object has no attribute
> 'file_totals'

It works for me on Fedora 31:

mfabian@taka:/local/mfabian/src/ibus-typing-booster/po (release-2.7.2 $)
$ pocount de.po 
Processing file : de.po
Type               Strings      Words (source)    Words (translation)
Translated:     193 (100%)       1778 (100%)            1716
Fuzzy:            0 (  0%)          0 (  0%)             n/a
Untranslated:     0 (  0%)          0 (  0%)             n/a
Total:          193              1778                   1716

Unreviewed:     193 (100%)       1778 (100%)            1716

mfabian@taka:/local/mfabian/src/ibus-typing-booster/po (release-2.7.2 $)
$ pocount de.po --csv 
Filename, Translated Messages, Translated Source Words, Translated Target Words, Fuzzy Message
s, Fuzzy Source Words, Untranslated Messages, Untranslated Source Words, Total Message, Total 
Source Words, Review Messages, Review Source Words
de.po,  193, 1778, 1716, 0, 0, 0, 0, 193, 1778 
mfabian@taka:/local/mfabian/src/ibus-typing-booster/po (release-2.7.2 $)
$ cat /etc/fedora-release 
Fedora release 31 (Thirty One)
mfabian@taka:/local/mfabian/src/ibus-typing-booster/po (release-2.7.2 $)
$ 

-- 
Mike FABIAN <[email protected]>
睡眠不足はいい仕事の敵だ。
_______________________________________________
trans mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.