Lem9: added a shell script that adds a message to all message files
This commit is contained in:
@@ -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 <lem9@users.sourceforge.net>
|
||||
* 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 <armel.fauveau@globalis-ms.com>
|
||||
* Added the phpMyBookmark patch
|
||||
|
17
lang/add_message.sh
Normal file
17
lang/add_message.sh
Normal file
@@ -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"
|
Reference in New Issue
Block a user