Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 446480e commit 7cae00fCopy full SHA for 7cae00f
src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
@@ -275,11 +275,14 @@
275
{% set label = name|humanize %}
276
{%- endif -%}
277
278
+ {%- if translation_domain is not same as(false) -%}
279
+ {%- set label = label|trans(label_translation_parameters, translation_domain) -%}
280
+ {%- endif -%}
281
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>
- {%- if translation_domain is same as(false) -%}
- {{- label -}}
282
+ {%- if label_raw|default(false) -%}
283
+ {{- label|raw -}}
284
{%- else -%}
- {{- label|trans(label_translation_parameters, translation_domain) -}}
285
+ {{- label -}}
286
287
</{{ element|default('label') }}>
288
0 commit comments