瀏覽代碼

Merge pull request #281 from zeeke/master

Added "trans" filter for table header
Thomas 13 年之前
父節點
當前提交
9af78e29cc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Resources/views/CRUD/edit_orm_one_to_many.html.twig

+ 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 }}</th>
                                             {% endif %}                                         
                                         {% endif %}
                                     {% endfor %}