Prechádzať zdrojové kódy

added trans filter for table header

Konstantin Potemichev 13 rokov pred
rodič
commit
fc1126032f

+ 1 - 1
Resources/views/CRUD/edit_orm_one_to_many.html.twig

@@ -28,7 +28,7 @@ file that was distributed with this source code.
                                             {% if nested_field.get('sonata_admin').field_description.options.name is defined %}
                                                 <th>{{ nested_field.get('sonata_admin').field_description.options.name }}</th>
                                             {% else %}
-                                                <th>{{ field_name }}</th>
+                                                <th>{{ field_name|trans({},'SonataAdminBundle') }}</th>
                                             {% endif %}                                         
                                         {% endif %}
                                     {% endfor %}