forked from enlightenment/enlightenment
e po: add completeness lister script into po dir
./complete *.po :)
This commit is contained in:
parent
e8b8fe8310
commit
97525a44d1
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
while [ 1 ]; do
|
||||||
|
FILE="$1"
|
||||||
|
shift
|
||||||
|
if test -z "$FILE"; then
|
||||||
|
break
|
||||||
|
else
|
||||||
|
TOTAL=`grep '^msgid ' $FILE | wc -l`
|
||||||
|
MISSING=`grep '^msgstr ""' $FILE | wc -l`
|
||||||
|
DONE=`expr $TOTAL - $MISSING`
|
||||||
|
COMPLETE=`expr $DONE \\* 100 / $TOTAL`
|
||||||
|
echo "$FILE: $DONE/$TOTAL = $COMPLETE%"
|
||||||
|
fi
|
||||||
|
done
|
Loading…
Reference in New Issue