Skip to content

Commit 38655d1

Browse files
author
Florian Eckerstorfer
committed
Merge pull request #331 from kamiramix/develop
Translate menu labels
2 parents 003c0ad + b0e2328 commit 38655d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Resources/views/Menu/bootstrap.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,4 @@
188188

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

191-
{% 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 %}
191+
{% 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 commit comments

Comments
 (0)