Skip to content

Commit df0e426

Browse files
FabienSallesisometriks
authored andcommitted
Avoid missing translation notices (#1226)
Avoid missing translation notices when translation_domain is set to false on tabs
1 parent 03ebbb8 commit df0e426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/views/Form/fields.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
<li{% if class|trim is not empty %} class="{{ class }}"{% endif %}>
142142
<a data-toggle="tab" href="#{{ tab.id }}">
143143
{% if tab.icon %}{{ mopa_bootstrap_icon(tab.icon) }}{% endif %}
144-
{{ tab.label|trans({}, tab.translation_domain) }}
144+
{{ tab.translation_domain is same as(false) ? tab.label : tab.label|trans({}, tab.translation_domain) }}
145145
</a>
146146
</li>
147147
{% endfor %}

0 commit comments

Comments
 (0)