diff --git a/packages/sonata-extra-bundle/Resources/views/CRUD/show_grid.html.twig b/packages/sonata-extra-bundle/Resources/views/CRUD/show_grid.html.twig index 836ad474..11901b83 100644 --- a/packages/sonata-extra-bundle/Resources/views/CRUD/show_grid.html.twig +++ b/packages/sonata-extra-bundle/Resources/views/CRUD/show_grid.html.twig @@ -12,7 +12,17 @@ {% for field in field_description.options.fields %} {% if field.type != 'grid' %} {% set colCount = colCount +1 %} - {{ field.label }} + + {% 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 %} + {% endif %} {% endfor %}