]> dev.renevier.net Git - syj.git/blob - scripts/updatepo.sh
allow opening terms of use box with space keyboard
[syj.git] / scripts / updatepo.sh
1 #!/bin/sh
2 POTFILE=`mktemp /tmp/XXXXXXXXXX.pot`
3 GITROOT=`git rev-parse --show-cdup`
4 GITROOT=${GITROOT:-.}
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
8     echo $lang language
9     msgmerge -U $APPROOT/languages/lang_${lang}.po $POTFILE
10     msgfmt --statistics -o $APPROOT/languages/lang_${lang}.mo $APPROOT/languages/lang_${lang}.po
11 done
12 rm -f $POTFILE