4 # Shell script that adds a message file to all message files
5 # adding "//to translate" on each line
7 # Example: add_message_file.sh xxx
10 echo "usage: add_message_file.sh filename"
17 grep -v '?>' ${file} > ${file}.new
20 sed -n 's/\(.*\);/\1;/p' $1 >> ${file}.new
23 sed -n 's/\(.*\);/\1; \/\/to translate/p' $1 >> ${file}.new
26 echo "?>" >> ${file}.new
30 .
/sort_lang.sh english
*
32 echo "Messages added to add message files (including english)"