summaryrefslogtreecommitdiff
path: root/i18n
Unidiff
Diffstat (limited to 'i18n') (more/less context) (ignore whitespace changes)
-rwxr-xr-xi18n/status.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/i18n/status.sh b/i18n/status.sh
index 315f9dd..5cde18e 100755
--- a/i18n/status.sh
+++ b/i18n/status.sh
@@ -1,8 +1,15 @@
1#/bin/sh 1#/bin/sh
2arg=$1 2arg=$1
3if [ x${arg}x = xx ]
4then
5 arg=.
6fi
3echo "number of strings: " 7echo "number of strings: "
4grep translation $arg/*.ts | wc -l 8strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l`
9echo $strs
5echo "unfinished: " 10echo "unfinished: "
6grep translation $arg/*.ts | grep type=\"unfinished\" | wc -l 11unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l`
12echo $unfi `expr \( $strs - $unfi \) \* 100 / $strs`%
7echo "obsolete: " 13echo "obsolete: "
8grep translation $arg/*.ts | grep type=\"obsolete\" | wc -l 14obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l`
15echo $obso `expr \( $strs - $obso \) \* 100 / $strs`%