Skip to content

Commit

Permalink
Added "trans" Twig filters to labels in the "widget_choice_options" b…
Browse files Browse the repository at this point in the history
…lock
  • Loading branch information
cyrillej committed Jun 29, 2011
1 parent fb19e84 commit 4e7b16f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -21,11 +21,11 @@
{% if _form_is_choice_group(label) %}
<optgroup label="{{ choice }}">
{% for nestedChoice, nestedLabel in label %}
<option value="{{ nestedChoice }}"{% if _form_is_choice_selected(form, nestedChoice) %} selected="selected"{% endif %}>{{ nestedLabel }}</option>
<option value="{{ nestedChoice }}"{% if _form_is_choice_selected(form, nestedChoice) %} selected="selected"{% endif %}>{{ nestedLabel|trans }}</option>
{% endfor %}
</optgroup>
{% else %}
<option value="{{ choice }}"{% if _form_is_choice_selected(form, choice) %} selected="selected"{% endif %}>{{ label }}</option>
<option value="{{ choice }}"{% if _form_is_choice_selected(form, choice) %} selected="selected"{% endif %}>{{ label|trans }}</option>
{% endif %}
{% endfor %}
{% endspaceless %}
Expand Down

0 comments on commit 4e7b16f

Please sign in to comment.