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,8 +1,8 @@
<?php
#!/bin/bash
# $Id$
#
# Shell script that adds a message file to all message files
# adding "//to translate" on each line
#
# Example: add_message_file.sh xxx
#
@@ -14,7 +14,6 @@ fi
for file in *.inc.php
do
echo $file " "
grep -v '?>' ${file} > ${file}.new
case $file in
english*)
sed -n 's/\(.*\);/\1;/p' $1 >> ${file}.new
@@ -23,10 +22,11 @@ do
sed -n 's/\(.*\);/\1; \/\/to translate/p' $1 >> ${file}.new
;;
esac
echo "?>" >> ${file}.new
rm $file
mv ${file}.new $file
done
./sort_lang.sh english*
echo " "
echo "Messages added to add message files (including english)"
?>