diff --git a/ChangeLog b/ChangeLog index 339005563..d8a152c4d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -14,10 +14,11 @@ $Source$ is set to E_ALL * import the "Insert new row to edit page" feature put by Korakot in the stable CVS tree - * lib.inc.php3, line 590: stip slash the message to be displayed + * lib.inc.php3, line 590: strip slash the message to be displayed 2001-05-07 Marc Delisle * In csv data, can add a character at end-of-line + * Added a shell script that adds a message to all message files 2001-05-07 Armel Fauveau * Added the phpMyBookmark patch diff --git a/lang/add_message.sh b/lang/add_message.sh new file mode 100644 index 000000000..f8be90fea --- /dev/null +++ b/lang/add_message.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# +# Shell script that adds a message to all message files (Lem9) +# +# Example: add_message '$strNewMessage' 'new message contents' +# +for file in *.inc.php3 +do + echo $file " " + grep -v '?>' ${file} > ${file}.new + echo "$1=\"" $2 '"; //to translate' >> ${file}.new + echo "?>" >> ${file}.new + rm $file + mv ${file}.new $file +done +echo " " +echo "This script also added the new message to english.inc.php3"