瀏覽代碼

added missed translations in dashboard, base_list, base_edit template

Marcin Sikon 14 年之前
父節點
當前提交
99e620cc29

+ 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>