rem: calendarStringBundle.GetStringFromName( "deleteCalendarOnly" ),null,calendarStringBundle.GetStringFromName( "deleteCalendarAndFile" ),null, result); 
add: gCalendarBundle.getString( "deleteCalendarOnly" ),null,gCalendarBundle.getString( "deleteCalendarAndFile" ),null, result); 
context: function deleteCalendar( ){   // Show a dialog with option to import events with or without dialogs   var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();    promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService);    var result = {value:0};    var calendarStringBundle = srGetStrBundle("chrome://calendar/locale/calendar.properties");      var buttonPressed =            promptService.confirmEx(window,                             calendarStringBundle.GetStringFromName( "deleteCalendarTitle" ), calendarStringBundle.GetStringFromName( "deleteCalendarMessage" ),                             (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_0) +                             (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) +                             (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_2),                             calendarStringBundle.GetStringFromName( "deleteCalendarOnly" ),null,calendarStringBundle.GetStringFromName( "deleteCalendarAndFile" ),null, result);       var IdToDelete = gCalendarWindow.calendarManager.getSelectedCalendarId()      var calendarObjectToDelete = gCalendarWindow.calendarManager.rdf.getNode( IdToDelete );   if(buttonPressed == 0) // Delete calendar   {       gCalendarWindow.calendarManager.deleteCalendar( calendarObjectToDelete, false );   }   else if(buttonPressed == 2) //delete calendar and file   {       gCalendarWindow.calendarManager.deleteCalendar( calendarObjectToDelete, true );   }    else if(buttonPressed == 1) // CANCEL   {       return false;    }       refreshEventTree( getAndSetEventTable() );   refreshToDoTree( false );   gCalendarWindow.currentView.refreshEvents();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fd6cbdd83f28ebcb811a684385dd5c52936bfe16/calendarManager.js/clean/calendar/resources/content/calendarManager.js