[TwigBridge] Adapted TwigBridge to translator integration in the validator

This commit is contained in:
Bernhard Schussek 2012-11-27 23:17:49 +01:00
parent e7eb5b0d7d
commit 92a3b27a70

View File

@ -275,11 +275,7 @@
{% if errors|length > 0 %} {% if errors|length > 0 %}
<ul> <ul>
{% for error in errors %} {% for error in errors %}
<li>{{ <li>{{ error.message }}</li>
error.messagePluralization is null
? error.messageTemplate|trans(error.messageParameters, 'validators')
: error.messageTemplate|transchoice(error.messagePluralization, error.messageParameters, 'validators')
}}</li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}