Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/phpmyadmin/lang/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/bash # $Id$ # # Shell script that adds a message file to all message files # adding "//to translate" on each line # # Example: add_message_file.sh xxx # if [ $# -ne 1 ] ; then echo "usage: add_message_file.sh filename" exit 1 fi for file in *.inc.php do echo $file " " grep -v '?>' ${file} > ${file}.new case $file in english*) sed -n 's/\(.*\);/\1;/p' $1 >> ${file}.new ;; *) sed -n 's/\(.*\);/\1; \/\/to translate/p' $1 >> ${file}.new ;; esac echo "?>" >> ${file}.new rm $file mv ${file}.new $file done ./sort_lang.sh english* echo " " echo "Messages added to add message files (including english)" |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0161 ]-- |