diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/prado-locales-build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/prado-locales-build b/bin/prado-locales-build index b7edb61..10ffc0c 100755 --- a/bin/prado-locales-build +++ b/bin/prado-locales-build @@ -6,7 +6,7 @@ find app/frontend -name \*.page -o -name \*.tpl | while read FILE; do tpl2c.py $FILE $OUTPUT done -POTFILE=app/frontend/i18n/messages.pot +POTFILE=app/frontend/i18n/messages/messages.pot touch $POTFILE sed -i '/^#\. /d' $POTFILE @@ -15,7 +15,7 @@ sed -i 's/charset=CHARSET/charset=UTF-8/' $POTFILE find app/frontend \( -name \*.php -o -name \*.tpl -o -name \*.page \) -exec xgettext {} --keyword=localize:1 -L PHP --sort-by-file --add-comments --from-code=utf-8 --foreign-user -j -o $POTFILE \; sed -i 's/charset=CHARSET/charset=UTF-8/' $POTFILE -find app/frontend/i18n -mindepth 1 -type d | while read LANGDIR; do +find app/frontend/i18n/messages -mindepth 1 -type d | while read LANGDIR; do LANG_CODE=$(basename $LANGDIR) POFILE=$LANGDIR/messages.po MOFILE=${POFILE%.*}.mo |