Fixed empty list in synchronization, if there is no DB available
This commit is contained in:
@@ -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)"
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user