python-babel / flask-babel

i18n and l10n support for Flask based on Babel and pytz
https://python-babel.github.io/flask-babel/
Other
432 stars 159 forks source link

Add particular callables to Jinja #206

Closed czepiec closed 1 year ago

czepiec commented 1 year ago

Now with Flask-Babel it is not possible to use gettext particular callables (pgettext, npgettext) in Jinja templates, but install_gettext_callables() supports it. This PR fixes that.

homeworkprod commented 1 year ago

This seems to be a duplicate of my PR #190.

For some reason, your PR did not trigger the checks. My PR did, and ran into an issue with Python 3.5.

TkTech commented 1 year ago

Closed in favor of #190. Thanks!