info:phpcodegenieenglish2french

#! /bin/bash
# Script to automatically convert phpCodeGenie from english to french
# Usage:
# Required: phpCodeGenie generated site
#
# Authors:
# FR, radeff@akademia.ch
# History Fri, 18 May 2007 12:49:38 FR, created
#########
echo "Script to automatically convert phpCodeGenie from english to french"
echo "************"
echo "Input directory to convert:" $PWD ?
find . -name "*.php" | while read i
do
	replace "Enter New " "Nouveau " -- $i
	replace "List All " "Liste " -- $i
	replace "Power Search " "Chercher " -- $i
	replace "CRUD Grid for" "Editer " -- $i
	replace "Table " "" -- $i

     replace "<h3>MALI_BILLET_HOP_MED</h3>" "<h3>Billet d'h&ocirc;pital M&eacute;decin</h3>" -- $i
     replace "Nouveau mali_billet_hop_med" "Nouveau" -- $i
     replace "Liste mali_billet_hop_med" "Liste" -- $i
     replace "Chercher mali_billet_hop_med" "Chercher" -- $i
     replace "Editer mali_billet_hop_med" "Editer" -- $i

     replace "<h3>MALI_BILLET_HOPITAL_ADM</h3>" "<h3>Billet d'h&ocirc;pital administration</h3>" -- $i
     replace "Nouveau mali_billet_hopital_adm" "Nouveau" -- $i
     replace "Liste mali_billet_hopital_adm" "Liste" -- $i
     replace "Chercher mali_billet_hopital_adm" "Chercher" -- $i
     replace "Editer mali_billet_hopital_adm" "Editer" -- $i
 
     replace "<h3>MALI_MEDECINS</h3>" "<h3>Administration des M&eacute;decins</h3>" -- $i
     replace "Nouveau mali_medecins" "Nouveau" -- $i
     replace "Liste mali_medecins" "Liste" -- $i
     replace "Chercher mali_medecins" "Chercher" -- $i
     replace "Editer mali_medecins" "Editer" -- $i

     replace "<h3>MALI_PATIENTS</h3>" "<h3>Administration des patients</h3>" -- $i
     replace "Nouveau mali_patients" "Nouveau" -- $i
     replace "LListe mali_patients" "Liste" -- $i
     replace "Chercher mali_patients" "Chercher" -- $i
     replace "Editer mali_patients" "Editer" -- $i

     replace "<h3>MALI_SERVICES</h3>" "<h3>Administration des services</h3>" -- $i
     replace "Nouveau mali_services" "Nouveau" -- $i
     replace "Liste mali_services" "Liste" -- $i
     replace "Chercher mali_services" "Chercher" -- $i
     replace "Editer mali_services" "Editer" -- $i

done
echo "Finished, all  files converted"
  • info/phpcodegenieenglish2french.txt
  • Dernière modification : 2018/07/18 09:46
  • de radeff