From 1dfd69590d49db4ff8730ad656230ec921edba62 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 12 Oct 2011 12:18:02 +0200 Subject: [PATCH] [IMP] _t() sidebar bzr revid: chs@openerp.com-20111012101802-fdrjaj80x03hx7xz --- addons/web/static/src/js/views.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 5837431530c..b4f65023e11 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -522,38 +522,38 @@ db.web.Sidebar = db.web.Widget.extend({ }, add_default_sections: function() { - this.add_section('Customize', 'customize'); + this.add_section(_t('Customize'), 'customize'); this.add_items('customize', [ { - label: "Manage Views", + label: _t("Manage Views"), callback: this.call_default_on_sidebar, - title: "Manage views of the current object" + title: _t("Manage views of the current object"), }, { - label: "Edit Workflow", + label: _t("Edit Workflow"), callback: this.call_default_on_sidebar, - title: "Manage views of the current object", + title: _t("Manage views of the current object"), classname: 'oe_hide oe_sidebar_edit_workflow' }, { - label: "Customize Object", + label: _t("Customize Object"), callback: this.call_default_on_sidebar, - title: "Manage views of the current object" + title: _t("Manage views of the current object"), } ]); - this.add_section('Other Options', 'other'); + this.add_section(_t('Other Options'), 'other'); this.add_items('other', [ { - label: "Import", + label: _t("Import"), callback: this.call_default_on_sidebar, }, { - label: "Export", + label: _t("Export"), callback: this.call_default_on_sidebar, }, { - label: "Translate", + label: _t("Translate"), callback: this.call_default_on_sidebar, classname: 'oe_sidebar_translate oe_hide' }, { - label: "View Log", + label: _t("View Log"), callback: this.call_default_on_sidebar, classname: 'oe_hide oe_sidebar_view_log' } @@ -562,7 +562,7 @@ db.web.Sidebar = db.web.Widget.extend({ add_toolbar: function(toolbar) { var self = this; - _.each([['print', "Reports"], ['action', "Actions"], ['relate', "Links"]], function(type) { + _.each([['print', _t("Reports")], ['action', _t("Actions")], ['relate', _t("Links")]], function(type) { var items = toolbar[type[0]]; if (items.length) { for (var i = 0; i < items.length; i++) {