瀏覽代碼

[metastore] Add some missed i18n in the ko templates

Romain Rigaux 10 年之前
父節點
當前提交
b991026
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      apps/metastore/src/metastore/templates/describe_table.mako

+ 6 - 3
apps/metastore/src/metastore/templates/describe_table.mako

@@ -17,7 +17,7 @@
 from django.utils.html import escape
 from desktop import conf
 from desktop.lib.i18n import smart_unicode
-from desktop.views import commonheader, commonfooter
+from desktop.views import commonheader, commonfooter, _ko
 from django.utils.translation import ugettext as _
 %>
 
@@ -111,7 +111,8 @@ ${ assist.assistPanel() }
         </td>
         <td data-bind="text: type"></td>
         <td>
-          <span data-bind="editable: comment, editableOptions: {enabled: true, placement: 'left', emptytext: 'Add a comment...' }" class="editable editable-click editable-empty">Add a comment...</span>
+          <span data-bind="editable: comment, editableOptions: {enabled: true, placement: 'left', emptytext: '${ _ko('Add a comment...') }' }" class="editable editable-click editable-empty">
+            ${ _('Add a comment...') }</span>
         </td>
       </tr>
     </tbody>
@@ -280,7 +281,9 @@ ${ assist.assistPanel() }
             </h3>
             <div class="clearfix"></div>
 
-            <span data-bind="editable: comment, editableOptions: {enabled: true, placement: 'right', emptytext: 'Add a description...' }" class="editable editable-click editable-empty">${ _('Add a description...') }</span>
+            <span data-bind="editable: comment, editableOptions: {enabled: true, placement: 'right', emptytext: '${ _ko('Add a description...') }' }" class="editable editable-click editable-empty">
+              ${ _('Add a description...') }
+            </span>
 
             <ul class="nav nav-pills margin-top-30">
               <li><a href="#overview" data-toggle="tab">${_('Overview')}</a></li>