Converting number of Excel column names no longer limited
[phpmyadmin/arisferyanto.git] / lang / add_message.sh
blob515578bec104214a9abc84773cc80c5fe2013d3f
1 #!/bin/bash
2 # $Id$
4 # Shell script that adds a message to all message files (Lem9)
6 # Example: add_message.sh '$strNewMessage' 'new message contents'
9 if [ $# -ne 2 ] ; then
10 echo "usage: add_message.sh '\$strNewMessage' 'new message contents'"
11 exit 1
14 for file in *.inc.php
16 echo $file " "
17 grep -v '?>' ${file} > ${file}.new
18 case $file in
19 english*)
20 echo "$1 = '"$2"';" >> ${file}.new
23 echo "$1 = '"$2"'; //to translate" >> ${file}.new
25 esac
26 echo "?>" >> ${file}.new
27 rm $file
28 mv ${file}.new $file
29 done
30 ./sort_lang.sh english*
31 echo " "
32 echo "Message added to all message files (including english)"