[TwigBridge] Adapted TwigBridge to translator integration in the validator
This commit is contained in:
parent
e7eb5b0d7d
commit
92a3b27a70
@ -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 %}
|
||||||
|
Reference in New Issue
Block a user