[FIX] translation of attachment and calendar sidebar sections
authorChristophe Simonis <chs@openerp.com>
Wed, 12 Oct 2011 11:57:44 +0000 (13:57 +0200)
committerChristophe Simonis <chs@openerp.com>
Wed, 12 Oct 2011 11:57:44 +0000 (13:57 +0200)
bzr revid: chs@openerp.com-20111012115744-sv7kvwqbt2p5vdio

addons/web/static/src/js/view_form.js
addons/web_calendar/static/src/js/calendar.js

index af0a937..de36050 100644 (file)
@@ -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 = $('<div class="oe-sidebar-attachments"></div>');
         $section.append(this.$div);
 
index e312de5..de2ae89 100644 (file)
@@ -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 = $('<div></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;
     },