rem: var meterText = top.bundle.GetStringFromName( 'MailProgressMeterText') + " " + name; 
add: var meterText = GetBundleString( 'MailProgressMeterText') + " " + name; 
context: function ImportDialogOKButton(){	var tree = document.getElementById('moduleList');	if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) )	{		var index = tree.selectedItems[0].getAttribute('list-index');		var module = top.importService.GetModule( top.importType, index);		var name = top.importService.GetModuleName( top.importType, index);		top.selectedModuleName = name;		if (module != null) 		{			switch( top.importType )			{				case "mail":					top.successStr = Components.classes["component://netscape/supports-wstring"].createInstance();					if (top.successStr != null) {						top.successStr = top.successStr.QueryInterface( Components.interfaces.nsISupportsWString);					}					top.errorStr = Components.classes["component://netscape/supports-wstring"].createInstance();					if (top.errorStr != null)						top.errorStr = top.errorStr.QueryInterface( Components.interfaces.nsISupportsWString);										if (ImportMail( module, top.successStr, top.errorStr) == true) 					{						// We think it was a success, either, we need to 						// wait for the import to finish						// or we are done!						if (top.progressInfo.importInterface == null) {							ShowMailComplete( true);							return( true);						}						else {							var meterText = top.bundle.GetStringFromName( 'MailProgressMeterText') + " " + name;							// show the progress window...							top.window.openDialog(								"chrome://messenger/content/importProgress.xul",								"",								"chrome,modal",								{windowTitle: top.bundle.GetStringFromName( 'MailProgressTitle'),								 progressTitle: meterText,								 progressStatus: "",								 progressInfo: top.progressInfo});														dump( "*** Returned from progress window\n");							return( true);						}					}					else 					{						ShowMailComplete( false);						return( false);					}					break;									case "addressbook":					top.successStr = Components.classes["component://netscape/supports-wstring"].createInstance();					if (top.successStr != null) {						top.successStr = top.successStr.QueryInterface( Components.interfaces.nsISupportsWString);					}					top.errorStr = Components.classes["component://netscape/supports-wstring"].createInstance();					if (top.errorStr != null)						top.errorStr = top.errorStr.QueryInterface( Components.interfaces.nsISupportsWString);										if (ImportAddress( module, top.successStr, top.errorStr) == true) 					{						// We think it was a success, either, we need to 						// wait for the import to finish						// or we are done!						if (top.progressInfo.importInterface == null) {							ShowAddressComplete( true);							return( true);						}						else {							var meterText = top.bundle.GetStringFromName( 'AddrProgressMeterText') + " " + name;							// show the progress window...							top.window.openDialog(								"chrome://messenger/content/importProgress.xul",								"",								"chrome,modal",								{windowTitle: top.bundle.GetStringFromName( 'AddrProgressTitle'),								 progressTitle: meterText,								 progressStatus: "",								 progressInfo: top.progressInfo});							return( true);						}					}					else 					{						ShowAddressComplete( false);						return( false);					}					break;				case "settings":					var error = new Object();					error.value = null;					var newAccount = new Object();					if (!ImportSettings( module, newAccount, error)) 					{						if (error.value != null)						{							// Show error alert with error							// information							alert( top.bundle.GetStringFromName( 'ImportSettingsError') + name + ":\n" + error.value);						}						// the user canceled the operation, shoud we dismiss						// this dialog or not?						return false;					}					else					{						// Alert to show success						alert( top.bundle.GetStringFromName( 'ImportSettingsSuccess') + name);					}					break;			}		}	}		return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/abc22bfd1df5facdb25cfd82356569cc9831cdfe/importDialog.js/clean/mailnews/import/resources/content/importDialog.js