diff --git a/Resources/views/blocks.html.twig b/Resources/views/blocks.html.twig index 48f0b0c0..466ceac6 100644 --- a/Resources/views/blocks.html.twig +++ b/Resources/views/blocks.html.twig @@ -69,13 +69,19 @@ {% set columnTitle = column.title %} {% if column.usePrefixTitle == true %} - {% set columnTitle = grid.prefixTitle ~ columnTitle ~ '__abbr' %} - {% if columnTitle|trans({}, translation_domain) == columnTitle %} - {% set columnTitle = grid.prefixTitle ~ column.title %} + {% if translation_domain is same as(false) %} + {%- set columnTitle = grid.prefixTitle ~ column.title -%} + {% else %} + {%- set columnTitle = grid.prefixTitle ~ columnTitle ~ '__abbr' -%} + {% if columnTitle|trans({}, translation_domain) == columnTitle %} + {%- set columnTitle = grid.prefixTitle ~ column.title -%} + {% endif %} {% endif %} {% endif %} - {% set columnTitle = columnTitle|trans({}, translation_domain) %} + {% if translation_domain is not same as(false) %} + {%- set columnTitle = columnTitle|trans({}, translation_domain) -%} + {% endif %} {% if (column.sortable) %} {{ columnTitle }}