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
Post a Comment