summaryrefslogtreecommitdiff
path: root/i18n/status_individual.sh
blob: 349767d2648f1ecab715d17209a0b3afc72d9b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# Main
#
arg=$1
if [ "x${arg}x" = "xx" ]; then
	echo "Usage: ./status_indiviual XX"
	echo "       with XX as a languagecode"
	exit
fi

if [ "${arg}" = "todo" ]; then
	if [ "x$2"x = "xx" ]; then
		echo "missing second argument"
		exit
	fi
	for i in $2/*.ts; do echo $i - `grep translation "$i" | grep type=\"unfinished\" | wc -l` | grep -v ' 0' ; done
	exit
fi

for i in $1/*.ts; do echo $i - `grep translation "$i" | grep type=\"unfinished\" | wc -l` ; done