mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Add instructions for translation stats
This commit is contained in:
parent
431d824cf1
commit
f925822c5e
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue