Skip to content

Adapt the percentage script to print per-file #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

humitos
Copy link
Collaborator

@humitos humitos commented May 6, 2020

When an argument is passed, the script print percentage per-file.

▶ python scripts/print_percentage.py library/http.po 
library/http.po ::: 0%

When an argument is passed, the script print percentage per-file.
@humitos humitos requested a review from gilgamezh May 6, 2020 12:21
@humitos humitos mentioned this pull request May 6, 2020
@raulcd
Copy link
Collaborator

raulcd commented May 6, 2020

Creo que deberíamos usar potodo en vez de nuestro propio script:

$ potodo -o -p tutorial/


# tutorial (97.06% done)

- appendix.po                     18 /  20 ( 90.0% translated)
- errors.po                       40 /  46 ( 86.0% translated)
- stdlib.po                       39 /  44 ( 88.0% translated)
- stdlib2.po                      39 /  45 ( 86.0% translated)

@raulcd
Copy link
Collaborator

raulcd commented May 6, 2020

Lo anterior era con la rama 3.7 y con la 3.8 sale lo siguiente, el output es perfecto:

$ potodo -o -p tutorial/


# tutorial (92.24% done)

- appendix.po                     18 /  20 ( 90.0% translated)
- classes.po                     112 / 115 ( 97.0% translated), 2 fuzzy
- controlflow.po                  85 / 124 ( 68.0% translated), 12 fuzzy
- datastructures.po               86 /  89 ( 96.0% translated), 1 fuzzy
- errors.po                       45 /  52 ( 86.0% translated)
- inputoutput.po                  64 /  66 ( 96.0% translated), 2 fuzzy
- interpreter.po                  24 /  27 ( 88.0% translated), 2 fuzzy
- introduction.po                 72 /  73 ( 98.0% translated), 1 fuzzy
- stdlib.po                       38 /  45 ( 84.0% translated)
- stdlib2.po                      39 /  45 ( 86.0% translated)
- venv.po                         27 /  28 ( 96.0% translated)
- whatnow.po                      15 /  18 ( 83.0% translated), 1 fuzzy

@humitos
Copy link
Collaborator Author

humitos commented May 6, 2020

Waaaa! Re copado! Si

@raulcd raulcd closed this in #91 May 6, 2020
@humitos humitos deleted the percentage-per-file branch May 6, 2020 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants