Fixed empty list in synchronization, if there is no DB available

This commit is contained in:
Tomas Srnka
2009-11-26 00:04:43 +00:00
parent 352f9e38be
commit 53e18f0889
65 changed files with 35756 additions and 35175 deletions

View File

@@ -1,3 +1,4 @@
<?php
#!/bin/bash
# $Id$
#
@@ -14,19 +15,18 @@ fi
for file in *.inc.php
do
echo $file " "
grep -v '?>' ${file} > ${file}.new
case $file in
english*)
echo "$1 = '"$2"';" >> ${file}.new
;;
*)
echo "$1 = '"$2"'; //to translate" >> ${file}.new
;;
esac
echo "?>" >> ${file}.new
rm $file
mv ${file}.new $file
done
./sort_lang.sh english*
echo " "
echo "Message added to all message files (including english)"
?>