From 979cfa1c70dfde21a72eda51eea1b3538bb74b3a Mon Sep 17 00:00:00 2001 From: maxim Date: Sun, 6 Nov 2011 12:44:22 +0000 Subject: [PATCH] GDBMIDebugger: improved localization, fixed typos git-svn-id: trunk@33366 - --- debugger/gdbmidebugger.pp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/debugger/gdbmidebugger.pp b/debugger/gdbmidebugger.pp index 8d3b8f8f46..270fbdf445 100644 --- a/debugger/gdbmidebugger.pp +++ b/debugger/gdbmidebugger.pp @@ -487,6 +487,12 @@ resourcestring gdbmiWarningUnknowBreakPoint = 'The debugger reached an unexpected %1:s%0:s%0:s' + 'Press "Ok" to continue debugging (paused).%0:s' + 'Press "Stop" to end the debug session.'; + gdbmiTheDebuggerExperiencedAnUnknownCondition = 'The debugger experienced an' + +' unknown condition'; + gdbmiPressIgnoreToContinueDebuggingThisMayNOTBeSafePres = 'Press "Ignore" to' + +' continue debugging. This may NOT be safe. Press "Abort" to stop the ' + +'debugger.%0:sException: %1:s with message "%2:s"%0:sContext: %4:s. State' + +': %5:s %0:s%0:s%3:s'; implementation @@ -10625,11 +10631,8 @@ begin end; debugln(Report); - if MessageDlg('The debugger experienced an unknown condition.', - Format('Press "Ignore" to continue debugging. This may NOT be save. Press "Abort to stop the debugger. %0:s' - +'Exception: %1:s.with message "%2:s"%0:s' - +'Context: %4:s State: %5:s %0:s' - +'%0:s%3:s', + if MessageDlg(gdbmiTheDebuggerExperiencedAnUnknownCondition, + Format(gdbmiPressIgnoreToContinueDebuggingThisMayNOTBeSafePres, [LineEnding, e.ClassName, e.Message, Report2, ClassName, dbgs(FTheDebugger.State)]), mtWarning, [mbIgnore, mbAbort], 0, mbAbort) = mrAbort then begin