From e4362f5eb86f41c63efcbb53dde4652f9ed2efe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Fri, 28 Dec 2001 15:10:38 +0000 Subject: [PATCH] Codding standards --- ChangeLog | 1 + lang/add_message.sh | 2 +- lang/add_message_file.sh | 12 ++++++------ lang/remove_message.sh | 10 +++++----- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3fe3da840..a723c459f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $Source$ 2001-12-28 Loïc Chapeaux * lang/spanish.inc.php3: updated thanks to Gabriel Ginard . + * lang/*.sh: codding standards. 2001-12-27 Loïc Chapeaux * libraries/left.js, line 81: fixed bug #496491 - JS error with NS 4.73 on diff --git a/lang/add_message.sh b/lang/add_message.sh index 3ca50eda6..6a964128d 100644 --- a/lang/add_message.sh +++ b/lang/add_message.sh @@ -8,7 +8,7 @@ for file in *.inc.php3 do echo $file " " grep -v '?>' ${file} > ${file}.new - echo "$1=\"" $2 '"; //to translate' >> ${file}.new + echo "$1 = '"$2"'; //to translate" >> ${file}.new echo "?>" >> ${file}.new rm $file mv ${file}.new $file diff --git a/lang/add_message_file.sh b/lang/add_message_file.sh index 64e88099e..5bec8049f 100755 --- a/lang/add_message_file.sh +++ b/lang/add_message_file.sh @@ -7,12 +7,12 @@ # for file in *.inc.php3 do - echo $file " " - grep -v '?>' ${file} > ${file}.new - sed 's/;/;\/\/to translate/' <$1 >> ${file}.new - echo "?>" >> ${file}.new - rm $file - mv ${file}.new $file + echo $file " " + grep -v '?>' ${file} > ${file}.new + sed 's/;/;\/\/to translate/' <$1 >> ${file}.new + echo "?>" >> ${file}.new + rm $file + mv ${file}.new $file done echo " " echo "This script also added the new messages to english.inc.php3" diff --git a/lang/remove_message.sh b/lang/remove_message.sh index 50fc93fc9..49eb04d5c 100755 --- a/lang/remove_message.sh +++ b/lang/remove_message.sh @@ -7,10 +7,10 @@ # for file in *.inc.php3 do - echo "lines before:" `wc -l $file` - grep -v "$1 " ${file} > ${file}.new - rm $file - mv ${file}.new $file - echo " lines after:" `wc -l $file` + echo "lines before:" `wc -l $file` + grep -v "$1 " ${file} > ${file}.new + rm $file + mv ${file}.new $file + echo " lines after:" `wc -l $file` done echo " "