rem: var defaultPreviousWeeksInView = categoriesStringBundle.GetStringFromName("defaultPreviousWeeksInView" ); var PreviousWeeksInView = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "previousweeks.inview", defaultPreviousWeeksInView ); 
add: var PreviousWeeksInView = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "previousweeks.inview", gCalendarBundle.getString("defaultPreviousWeeksInView" ) ); 
context: function print(){   var args = new Object();   args.eventSource = gEventSource;   args.selectedEvents = gCalendarWindow.EventSelection.selectedEvents ;   args.selectedDate=gNewDateVariable = gCalendarWindow.getSelectedDate();   var categoriesStringBundle = srGetStrBundle("chrome://calendar/locale/calendar.properties");   var defaultWeekStart = categoriesStringBundle.GetStringFromName("defaultWeekStart" );   var Offset = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "week.start", defaultWeekStart );   var defaultWeeksInView = categoriesStringBundle.GetStringFromName("defaultWeeksInView" );   var WeeksInView = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "weeks.inview", defaultWeeksInView );   WeeksInView = ( WeeksInView >= 6 ) ? 6 : WeeksInView ;   var defaultPreviousWeeksInView = categoriesStringBundle.GetStringFromName("defaultPreviousWeeksInView" );   var PreviousWeeksInView = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "previousweeks.inview", defaultPreviousWeeksInView );   PreviousWeeksInView = ( PreviousWeeksInView >= WeeksInView - 1 ) ? WeeksInView - 1 : PreviousWeeksInView ;   args.startOfWeek=Offset;   args.weeksInView=WeeksInView;   args.prevWeeksInView=PreviousWeeksInView;   window.openDialog("chrome://calendar/content/printDialog.xul","printdialog","chrome",args);      //printEventArray( gCalendarWindow.EventSelection.selectedEvents, "chrome://calendar/content/converters/sortEvents.xsl" );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0f4889277ea2d47b71158b50d6b917786f8422b8/calendar.js/buggy/calendar/resources/content/calendar.js