1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 18:29:23 +02:00
FBReaderJ/scripts/resources/stats.sh
2012-04-12 14:57:29 +02:00

10 lines
485 B
Bash
Executable file

#!/bin/sh
for file in ../assets/resources/application/*.xml; do
lfile=`echo $file | sed "s/application/zlibrary/"`
lang=`basename $file .xml;`
all_count=`fgrep 'value="' $file | wc | awk '{ print $1 }'`
all_lcount=`fgrep '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))
done