From 7b6309dd1537e6b653cfb901c7a424c56a63ca9b Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 12 Oct 2011 13:57:44 +0200 Subject: [PATCH] [FIX] translation of attachment and calendar sidebar sections bzr revid: chs@openerp.com-20111012115744-sv7kvwqbt2p5vdio --- addons/web/static/src/js/view_form.js | 2 +- addons/web_calendar/static/src/js/calendar.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index af0a9370933..de360500c4e 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 e312de5c431..de2ae89b91e 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; },