Base progress calculations on external file structure #4

Closed
opened 2023-03-28 10:15:17 +02:00 by maciek · 0 comments
Contributor

I'd like to propose a feature of comparing the PO files in local directory to POT files in external directory. It could be helpful in calculating the progress in situations where

  • resources with not started translation are missing in the local directory,
  • local resources are not up-to-date with POT files.

Example:

% potodo --base ../cpython/Doc/_build/gettext
# c-api (10.53% done)

- (missing) abstract.pot           0 /   3 (  0.0% translated)
- allocation.po                    2 /   9 ( 22.0% translated)
- apiabiversion.po                 4 /  38 ( 10.0% translated)
- arg.po                          23 / 195 ( 11.0% translated)
- buffer.po                        2 / 105 (  1.0% translated)
- bytes.po                         3 /  60 (  5.0% translated)
- call.po                          1 /  95 (  1.0% translated)

…

# TOTAL (9.45% done)

Migrated from https://github.com/AFPy/Potodo/issues/132.

I'd like to propose a feature of comparing the PO files in local directory to POT files in external directory. It could be helpful in calculating the progress in situations where * resources with not started translation are missing in the local directory, * local resources are not up-to-date with POT files. Example: ``` % potodo --base ../cpython/Doc/_build/gettext # c-api (10.53% done) - (missing) abstract.pot 0 / 3 ( 0.0% translated) - allocation.po 2 / 9 ( 22.0% translated) - apiabiversion.po 4 / 38 ( 10.0% translated) - arg.po 23 / 195 ( 11.0% translated) - buffer.po 2 / 105 ( 1.0% translated) - bytes.po 3 / 60 ( 5.0% translated) - call.po 1 / 95 ( 1.0% translated) … # TOTAL (9.45% done) ``` Migrated from https://github.com/AFPy/Potodo/issues/132.
mdk closed this issue 2024-12-07 15:43:25 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AFPy/potodo#4
No description provided.