pass translation parameters to the trans filter
This commit is contained in:
parent
36466a3ab5
commit
daac024057
@ -99,7 +99,7 @@
|
|||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
|
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
|
||||||
{{- widget|raw }} {{ label is not same as(false) ? (translation_domain is same as(false) ? label : label|trans({}, translation_domain)) -}}
|
{{- widget|raw }} {{ label is not same as(false) ? (translation_domain is same as(false) ? label : label|trans(label_translation_parameters, translation_domain)) -}}
|
||||||
</label>
|
</label>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endblock checkbox_radio_label %}
|
{%- endblock checkbox_radio_label %}
|
||||||
|
@ -266,7 +266,7 @@
|
|||||||
|
|
||||||
{{ widget|raw }}
|
{{ widget|raw }}
|
||||||
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
|
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
|
||||||
{{- label is not same as(false) ? (translation_domain is same as(false) ? label : label|trans({}, translation_domain)) -}}
|
{{- label is not same as(false) ? (translation_domain is same as(false) ? label : label|trans(label_translation_parameters, translation_domain)) -}}
|
||||||
{{- form_errors(form) -}}
|
{{- form_errors(form) -}}
|
||||||
</label>
|
</label>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
@ -266,7 +266,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
|
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
|
||||||
{{ widget|raw }}
|
{{ widget|raw }}
|
||||||
{{ translation_domain is same as(false) ? label : label|trans({}, translation_domain) }}
|
{{ translation_domain is same as(false) ? label : label|trans(label_translation_parameters, translation_domain) }}
|
||||||
</label>
|
</label>
|
||||||
{%- endblock checkbox_radio_label %}
|
{%- endblock checkbox_radio_label %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user