eav-manager icon indicating copy to clipboard operation
eav-manager copied to clipboard

Columns are not translated

Open johnkrovitch opened this issue 5 years ago • 1 comments

It seems that columns of a datagrid does not use the translation system, so I can't be translated. Again we must override a lot of files.....

johnkrovitch avatar Nov 29 '19 14:11 johnkrovitch

In DataGrid/template.html.twig, the following code should be added :

{% if sort[column.sortColumn] is defined %}
    {{ form_widget(sort[column.sortColumn], {label: column.renderLabel | trans}) }}
{% else %}
    {{ column.renderLabel | trans }}
{% endif %}

johnkrovitch avatar Nov 29 '19 14:11 johnkrovitch