bug #12322 don't translate error messages twice (xabbuh)
This PR was merged into the 2.6-dev branch.
Discussion
----------
don't translate error messages twice
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
As @stof pointed out in #12164, error messages are already translated
when they are passed to the template.
Commits
-------
4bd8661
don't translate error messages twice
This commit is contained in:
commit
071b400de7
@ -227,7 +227,7 @@
|
||||
{% if form.parent %}<span class="help-block">{% else %}<div class="alert alert-danger">{% endif %}
|
||||
<ul class="list-unstyled">
|
||||
{%- for error in errors -%}
|
||||
<li><span class="glyphicon glyphicon-exclamation-sign"></span> {{ error.message|trans({}, translation_domain) }}</li>
|
||||
<li><span class="glyphicon glyphicon-exclamation-sign"></span> {{ error.message }}</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
{% if form.parent %}</span>{% else %}</div>{% endif %}
|
||||
|
Reference in New Issue
Block a user