[Form] fixed translations escaping

This commit is contained in:
Fabien Potencier 2011-04-21 07:48:12 +02:00
parent 967a42b797
commit 9694ac77a7

View File

@ -18,7 +18,7 @@
{% if errors|length > 0 %}
<ul>
{% for error in errors %}
<li>{% trans error.messageTemplate with error.messageParameters from 'validators' %}</li>
<li>{{ error.messageTemplate|trans(error.messageParameters, 'validators') }}</li>
{% endfor %}
</ul>
{% endif %}
@ -37,7 +37,7 @@
{% block field_label %}
{% spaceless %}
<label for="{{ id }}">{% trans label %}</label>
<label for="{{ id }}">{{ label|trans }}</label>
{% endspaceless %}
{% endblock field_label %}