From 15e7adaefb6a0f4cd2c5c8b6069691eda3193aaa Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Wed, 9 Feb 2011 01:02:58 +0100 Subject: [PATCH] Add the PHP command to extract the i18n contents from Pluf's template files --- release-script | 2 ++ 1 file changed, 2 insertions(+) diff --git a/release-script b/release-script index d47ba82..7f9248a 100755 --- a/release-script +++ b/release-script @@ -1,6 +1,8 @@ #!/bin/sh last="$1" new="$2" +PLUF_PATH=`php -r "require_once('./IDF/conf/path.php'); echo PLUF_PATH;"` +echo "php $PLUF_PATH/extracttemplates.php ./IDF/conf/idf.php ./IDF/gettexttemplates" echo "xgettext -o idf.pot -p ./IDF/locale --force-po --from-code=UTF-8 --keyword --keyword=__ --keyword=_n:1,2 -L PHP ./IDF/*.php" echo "find ./ -iname \"*.php\" -exec xgettext -o idf.pot -p ./IDF/locale/ --from-code=UTF-8 -j --keyword --keyword=__ --keyword=_n:1,2 -L PHP {} \;" echo 'for pofile in `ls ./IDF/locale/*/idf.po`; do msgmerge -U $pofile ./IDF/locale/idf.pot; done'