Skip to content

Commit

Permalink
[SonataExtradBundle] translate show grid column name
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoiriert committed May 3, 2024
1 parent 69b4495 commit af3bba8
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@
{% for field in field_description.options.fields %}
{% if field.type != 'grid' %}
{% set colCount = colCount +1 %}
<th>{{ field.label }}</th>
<th>
{% apply spaceless %}
{% if field.label is not same as(false) %}
{% if field.translationDomain is same as(false) %}
{{ field.label }}
{% else %}
{{ field.label|trans({}, field.translationDomain) }}
{% endif %}
{% endif %}
{% endapply %}
</th>
{% endif %}
{% endfor %}
</tr>
Expand Down

0 comments on commit af3bba8

Please sign in to comment.