2 POTFILE=`mktemp /tmp/XXXXXXXXXX.pot`
3 GITROOT=`git rev-parse --show-cdup`
5 APPROOT=$GITROOT/application
6 find $APPROOT -name '*.php' -o -name '*.phtml' | xgettext -L php --keyword=translate --keyword=__ --from-code=UTF-8 -o $POTFILE -f -
7 for lang in en fr ja; do
9 msgmerge -U $APPROOT/languages/lang_${lang}.po $POTFILE
10 msgfmt --statistics -o $APPROOT/languages/lang_${lang}.mo $APPROOT/languages/lang_${lang}.po