diff options
author | emkael <emkael@tlen.pl> | 2016-10-29 14:44:14 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-10-31 21:58:14 +0100 |
commit | b23bfbb17d1d5f6852a1690f246a84c2d38ae969 (patch) | |
tree | a4a04229ca7de6be7855bfce0026e216be109585 /bin/prado-locales-build | |
parent | 53597812732c7891b087ef9de9788b824326dd93 (diff) |
* moving translation messages to subdirectory
Diffstat (limited to 'bin/prado-locales-build')
-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 |