rem: error.data = top.bundle.GetStringFromName( 'ImportMailNotFound'); 
add: error.data = GetBundleString( 'ImportMailNotFound'); 
context: function ImportMail( module, success, error) {	if (top.progressInfo.importInterface || top.progressInfo.intervalState) {		error.data = top.bundle.GetStringFromName( 'ImportAlreadyInProgress');		return( false);	}		top.progressInfo.importSuccess = false;	var mailInterface = module.GetImportInterface( "mail");	if (mailInterface != null)		mailInterface = mailInterface.QueryInterface( Components.interfaces.nsIImportGeneric);	if (mailInterface == null) {		error.data = top.bundle.GetStringFromName( 'ImportMailBadModule');		return( false);	}		var loc = mailInterface.GetData( "mailLocation");		if (loc == null) {		// No location found, check to see if we can ask the user.		if (mailInterface.GetStatus( "canUserSetLocation") != 0) {			var filePicker = Components.classes["component://netscape/filespecwithui"].createInstance();			if (filePicker != null) {				filePicker = filePicker.QueryInterface( Components.interfaces.nsIFileSpecWithUI);				if (filePicker != null) {					try {						filePicker.chooseDirectory( "Select mail directory");						mailInterface.SetLocation( filePicker.QueryInterface( Components.interfaces.nsIFileSpec));					} catch( ex) {						// don't show an error when we return!						return( false);					}									}				else {					error.data = top.bundle.GetStringFromName( 'ImportMailNotFound');					return( false);				}			}			else {				error.data = top.bundle.GetStringFromName( 'ImportMailNotFound');				return( false);			}		}		else {			error.data = top.bundle.GetStringFromName( 'ImportMailNotFound');			return( false);		}	}	if (mailInterface.WantsProgress()) {		if (mailInterface.BeginImport( success, error)) {			top.progressInfo.importInterface = mailInterface;			// top.intervalState = setInterval( "ContinueImport()", 100);			return( true);		}		else {			return( false);		}	}	else {		dump( "*** WantsProgress returned false\n");		if (mailInterface.BeginImport( success, error)) {			return( true);		}		else {			return( false);		}	}}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/abc22bfd1df5facdb25cfd82356569cc9831cdfe/importDialog.js/buggy/mailnews/import/resources/content/importDialog.js