rem:  fp.init(window, "Select Download Folder", nsIFilePicker.modeGetFolder); 
add:  var bundle = document.getElementById("strings"); var description = bundle.getString("selectDownloadDir"); fp.init(window, description, nsIFilePicker.modeGetFolder); 
context: function selectFolder(){   const nsIFilePicker = Components.interfaces.nsIFilePicker;  var fp = Components.classes["@mozilla.org/filepicker;1"]                      .createInstance(nsIFilePicker);  var pref = Components.classes["@mozilla.org/preferences-service;1"]                      .getService(Components.interfaces.nsIPrefBranch);  // XXXBlake Localize!  fp.init(window, "Select Download Folder", nsIFilePicker.modeGetFolder);  try   {    var initialDir = pref.getComplexValue(downloadDirPref, nsILocalFile);    if (initialDir)      fp.displayDirectory = initialDir;  }  catch (ex)  {    // ignore exception: file picker will open at default location  }  fp.appendFilters(nsIFilePicker.filterAll);  var ret = fp.show();  if (ret == nsIFilePicker.returnOK) {    var localFile = fp.file.QueryInterface(nsILocalFile);    pref.setComplexValue(downloadDirPref, nsILocalFile, localFile)    selectCustomFolder(true);  }  else {    var folderList = document.getElementById("downloadFolderList");    folderList.selectedIndex = gLastSelectedIndex;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9f77eb2ed3bc944875463037221270aa48271cdd/pref-downloads.js/buggy/toolkit/mozapps/downloads/content/pref-downloads.js