prepare.sh

  1. #!/bin/bash
  2.  
  3. # Prepare translation
  4. # Do before translation
  5.  
  6. find ../application/controllers ../application/views -name "*.php" > phplist.tmp
  7. xgettext --from-code=UTF-8 --add-comments=_ -o messages.pot --files-from=phplist.tmp
  8.  
  9. for FILE in *.po
  10. do
  11. echo $FILE
  12. msgmerge -U $FILE messages.pot
  13. done
  14.  

Proinf.net