From b23bfbb17d1d5f6852a1690f246a84c2d38ae969 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 29 Oct 2016 14:44:14 +0200 Subject: * moving translation messages to subdirectory --- bin/prado-locales-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/prado-locales-build') 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 -- cgit v1.2.3