Jean-Baptiste <jean-baptiste(a)holcroft.fr> さんはかきました:
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 <mfabian(a)redhat.com>
睡眠不足はいい仕事の敵だ。