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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -