Skip to content

Commit

Permalink
don't translate error messages twice
Browse files Browse the repository at this point in the history
As @stof pointed out in #12164, error messages are already translated
when they are passed to the template.
  • Loading branch information
xabbuh committed Oct 26, 2014
1 parent 23f0411 commit 4bd8661
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 %}
Expand Down

0 comments on commit 4bd8661

Please sign in to comment.