Add instructions for translation stats

This commit is contained in:
def 2020-06-25 22:12:35 +02:00
parent 431d824cf1
commit f925822c5e

View file

@ -39,3 +39,7 @@ $ ./find_unchanged.py ../spanish.txt
To update all languages: To update all languages:
$ for i in data/languages/*.txt; do scripts/languages/copy_fix.py $i $i.$$.tmp --delete-unused --append-missing && mv $i.$$.tmp $i; done $ for i in data/languages/*.txt; do scripts/languages/copy_fix.py $i $i.$$.tmp --delete-unused --append-missing && mv $i.$$.tmp $i; done
To get a statistic of how complete the translation is:
$ for i in *.txt; do COVERED=$(cat $i|grep "^== "|grep -v "^== $"|wc -l); TOTAL=$(cat $i|grep "^== "|wc -l); [ "$i" != "license.txt" ] && [ "$i" != "index.txt" ] && echo "$(($COVERED*100/$TOTAL))% ${i:r}"; done | sort -n -r