The overall progress could be inaccurate since po files with 100% translation progress are excluded #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi team,
Thanks for implementing and maintaining this wonderful tool! I use it frequently in our project to keep track of the translation progress. Much appreciated!
One tiny awkward thing I spotted today is that, after I finished the translation of one po file in my project, the overall progress (displayed in the last line of the CLI output) somewhat dropped. I believe the root cause is the po files with 100% translation progress being excluded from being displayed in the output and deriving for the overall progress (source). I wonder if this behavior is expected. If not, I'm willing to send a PR for this, but would like to have a discussion about how to modify it correctly first (e.g. consider 100% po files when calculating the overall progress, but still hide them from the output?).
Thanks again!
Another thing to consider when retrieving the total number of strings is that not all PO file could be available. Two scenarios I see are:
msginitto generate specific PO from POT file, instead of all); orBesides the PO files, POT are also good source for retrieving the total number of strings. For instance, Python docs can give all POT files by running
make -C Doc gettextfor root directory, and Doc/build/gettext will have all the POT files.I haven't checked how much work is it, but maybe adding a command-line option to pass the directory to read the total number of strings is the most flexible alternative, defaulting to the current directory (default of potodo) or the -p/--path's directory.
@rffontenelle If you're experiencing this, I'd say OK to implement a
--potflag, but maybe in separated PR, that's something else. If you don't experience it I'd say: keep it simple, don't solve problems we don't have.@mattwang44 yes computing with all the files, and only filtering at display time looks good to me.