Codding standards

This commit is contained in:
Loïc Chapeaux
2001-12-28 15:10:38 +00:00
parent cfe052cd9a
commit e4362f5eb8
4 changed files with 13 additions and 12 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2001-12-28 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* lang/spanish.inc.php3: updated thanks to
Gabriel Ginard <gginard at navegalia.com>.
* lang/*.sh: codding standards.
2001-12-27 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/left.js, line 81: fixed bug #496491 - JS error with NS 4.73 on

View File

@@ -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

View File

@@ -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"

View File

@@ -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 " "