summaryrefslogtreecommitdiff
path: root/i18n/status.sh
blob: 5cde18e3057a388b2bb756028f0eae615d4a40c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#/bin/sh
arg=$1
if [ x${arg}x = xx ]
then
	arg=.
fi
echo "number of strings: "
strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l`
echo $strs
echo "unfinished: "
unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l`
echo $unfi `expr \( $strs - $unfi \) \* 100 / $strs`%
echo "obsolete: "
obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l`
echo $obso `expr \( $strs - $obso \) \* 100 / $strs`%