rem: gDialog.Close.setAttribute("label", GetString("Close")); 
add:  document.documentElement.setAttribute("buttonlabelcancel", document.documentElement.getAttribute("buttonlabelclose"));  
context: function SetProgressFinished(filename, networkStatus){  var abortPublishing = false;  if (filename)  {    var status = networkStatus ? "failed" : "done";    if (networkStatus == 0)      gSucceededCount++;    SetProgressStatus(filename, status);  }  if (networkStatus != 0) // Error condition  {    // We abort on all errors except if image file was not found    abortPublishing = networkStatus != kFileNotFound;    // Mark all remaining files as "failed"    if (abortPublishing)    {      gPublishingFailed = true;      SetProgressStatusCancel();      gDialog.FinalStatusMessage.value = GetString("PublishFailed");    }    switch (networkStatus)    {      case kFileNotFound:        gFileNotFound = true;        if (filename)          gStatusMessage = GetString("FileNotFound").replace(/%file%/, filename);        break;      case kNetReset:        // We get this when subdir doesn't exist AND        //   if filename used is same as an existing subdir         var dir = (gPublishData.filename == filename) ?                      gPublishData.docDir : gPublishData.otherDir;        if (dir)        {          // This is the ambiguous case when we can't tell if subdir or filename is bad          // Remove terminal "/" from dir string and insert into message          gStatusMessage = GetString("SubdirDoesNotExist").replace(/%dir%/, dir.slice(0, dir.length-1));          gStatusMessage = gStatusMessage.replace(/%file%/, filename);          // Remove directory from saved prefs          // XXX Note that if subdir is good,           //     but filename = next level subdirectory name,           //     we really shouldn't remove subdirectory,           //     but it's impossible to differentiate this case!          RemovePublishSubdirectoryFromPrefs(gPublishData, dir);        }        else if (filename)          gStatusMessage = GetString("FilenameIsSubdir").replace(/%file%/, filename);        break;      case kNotConnected:      case kConnectionRefused:      case kNetTimeout:      case kNoConnectionOrTimeout:      case kPortAccessNotAllowed:        gStatusMessage = GetString("ServerNotAvailable");        break;      case kOffline:        gStatusMessage = GetString("Offline");        break;      case kDiskFull:      case kNoDeviceSpace:        if (filename)          gStatusMessage = GetString("DiskFull").replace(/%file%/, filename);        break;      case kNameTooLong:        if (filename)          gStatusMessage = GetString("NameTooLong").replace(/%file%/, filename);        break;      case kAccessDenied:        if (filename)          gStatusMessage = GetString("AccessDenied").replace(/%file%/, filename);        break;      case kUnknownType:      default:        gStatusMessage = GetString("UnknownPublishError")        break;    }  }  else if (!filename)  {    gFinished = true;    gDialog.Close.setAttribute("label", GetString("Close"));    if (!gStatusMessage)      gStatusMessage = GetString(gPublishingFailed ? "UnknownPublishError" : "AllFilesPublished");    // Now allow "Enter/Return" key to close the dialog    AllowDefaultButton();    if (gPublishingFailed || gFileNotFound)    {      // Show "Troubleshooting" button to help solving problems      //  and key for successful / failed files      document.getElementById("failureBox").hidden = false;    }  }  if (gStatusMessage)    SetStatusMessage(gStatusMessage);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/754caa08a3a7ffed627433c95fa355188ee5bc74/EditorPublishProgress.js/buggy/editor/ui/dialogs/content/EditorPublishProgress.js