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