Skip to content

Commit

Permalink
merged branch Tuxosaurus/master (PR #1475)
Browse files Browse the repository at this point in the history
Commits
-------

4e7b16f Added "trans" Twig filters to labels in the "widget_choice_options" block

Discussion
----------

Missing "trans" Twig filters for labels in the "widget_choice_options" block

Added "trans" Twig filters to labels in the "widget_choice_options" block.
A quick fix for a quick need, there might be other missing trans filters remaining.
  • Loading branch information
fabpot committed Jun 29, 2011
2 parents eaef60b + 4e7b16f commit ed4de1f
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 ed4de1f

Please sign in to comment.