diff --git a/scripts/languages/readme.txt b/scripts/languages/readme.txt index 6ea329b62..f6c62f366 100644 --- a/scripts/languages/readme.txt +++ b/scripts/languages/readme.txt @@ -39,3 +39,7 @@ $ ./find_unchanged.py ../spanish.txt 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 + +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