소스 검색

added missed translations in dashboard, base_list, base_edit template

Marcin Sikon 14 년 전
부모
커밋
99e620cc29
3개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      Resources/views/CRUD/base_edit.html.twig
  2. 2 2
      Resources/views/CRUD/base_list.html.twig
  3. 2 2
      Resources/views/Core/dashboard.html.twig

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

@@ -37,7 +37,7 @@ file that was distributed with this source code.
             {% if name %}
                 <fieldset>
                     <legend>
-                        {{ name }}
+                        {% trans name %}
                         {% if form_group.collapsed %}
                             <a href="" class="sonata-ba-collapsed">{% trans 'link_expand' from 'BaseApplicationBundle' %}</a>
                         {% endif %}

+ 2 - 2
Resources/views/CRUD/base_list.html.twig

@@ -32,9 +32,9 @@ file that was distributed with this source code.
                         {% else %}
                                 {% spaceless %}<th class="sonata-ba-list-field-header sonata-ba-list-field-header-{{ field_description.type}}">
                                     {% if field_description.options.name is defined %}
-                                        {{ field_description.options.name }}
+                                        {% trans field_description.options.name from admin.translationdomain %}
                                     {% else %}
-                                        {{ field_description.name }}
+                                        {% trans field_description.name from admin.translationdomain %}
                                     {% endif %}
                                 </th>{% endspaceless %}
                         {% endif %}

+ 2 - 2
Resources/views/Core/dashboard.html.twig

@@ -19,14 +19,14 @@ file that was distributed with this source code.
         <table class="sonata-ba-list">
             <thead>
                 <tr>
-                    <th  colspan="3">{{ code }}</td>
+                    <th  colspan="3">{% trans code from 'BaseApplicationBundle' %}</td>
                 </tr>
             </thead>
 
             <tbody>
                 {% for admin in group %}
                     <tr>
-                        <td class="sonata-ba-list-label">{{ admin.label}}</td>
+                        <td class="sonata-ba-list-label">{% trans admin.label from admin.translationdomain  %}</td>
                         <td><a href="{{ admin.generateUrl('create')}}"><img src="{{ asset('bundles/sonatabaseapplication/famfamfam/add.png') }}" /> {% trans 'link_add' from 'BaseApplicationBundle' %}</a></td>
                         <td><a href="{{ admin.generateUrl('list')}}"><img src="{{ asset('bundles/sonatabaseapplication/famfamfam/application_view_list.png') }}" />{% trans 'link_list' from 'BaseApplicationBundle' %}</a></td>
                     </tr>