Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pybabel extractor: fails with {% with %} blocks #54

Closed
curio77 opened this issue Aug 11, 2011 · 1 comment
Closed

pybabel extractor: fails with {% with %} blocks #54

curio77 opened this issue Aug 11, 2011 · 1 comment

Comments

@curio77
Copy link

curio77 commented Aug 11, 2011

If {% with %} blocks are used in a template, the pybabel extractor will not yield any strings for the template.

Minimal example:

{% trans %}Test{% endtrans %}
{% with %}{% endwith %}

This will yield no translation strings. Removing the second line will ("Test").

Encountered with Python 2.7.1, jinja2 2.6, pybabel 0.9.6.

@curio77
Copy link
Author

curio77 commented Aug 11, 2011

My fault; I hadn't realized that the with extension needs to be specified in mappings.cfg as well. Sorry about the noise.

@curio77 curio77 closed this as completed Aug 11, 2011
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant