Hi,

I have a test jinja2 template that looks like

{{_('test')}}
{% autoescape False %}{{{_('test1')}}{% endautoescape %}

in my babel.cfg, I have
[ignore: **.ico]
[ignore: **.swp]
[python: **.py]
[jinja2: **.html]
[jinja2: **/templates/**]
encoding=utf-8
extensions=jinja2.ext.autoescape,jinja2.ext.with_

When running "pybabel extract -F conf/babel.cfg -o messages.pot .", the 
strings are not extracted into message.po.  If I removed the {% autoescape 
False %} and {% endautoescape %}, the strings are extracted.  This is 
related to the autoescape extension not loaded, but I specified it in the 
babe.cfg already.  I googled for a few hours, but couldn't find any lead. 
 Any pointer on where I should look?

Thanks,
Mason

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pocoo-libs/-/FFnFdbqwgR0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to