From 595bf27acf2e6946295ef13aaf21c094a2cb991d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Tue, 8 May 2001 17:22:15 +0000 Subject: [PATCH] Lem9: added a shell script that adds a message to all message files --- ChangeLog | 3 ++- lang/add_message.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 lang/add_message.sh 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"