rem: var alertText = Bundle.GetStringFromName("enterValidHostname"); 
add: var alertText = gPrefsBundle.getString("enterValidHostname"); 
context: function validate() {  var servername = document.getElementById("hostname");  var smtpserver = document.getElementById("smtphostname");  if ((servername && servername.value =="") ||      (smtpserver && smtpserver.value == "")) {    var alertText = Bundle.GetStringFromName("enterValidHostname");    window.alert(alertText);    return false;  }  /* if this is for a server that doesn't require a username,    * check if the account exists.    * for other types, we check after the user provides the username (see aw-login.js)   */  var pageData = parent.GetPageData();  var serverType = parent.getCurrentServerType(pageData);  var protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + serverType].getService(Components.interfaces.nsIMsgProtocolInfo);  if (!protocolinfo.requiresUsername) {    var userName = parent.getCurrentUserName(pageData);    var hostName = servername.value;    if (parent.AccountExists(userName,hostName,serverType)) {      alertText = Bundle.GetStringFromName("accountExists");      window.alert(alertText);      return false;    }  }  return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/4acec0e951a9d1c6dbb41b5c3931539465f3abe8/aw-server.js/clean/mailnews/base/prefs/resources/content/aw-server.js