Permalink
Browse files

Update src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.h…

…tml.twig

Fixed formatting & translation ..
  • Loading branch information...
1 parent 07a111e commit 9a06f299857e6b18247b3c70fd3658fc288903e0 @BenjaminBeck committed Sep 3, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
@@ -228,12 +228,12 @@
{% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' required')|trim}) %}
{% endif %}
{% if label is not sameas(false) %}
- {% if label is empty %}
- {% set label = name|humanize %}
- {% endif %}
- <label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>{{ label }}</label>
- {% endif %}
- {% endspaceless %}
+ {% if label is empty %}
+ {% set label = name|humanize %}
+ {% endif %}
+ <label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>{{ label|trans({}, translation_domain) }}</label>
+ {% endif %}
+{% endspaceless %}
{% endblock form_label %}
{# Rows #}

0 comments on commit 9a06f29

Please sign in to comment.