diff --git a/scripts/resources/stats.sh b/scripts/resources/stats.sh index a02e7363a..10e0d735e 100755 --- a/scripts/resources/stats.sh +++ b/scripts/resources/stats.sh @@ -6,5 +6,9 @@ for file in ../../assets/resources/application/*.xml; do all_lcount=`egrep 'name=.+value="' $lfile | wc | awk '{ print $1 }'` neg_count=`fgrep toBeTranslated $file | wc | awk '{ print $1 }'` neg_lcount=`fgrep toBeTranslated $lfile | wc | awk '{ print $1 }'` - echo $lang $(($neg_count+$neg_lcount)) of $(($all_count+$all_lcount)) + if [ "$1" == "-html" ]; then + echo "$lang$(($all_count+$all_lcount))$(($neg_count+$neg_lcount))" + else + echo $lang $(($neg_count+$neg_lcount)) of $(($all_count+$all_lcount)) + fi done