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"
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 "^###" |
(
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`
43 printf "$FORMAT" "$LANGUAGE" "$MISSING" "$CHANGE_DESC" "$CHANGE_SRC"
47 if [ "wiki" != "$1" ]; then
48 echo "'----------------------'-----------------'--------------'----------------'"