Skip to content

Commit

Permalink
Merge pull request #331 from kamiramix/develop
Browse files Browse the repository at this point in the history
Translate menu labels
  • Loading branch information
Florian Eckerstorfer committed Jan 22, 2016
2 parents 003c0ad + b0e2328 commit 38655d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/Menu/bootstrap.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@

{% block spanElement %}<span{{ attributes(item.labelAttributes) }}>{{ block('label') }}</span>{% endblock %}

{% block label %}{% if options.allow_safe_labels and item.getExtra('safe_label', false) %}{{ item.label|raw|parse_icons }}{% else %}{{ item.label|parse_icons }}{% endif %}{% endblock %}
{% block label %}{% if options.allow_safe_labels and item.getExtra('safe_label', false) %}{{ item.label|trans(item.getExtra('translation_params', {}), item.getExtra('translation_domain', 'messages'))|raw|parse_icons }}{% else %}{{ item.label|trans(item.getExtra('translation_params', {}), item.getExtra('translation_domain', 'messages'))|parse_icons }}{% endif %}{% endblock %}

0 comments on commit 38655d1

Please sign in to comment.