rem: var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService( Components.interfaces.nsIStringBundleService); var props = sbs.createBundle( "chrome: homeCalendar.name = props.GetStringFromName("homeCalendarName"); 
add: homeCalendar.name = calGetString("calendar", "homeCalendarName"); 
context: function getCalendarManager(){    if (!activeCalendarManager) {        activeCalendarManager = ltnGetService("@mozilla.org/calendar/manager;1",                                              "calICalendarManager");        activeCalendarManager.addObserver(ltnCalendarManagerObserver);    }    if (activeCalendarManager.getCalendars({}).length == 0) {        var homeCalendar = activeCalendarManager.createCalendar("storage",                            makeURL("moz-profile-calendar://"));        activeCalendarManager.registerCalendar(homeCalendar);        var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"]                            .getService(                             Components.interfaces.nsIStringBundleService);        var props = sbs.createBundle(                    "chrome://calendar/locale/calendar.properties");        homeCalendar.name = props.GetStringFromName("homeCalendarName");        var composite = getCompositeCalendar();        composite.addCalendar(homeCalendar);        // XXX this doesn't make it selected, but you do add to it    }    return activeCalendarManager;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4deb9624b116020469000c8700678915abb1edaf/calendar-management.js/clean/calendar/lightning/content/calendar-management.js