add:  var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService);  var props = sbs.createBundle("chrome: var windowTitle = props.formatStringFromName("PrintPreviewWindowTitle", [args.title], 1); document.title = windowTitle; 
context: function OnLoadPrintEngine(){  var args = window.arguments[0];  gContent = document.getElementById("content");  var htmlexporter = Components.classes["@mozilla.org/calendar/export;1?type=html"].createInstance(Components.interfaces.calIExporter);  // Fail-safe check to not init twice, to prevent leaking files  if (!gTempFile) {    const nsIFile = Components.interfaces.nsIFile;    var dirService = Components.classes["@mozilla.org/file/directory_service;1"]                               .getService(Components.interfaces.nsIProperties);    gTempFile = dirService.get("TmpD", nsIFile);    gTempFile.append("calendarPrint.html");    gTempFile.createUnique(nsIFile.NORMAL_FILE_TYPE, 0600);    dump("tf: "+gTempFile.path+"\n");    var ioService = Components.classes["@mozilla.org/network/io-service;1"]                              .getService(Components.interfaces.nsIIOService);    var gTempUri = ioService.newFileURI(gTempFile);   }  const nsIFileOutputStream = Components.interfaces.nsIFileOutputStream;  var outputStream;  var stream = Components.classes["@mozilla.org/network/file-output-stream;1"]                         .createInstance(Components.interfaces.nsIFileOutputStream);  try {    stream.init(gTempFile, 0x2A, 0600, 0);    htmlexporter.exportToStream(stream, args.eventList.length, args.eventList);    stream.close();  }  catch(ex) {    dump('print failed to export:'+ ex);  }  gHtmlDocument = window.content.document;  gHtmlDocument.location.href = gTempUri.spec;  BrowserPrintPreview();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/38f0a2d00d0e90096565a7770d9ccf69f7408caa/calPrintEngine.js/clean/calendar/resources/content/calPrintEngine.js