e po: add completeness lister script into po dir

./complete *.po

:)
devs/captainigloo/eglfs_rpi
Carsten Haitzler 7 years ago
parent e8b8fe8310
commit 97525a44d1
  1. 15
      po/complete.sh

@ -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…
Cancel
Save