You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a tool named potodo that provides same functionalities with part of our current Makefile commands but has better format. We can consider adopting this tool in our Makefile (or even storing the output as a file and updating it whenever a PR is merged).
Listing untranslated files
make todo
> make todo
for file in *.po */*.po; do echo $(msgattrib --untranslated $file | grep ^msgid | sed 1d | wc -l ) $file; done | grep -v ^0 | sort -gr
929 library/stdtypes.po
790 library/os.po
660 whatsnew/3.3.po
633 library/curses.po
577 c-api/typeobj.po
555 whatsnew/3.7.po
554 library/datetime.po
539 whatsnew/3.5.po
539 whatsnew/2.6.po
518 whatsnew/3.2.po
517 whatsnew/3.6.po
...
I like this idea. In the meantime, I thought potodo --only-fuzzy is not the same as make fuzzy.
Copy from my markdown comment, https://hackmd.io/iwuK9RNcSdyGmfKLxx748w?view#Agenda Actually, a fuzzy string is a string marked as "#, fuzzy" and "make fuzzy" is to find out a subset of fuzzy strings whose msgstr is not empty. In other words, it is to find out ever translated fuzzy strings. "#, fuzzy" is appended by some script.
I found a tool named
potodo
that provides same functionalities with part of our current Makefile commands but has better format. We can consider adopting this tool in our Makefile (or even storing the output as a file and updating it whenever a PR is merged).Listing untranslated files
make todo
potodo
Listing fuzzy entries
make fuzzy
potodo --only-fuzzy
Get overall progress
make progress
potodo | tail -n2 | head -n1 | cut -c 10- | sed 's/[%].*$/%/g'
The text was updated successfully, but these errors were encountered: