Am 13.10.2016 um 15:14 schrieb Mingcai SHEN:
I'm using TG2.3.9 with Jinja2 templates, and when I run "setup.py
extract_messages", it does not extract any strings from jinja files
inside {% trans %} block or {{ gettext('') }} etc...
This should work. Are you sure your templates have the extension
".jinja" (and not ".jinja2" or ".html") and are living in the templates
directory (as specified in setup.py)? Are you sure there is no syntax
error in the jinja template? In Jinja 2.7 errors are silently ignored by
default, so it's recommended to set silent=false or use Jinja 2.8.
-- Chris
--
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/turbogears-trunk.
For more options, visit https://groups.google.com/d/optout.