rem: error.value = GetBundleString( 'ImportSettingsNotFound'); 
add: error.value = gImportMsgsBundle.getString('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 = GetBundleString( '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["@mozilla.org/filepicker;1"].createInstance();			if (filePicker != null) {				filePicker = filePicker.QueryInterface( Components.interfaces.nsIFilePicker);				if (filePicker != null) {					var file = null;					try {						filePicker.init( top.window, GetBundleString( 'ImportSelectSettings'), Components.interfaces.nsIFilePicker.modeOpen);						filePicker.appendFilters( Components.interfaces.nsIFilePicker.filterAll);						filePicker.show();						if (filePicker.file && (filePicker.file.path.length > 0))							file = CreateNewFileSpecFromPath( filePicker.file.path);						else							file = null;					}					catch(ex) {						file = null;						error.value = null;						return( false);					}										if (file != null) {						setIntf.SetLocation( file);					} 					else {						error.value = null;						return( false);					}									}				else {					error.value = GetBundleString( 'ImportSettingsNotFound');					return( false);				}			}			else {				error.value = GetBundleString( 'ImportSettingsNotFound');				return( false);			}		}		else {			error.value = GetBundleString( 'ImportSettingsNotFound');			return( false);		}	}	// interesting, we need to return the account that new	// mail should be imported into?	// that's really only useful for "Upgrade"	result = setIntf.Import( newAccount);	if (result == false) {		error.value = GetBundleString( 'ImportSettingsFailed');	}	return( result);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a7a6aaec82021225369a825c4902d7f206319316/importDialog.js/buggy/mailnews/import/resources/content/importDialog.js