Add .nomedia on Android.
[maemo-rb.git] / tools / langstatus
blob3c5fd74c636c49cdec3d29b8760f349d36768b34
1 #!/bin/sh
3 if [ "wiki" = "$1" ]; then
4 echo "As of `LC_ALL=C date +'%d %b %Y'`, the current status of the translations is the following:"
5 echo "| *Language* | *Missing strings* | *Changed desc* | *Changed source* |"
6 FORMAT="|%s| %d| %d| %d|\n"
7 else
8 echo ".----------------------.-----------------.---------------.---------------."
9 echo "| Language | Missing strings | Changed desc | Changed source |"
10 echo "|----------------------|-----------------|--------------|----------------|"
11 FORMAT="| %-20s | %15d | %12d | %14d |\n"
14 GENLANG=`dirname $0`/genlang
15 LANGDIR=`dirname $0`/../apps/lang
16 ENGLISH="$LANGDIR"/english.lang
18 (for LANGFILE in $LANGDIR/*.lang; do
19 LANGUAGE=`basename $LANGFILE .lang |sed -e "s/^\(.\)/\U\1/"`
22 $GENLANG -u -e=$ENGLISH $LANGFILE |grep "^###" |(
23 MISSING=0
24 CHANGE_DESC=0
25 CHANGE_SRC=0
27 while read LINE; do
28 case $LINE in
29 "### This phrase below was not present in the translated file")
30 MISSING=`expr $MISSING + 1`
32 "### The 'desc' field differs from the english!")
33 CHANGE_DESC=`expr $CHANGE_DESC + 1`
35 "### The <source> section differs from the english!")
36 CHANGE_SRC=`expr $CHANGE_SRC + 1`
39 #echo $LINE
41 esac
42 done
43 printf "$FORMAT" "$LANGUAGE" "$MISSING" "$CHANGE_DESC" "$CHANGE_SRC"
45 done) 2>/dev/null
47 if [ "wiki" != "$1" ]; then
48 echo "'----------------------'-----------------'--------------'----------------'"