rem: fp.defaultString = "MozillaCalendarFile.ics"; 
add: fp.defaultString = gCalendarBundle.getString( "filepickerDefString" ); 
context: function launchFilePicker(){   // No show the 'Save As' dialog and ask for a filename to save to   const nsIFilePicker = Components.interfaces.nsIFilePicker;   var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);   // caller can force disable of sand box, even if ON globally   fp.init(window, "Save", nsIFilePicker.modeSave);   var ServerName = document.getElementById( "server-name-textbox" ).value;   if( ServerName == "" )      fp.defaultString = "MozillaCalendarFile.ics";   else      fp.defaultString = "MozillaCalendar"+ServerName+".ics";      fp.defaultExtension = "ics";   const filterCalendar    = "Calendar Files";   const extensionCalendar = ".ics";   fp.appendFilter( filterCalendar, "*" + extensionCalendar );      fp.show();   if (fp.file && fp.file.path.length > 0)   {      document.getElementById( "server-path-textbox" ).value = fp.file.path;      gCalendarObject.path = fp.file.path;      if( document.getElementById( "server-name-textbox" ).value == "" )      {         var fullPathRegex = new RegExp(".*[/\\\\:]([^/\\\\:]+)[\.]ics$");                     var filename;                   if (fullPathRegex.test(fp.file.path))            filename = fp.file.path.replace(fullPathRegex, "$1");                     document.getElementById( "server-name-textbox" ).value = filename;      }   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fd6cbdd83f28ebcb811a684385dd5c52936bfe16/localCalDialog.js/clean/calendar/resources/content/localCalDialog.js