Am 17.10.2016 um 14:56 schrieb Mingcai SHEN:
But it just can extract {% trans %} {% endtrans %} or {{ gettext('') }}
from the template files into the pot file.

You meant *can't* extract, not *can* extract, right?

I just tried it with a newly created project, and this simple template:

{{ gettext('Hello gettext!') }}
{% trans %}Hello trans!{% endtrans %}

Both texts were copied to the i18n/*.pot file.

I have used Python 2.7, TG 2.3.9, Babel 2.3.4 and Jinja2 2.8.

Are you using any different versions? Also, does it work for you with a newly created project and the above simple template?

-- 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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to