Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 19 lines (16 sloc) 0.517 kb
00bc7d8d » nicolas-raoul
2011-02-02 Script to show the completion rate of the translation for each language
1 #!/bin/sh
2 #
3 # Shows the completion rate of the translation for each language.
4 #
94935848 » nicolas-raoul
2011-06-27 Fixed crowdin URL
5 wget -O tmp-translations-page.html http://crowdin.net/project/ankidroid
00bc7d8d » nicolas-raoul
2011-02-02 Script to show the completion rate of the translation for each language
6 cat tmp-translations-page.html |
7 grep "Completed on" |
8 grep -v "Completed on 0%" |
9 sed -e "s/.*<br\/>//" |
10 sed -e "s/<span>Completed on //" |
8199cdb0 » nicolas-raoul
2011-11-16 Also show sorted by translation rate
11 sed -e "s/<\/span>//" > tmp-list.txt
12
13 echo "By country:"
14 cat tmp-list.txt | sort
15
16 echo "\nBy rate:"
17 cat tmp-list.txt | sed -e "s/\(.*\) \([0-9]*\)%/\2% \1/g" | sort -nr
18
19 rm -f tmp-translations-page.html tmp-list.txt
Something went wrong with that request. Please try again.