Index: crashreporter.h =================================================================== RCS file: /cvsroot/mozilla/toolkit/airbag/client/crashreporter.h,v retrieving revision 1.6 diff -u -r1.6 crashreporter.h --- crashreporter.h +++ crashreporter.h @@ -41,6 +41,7 @@ #define ST_CRASHREPORTERDESCRIPTION "CrashReporterDescription" #define ST_CRASHREPORTERDEFAULT "CrashReporterDefault" #define ST_VIEWREPORT "ViewReport" +#define ST_HIDEREPORT "HideReport" #define ST_EXTRAREPORTINFO "ExtraReportInfo" #define ST_CHECKSUBMIT "CheckSubmit" #define ST_CHECKEMAIL "CheckEmail" Index: crashreporter.ini =================================================================== RCS file: /cvsroot/mozilla/toolkit/airbag/client/crashreporter.ini,v retrieving revision 1.7 diff -u -r1.7 crashreporter.ini --- crashreporter.ini +++ crashreporter.ini @@ -8,6 +8,7 @@ CrashReporterDescription=We're sorry, but %s hit an unexpected problem and crashed. We'll try to restore your tabs and windows when it restarts.\n\nTo help us diagnose and repair this problem, you can send us a crash report. CrashReporterDefault=This application is run after a crash to report the problem to the application vendor. It should not be run directly. ViewReport=View Report +HideReport=Hide Report ExtraReportInfo=This report also contains information about the state of the application when it crashed. CheckSubmit=Submit crash report to %s CheckEmail=Email me when the problem is fixed Index: crashreporter_osx.mm =================================================================== RCS file: /cvsroot/mozilla/toolkit/airbag/client/crashreporter_osx.mm,v retrieving revision 1.7 diff -u -r1.7 crashreporter_osx.mm --- crashreporter_osx.mm +++ crashreporter_osx.mm @@ -193,7 +193,9 @@ if ([viewReportButton state] == NSOnState) { [[window contentView] addSubview:viewReportScrollView]; + [viewReportLabel setStringValue:Str(ST_HIDEREPORT)]; } else { + [viewReportLabel setStringValue:Str(ST_VIEWREPORT)]; delta = 0 - delta; } Index: crashreporter_win.cpp =================================================================== RCS file: /cvsroot/mozilla/toolkit/airbag/client/crashreporter_win.cpp,v retrieving revision 1.13 diff -u -r1.13 crashreporter_win.cpp --- crashreporter_win.cpp +++ crashreporter_win.cpp @@ -392,8 +392,10 @@ int diff = (r.bottom - r.top) + 10; if (IsDlgButtonChecked(hwndDlg, IDC_VIEWREPORTCHECK)) { SetDlgItemVisible(hwndDlg, IDC_VIEWREPORTTEXT, true); + SetDlgItemText(hwndDlg, IDC_VIEWREPORTCHECK, Str(ST_HIDEREPORT).c_str()); } else { SetDlgItemVisible(hwndDlg, IDC_VIEWREPORTTEXT, false); + SetDlgItemText(hwndDlg, IDC_VIEWREPORTCHECK, Str(ST_VIEWREPORT).c_str()); diff = -diff; }