rem: var dialogTitle = bundle.GetStringFromName("renameprofiletitle"); var msg = bundle.GetStringFromName("renameProfilePrompt"); 
add: var dialogTitle = gProfileManagerBundle.getString("renameprofiletitle"); var msg = gProfileManagerBundle.getString("renameProfilePrompt"); 
context: function RenameProfile(){  renameButton = document.getElementById("renbutton");  if( renameButton.getAttribute("disabled") == "true" )    return;  var profileTree = document.getElementById( "profiles" );  var selected = profileTree.selectedItems[0];  if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {    // migrate if the user wants to    var lString = bundle.GetStringFromName("migratebeforerename");    lString = lString.replace(/\s*<html:br\/>/g,"\n");    lString = lString.replace(/%brandShortName%/, brandBundle.GetStringFromName("brandShortName"));    var title = bundle.GetStringFromName("migratetitle");    if (commonDialogService.Confirm(window, title, lString))      profile.migrateProfile( profilename, true );    else      return false;  }  else {    var oldName = selected.getAttribute("rowName");    var result = { };    var dialogTitle = bundle.GetStringFromName("renameprofiletitle");    var msg = bundle.GetStringFromName("renameProfilePrompt");    msg = msg.replace(/%oldProfileName%/gi, oldName);    while (1) {      var rv = commonDialogService.Prompt(window, dialogTitle, msg, oldName, result);      if (rv) {        var newName = result.value;        if (!newName) return false;        var invalidChars = ["/", "\\", "*", ":"];        for( var i = 0; i < invalidChars.length; i++ )        {          if( newName.indexOf( invalidChars[i] ) != -1 ) {            var aString = bundle.GetStringFromName("invalidCharA");            var bString = bundle.GetStringFromName("invalidCharB");            bString = bString.replace(/\s*<html:br\/>/g,"\n");            var lString = aString + invalidChars[i] + bString;            alert( lString );            return false;          }        }                var migrate = selected.firstChild.firstChild.getAttribute("rowMigrate");        try {          profile.renameProfile(oldName, newName);          selected.firstChild.firstChild.setAttribute( "value", newName );          selected.setAttribute( "rowName", newName );          selected.setAttribute( "profile_name", newName );        }        catch(e) {          var lString = bundle.GetStringFromName("profileExists");          var profileExistsTitle = bundle.GetStringFromName("profileExistsTitle");          commonDialogService.Alert(window, profileExistsTitle, lString);          continue;        }      }      break;    }  }  // set the button state  DoEnabling();  }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/4ab181d797b7a76ff0b07e9e2ca40168fb954fd5/profileManager.js/buggy/profile/resources/content/profileManager.js