summaryrefslogtreecommitdiff
path: root/i18n/status.sh
Unidiff
Diffstat (limited to 'i18n/status.sh') (more/less context) (ignore whitespace changes)
-rwxr-xr-xi18n/status.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18n/status.sh b/i18n/status.sh
index 377244e..859c442 100755
--- a/i18n/status.sh
+++ b/i18n/status.sh
@@ -1,46 +1,46 @@
1#/bin/sh 1#/bin/sh
2arg=$1 2arg=$1
3foo=$1 3foo=$1
4if [ x${arg}x = xx ] 4if [ x${arg}x = xx ]
5then 5then
6 arg=. 6 arg=.
7 foo="all" 7 foo="all"
8fi 8fi
9 9
10#general figures 10#general figures
11echo "Status of $foo" 11echo "Status of $foo"
12echo 12echo
13 13
14echo "number of strings: " 14echo "number of strings: "
15strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l` 15strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l`
16echo $strs 16echo $strs
17echo "unfinished: " 17echo "unfinished: "
18unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l` 18unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l`
19echo $unfi", that means" `expr \( $strs - $unfi \) \* 100 / $strs`% "are done" 19echo $unfi", that means" `expr \( $strs - $unfi \) \* 100 / $strs`% "are done"
20echo "obsolete: " 20echo "obsolete: "
21obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l` 21obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l`
22echo $obso `expr \( $strs - $obso \) \* 100 / $strs`% 22echo $obso `expr $obso \* 100 / $strs`%
23 23
24#if [ "foo" = "all" ] 24#if [ "foo" = "all" ]
25#then 25#then
26 #from here on we will only look at the core-parts. All numbers have to be 0% if 26 #from here on we will only look at the core-parts. All numbers have to be 0% if
27 #the specific language will be in the official release. 27 #the specific language will be in the official release.
28 echo 28 echo
29 echo "Core:" 29 echo "Core:"
30 core_today=`grep translation $arg/today.ts | grep type=\"unfinished\" | wc -l` 30 core_today=`grep translation $arg/today.ts | grep type=\"unfinished\" | wc -l`
31 core_todo=`grep translation $arg/todolist.ts | grep type=\"unfinished\" | wc -l` 31 core_todo=`grep translation $arg/todolist.ts | grep type=\"unfinished\" | wc -l`
32 core_addressbook=`grep translation $arg/addressbook.ts | grep type=\"unfinished\" | wc -l` 32 core_addressbook=`grep translation $arg/addressbook.ts | grep type=\"unfinished\" | wc -l`
33 core_datebook=`grep translation $arg/datebook.ts | grep type=\"unfinished\" | wc -l` 33 core_datebook=`grep translation $arg/datebook.ts | grep type=\"unfinished\" | wc -l`
34 libopie=`grep translation $arg/libopie.ts | grep type=\"unfinished\" | wc -l` 34 libopie=`grep translation $arg/libopie.ts | grep type=\"unfinished\" | wc -l`
35 _core_today=`grep translation $arg/today.ts | wc -l` 35 _core_today=`grep translation $arg/today.ts | wc -l`
36 _core_todo=`grep translation $arg/todolist.ts | wc -l` 36 _core_todo=`grep translation $arg/todolist.ts | wc -l`
37 _core_addressbook=`grep translation $arg/addressbook.ts | wc -l` 37 _core_addressbook=`grep translation $arg/addressbook.ts | wc -l`
38 _core_datebook=`grep translation $arg/datebook.ts | wc -l` 38 _core_datebook=`grep translation $arg/datebook.ts | wc -l`
39 _libopie=`grep translation $arg/libopie.ts | wc -l` 39 _libopie=`grep translation $arg/libopie.ts | wc -l`
40#fi 40#fi
41 41
42 echo "Today:" $core_today", that means" `expr $core_today \* 100 / $_core_today`% "needs to be done" 42 echo "Today:" $core_today", that means" `expr $core_today \* 100 / $_core_today`% "needs to be done"
43 echo "Datebook:" $core_datebook", that means" `expr $core_datebook \* 100 / $_core_datebook`% "needs to be done" 43 echo "Datebook:" $core_datebook", that means" `expr $core_datebook \* 100 / $_core_datebook`% "needs to be done"
44 echo "Todo:" $core_todo", that means" `expr $core_todo \* 100 / $_core_todo`% "needs to be done" 44 echo "Todo:" $core_todo", that means" `expr $core_todo \* 100 / $_core_todo`% "needs to be done"
45 echo "Addressbook:" $core_addressbook", that means" `expr $core_addressbook \* 100 / $_core_addressbook`% "needs to be done" 45 echo "Addressbook:" $core_addressbook", that means" `expr $core_addressbook \* 100 / $_core_addressbook`% "needs to be done"
46 echo "libopie:" $libopie", that means" `expr $libopie \* 100 / $_libopie`% "needs to be done" 46 echo "libopie:" $libopie", that means" `expr $libopie \* 100 / $_libopie`% "needs to be done"