From: Christophe Simonis Date: Wed, 12 Oct 2011 11:57:44 +0000 (+0200) Subject: [FIX] translation of attachment and calendar sidebar sections X-Git-Tag: 6.1.0-rc1-addons~126^2~45^2~1 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=7b6309dd1537e6b653cfb901c7a424c56a63ca9b;p=odoo%2Fodoo.git [FIX] translation of attachment and calendar sidebar sections bzr revid: chs@openerp.com-20111012115744-sv7kvwqbt2p5vdio --- diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index af0a937..de36050 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -542,7 +542,7 @@ openerp.web.form = {}; openerp.web.form.SidebarAttachments = openerp.web.Widget.extend({ init: function(parent, form_view) { - var $section = parent.add_section('Attachments'); + var $section = parent.add_section(_t('Attachments'), 'attachments'); this.$div = $('
'); $section.append(this.$div); diff --git a/addons/web_calendar/static/src/js/calendar.js b/addons/web_calendar/static/src/js/calendar.js index e312de5..de2ae89 100644 --- a/addons/web_calendar/static/src/js/calendar.js +++ b/addons/web_calendar/static/src/js/calendar.js @@ -363,7 +363,7 @@ openerp.web_calendar.CalendarFormDialog = openerp.web.Dialog.extend({ openerp.web_calendar.SidebarResponsible = openerp.web.Widget.extend({ init: function(parent, view) { - var $section = parent.add_section('Responsible'); + var $section = parent.add_section(_t('Responsible'), 'responsible'); this.$div = $('
'); $section.append(this.$div); this._super(parent, $section.attr('id')); @@ -392,7 +392,7 @@ openerp.web_calendar.SidebarResponsible = openerp.web.Widget.extend({ openerp.web_calendar.SidebarNavigator = openerp.web.Widget.extend({ init: function(parent, view) { - var $section = parent.add_section('Navigator'); + var $section = parent.add_section(_t('Navigator'), 'navigator'); this._super(parent, $section.attr('id')); this.view = view; },