rem: var errorMsg = gComposeMsgsBundle.getString("initErrorDlogMessage"); errorMsg = errorMsg.replace(/%1\$s/, ex); 
add: var errorMsg = gComposeMsgsBundle.getFormattedString("initErrorDlogMessage", [ex]); 
context: function ComposeLoad(){  if (msgComposeService)    msgComposeService.TimeStamp("Start Initializing the compose window (ComposeLoad)", false);  gComposeMsgsBundle = document.getElementById("bundle_composeMsgs");  try {    SetupCommandUpdateHandlers();  	var wizardcallback = true;  	var state =	verifyAccounts(wizardcallback);	// this will do migration, or create a new account if we need to.  	if (other_header != "") {      var selectNode = document.getElementById('msgRecipientType#1');      selectNode = selectNode.childNodes[0];      var opt = document.createElement('menuitem');      opt.setAttribute("value", "addr_other");      opt.setAttribute("label", other_header + ":");      selectNode.appendChild(opt);  	}    if(state)      ComposeStartup();  }  catch (ex) {    dump("###ERROR WHILE LOADING MESSAGE COMPOSE: " + ex + "\n");    var errorTitle = gComposeMsgsBundle.getString("initErrorDlogTitle");    var errorMsg = gComposeMsgsBundle.getString("initErrorDlogMessage");    errorMsg = errorMsg.replace(/%1\$s/, ex);    if (promptService)      promptService.alert(window, errorTitle, errorMsg);    else      window.alert(errorMsg);    if (msgCompose)      msgCompose.CloseWindow();    else      window.close();    return;  }	window.tryToClose=ComposeCanClose;	if (msgComposeService)    msgComposeService.TimeStamp("Done with the initialization (ComposeLoad). Waiting on editor to load about::blank", false);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/189b9cdd34cc053a8da78cccb6b3ee32b6a9d347/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js