[Mmclibrary-cvs] mmclibrary/MMCLib2/Core ExceptionHandler.cs,1.3,1.4
Brought to you by:
imjimmurphy,
kachalkov
From: Lesley v. Z. <ex...@us...> - 2005-01-19 22:28:14
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26850 Modified Files: ExceptionHandler.cs Log Message: Added i18n support Index: ExceptionHandler.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/ExceptionHandler.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ExceptionHandler.cs 21 Jul 2004 15:16:22 -0000 1.3 --- ExceptionHandler.cs 19 Jan 2005 22:28:04 -0000 1.4 *************** *** 29,33 **** try { ! MessageBox.Show("Fatal Error", "Fatal Error", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Stop); } finally --- 29,34 ---- try { ! string error = SnapinBase.Translate("FatalError"); ! MessageBox.Show(error, error, MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Stop); } finally *************** *** 49,55 **** private static DialogResult ShowThreadExceptionDialog(Exception e) { ! string errorMsg = "An error occurred please contact the administrator with the following information:\n\n"; ! errorMsg = errorMsg + e.Message + "\n\nStack Trace:\n" + e.StackTrace; ! return MessageBox.Show(errorMsg, "Application Error", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Stop); } } --- 50,58 ---- private static DialogResult ShowThreadExceptionDialog(Exception e) { ! string sStack = SnapinBase.Translate("StackTrace"); ! string errorTitle = SnapinBase.Translate("ApplicationError"); ! string errorMsg = SnapinBase.Translate("CehErrorInfo") + "\n\n"; ! errorMsg = errorMsg + e.Message + "\n\n" + sStack + ":\n" + e.StackTrace; ! return MessageBox.Show(errorMsg, errorTitle, MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Stop); } } |