X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=po%2FMakefile;h=0f1f7163d0128c00893b72fff7ade510db1fc3b4;hb=1c71a12868e08c6050fa4c283665f82a67e50c10;hp=92f5b61dbf974a7c3ad069da437a0dd08619334d;hpb=78cd27b3ec8300e0a8ed7e6b909e3ea99fa75911;p=banana.git diff --git a/po/Makefile b/po/Makefile index 92f5b61..0f1f716 100644 --- a/po/Makefile +++ b/po/Makefile @@ -10,10 +10,14 @@ all: banana.pot ${LANGS:=.lang} clean: rm -f *.po~ *.lang -banana.pot: ../banana/*.php +banana.pot: @echo Parsing Tree for new messages @echo - @xgettext --from-code=iso-8859-15 -j -k_b_ -o banana.pot $< + @echo " template.php + @grep "|b" ../banana/templates/*.tpl | sed 's/\(.*\)\("[^"]*"\)|b\(.*\)/$var = _b_(\2);/g' >> template.php + @echo "?>" >> template.php + @xgettext --from-code=UTF-8 -j -k_b_ -o banana.pot ../banana/*.php ./template.php + @rm template.php %.lang: banana.pot ../banana/*.php %.po @echo Generating $(@:.lang=.po)