pylons - pybabel text extraction from mako templates -


by default pybabel extacting ${_("mystr")} strings fine mako templates, when try use ${pgettext("myctx", "mystr")} contextual translations, doesn't seem find , extract them.

my babel config pretty basic:

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

does know how pybabel extract pgettext translations mako templates?

with flask implemented importing pgettext mako:

kw['imports'] = ['from flask.ext.babel import gettext _, pgettext']


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -