Aegisub/po/stats.sh
Amar Takhar 9a5ec0d574 A simple stats.sh script to get the # of strings and % translated from
the current translation files.

Originally committed to SVN as r2669.
2009-01-07 06:58:58 +00:00

7 lines
224 B
Bash
Executable file

#!/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