How does one extract translatable text from the {% trans %} tags in a
Jinja template to produce a PO file?

Using pybabel with a mapping file containing:

[jinja2: **/templates/**.html]
encoding = utf-8

does not work for me.

The docs say this:

"Jinja provides support for extracting gettext messages from templates
via a Babel extractor entry point called jinja2.ext.babel_extract. The
Babel support is implemented as part of the i18n Extension extension."

which seems to imply that some further configuration may be required,
but I can't figure out what.

How is this supposed to work?

Glenn

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
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