A simple stats.sh script to get the # of strings and % translated from

the current translation files.

Originally committed to SVN as r2669.
This commit is contained in:
Amar Takhar 2009-01-07 06:58:58 +00:00
parent 954e93f638
commit 9a5ec0d574
1 changed files with 7 additions and 0 deletions

7
po/stats.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
for i in `cat LINGUAS`; do
echo -n "$i ";
msgfmt --verbose -o /dev/null $i 2>&1 \
|awk '{ TOTAL= $1 + $4 + $7; PERCENT = ($1 / TOTAL) * 100; print "Total Strings: " TOTAL", " PERCENT"% Translated"}';
done