[engines] Fix getting InnoDB status.
[phpmyadmin/dkf.git] / lang / add_message_file.sh
blob58771d13319b6abcdb080af085c21d6b1f512bca
1 #!/bin/bash
2 # $Id$
4 # Shell script that adds a message file to all message files
5 # adding "//to translate" on each line
7 # Example: add_message_file.sh xxx
9 if [ $# -ne 1 ] ; then
10 echo "usage: add_message_file.sh filename"
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 sed -n 's/\(.*\);/\1;/p' $1 >> ${file}.new
23 sed -n 's/\(.*\);/\1; \/\/to translate/p' $1 >> ${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 "Messages added to add message files (including english)"