Hi Chris,
Thank you for your help.
I finally find the problem after I changed silent to false:
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'with'.
在 2016年10月18日星期二 UTC+8下午7:03:47,Christoph Zwerschke写道:
>
> Am 18.10.2016 um 06:29 schrieb Mingcai SHEN:
> >
Zwerschke写道:
>
> Am 18.10.2016 um 06:29 schrieb Mingcai SHEN:
> > I tried both on linux and windows, and they are the same, not text
> > inside the tags was extracted into pot file. very strange
> > Problem with virtualenv ?
>
> It should work with virtualenv as w
No, the default silent is True:
silent = getbool(options, 'silent', True)
--
在 2016年10月19日星期三 UTC+8下午6:11:50,Christoph Zwerschke写道:
>
> Am 19.10.2016 um 07:57 schrieb Mingcai SHEN:
> > I finally find the problem after I changed silent to false:
>
> Glad you found it. I t
Zwerschke写道:
>
> 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 i
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...
the setup.py was configure as :
message_extractors={'fortress': [
('**.py', 'python', None),
xtract {% trans %} {% endtrans %} or {{ gettext('') }}
from the template files into the pot file.
在 2016年10月13日星期四 UTC+8下午11:37:27,Christoph Zwerschke写道:
>
> 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
> > ex