rem: error.value = top.bundle.GetStringFromName( 'ImportSettingsNotFound'); 
add: error.value = GetBundleString( 'ImportSettingsNotFound'); 
context: function ImportSettings( module, newAccount, error) {	var setIntf = module.GetImportInterface( "settings");	if (setIntf != null)		setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings);	if (setIntf == null) {		error.value = top.bundle.GetStringFromName( 'ImportSettingsBadModule');		return( false);	}		// determine if we can auto find the settings or if we need to ask the user	var location = new Object();	var description = new Object();	var result = setIntf.AutoLocate( description, location);	if (result == false) {		// In this case, we couldn't not find the settings		if (location.value != null) {			// Settings were not found, however, they are specified			// in a file, so ask the user for the settings file.			var filePicker = Components.classes["component://netscape/filespecwithui"].createInstance();			if (filePicker != null) {				filePicker = filePicker.QueryInterface( Components.interfaces.nsIFileSpecWithUI);				if (filePicker != null) {					// filePicker.create( window.top, "Select settings file", filePicker.modeLoad);					try {						filePicker.chooseInputFile( "Select settings file", filePicker.eAllFiles, null, null);						setIntf.SetLocation( filePicker.QueryInterface( Components.interfaces.nsIFileSpec));					} catch( ex) {						error.value = null;						return( false);					}									}				else {					error.value = top.bundle.GetStringFromName( 'ImportSettingsNotFound');					return( false);				}			}			else {				error.value = top.bundle.GetStringFromName( 'ImportSettingsNotFound');				return( false);			}		}		else {			error.value = top.bundle.GetStringFromName( 'ImportSettingsNotFound');			return( false);		}	}	// interesting, we need to return the account that new	// mail should be imported into?	// that's really only useful for "Upgrade"	var result = setIntf.Import( newAccount);	if (result == false) {		error.value = top.bundle.GetStringFromName( 'ImportSettingsFailed');	}	return( result);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b79d899f330c9b2f6a2a5e3e0536cb85b91f2516/importDialog.js/buggy/mailnews/import/resources/content/importDialog.js