PDA

View Full Version : Adapting to different languages


Peter Panino
05-Mar-2006, 04:39 PM
Is it possible to quickly switch between different Messages translations?

admin
06-Mar-2006, 09:48 AM
Hi,

Peter Panino wrote:
> Is it possible to quickly switch between different Messages translations?

Currently you can save and reload different EurekaLog configuration
files (included translations) at design-time using the
"Project/EurekaLog Options.../Load and Save" menu.

At run-time you can customize your translation using the following code:




uses
ETypes; // Messages unit.

procedure TForm1.EurekaLog1ExceptionNotify(
EurekaExceptionRecord: TEurekaExceptionRecord; var Handled: Boolean);
begin
with EurekaExceptionRecord.CurrentModuleOptions do
begin
CustomizedTexts[mtInformationMsgCaption] := '...';
CustomizedTexts[mtQuestionMsgCaption] := '...';
CustomizedTexts[mtDialog_Caption] := '...';
CustomizedTexts[mtDialog_ErrorMsgCaption] := '...';
CustomizedTexts[mtDialog_GeneralCaption] := '...';
CustomizedTexts[mtDialog_GeneralHeader] := '...';
CustomizedTexts[mtDialog_CallStackCaption] := '...';
CustomizedTexts[mtDialog_CallStackHeader] := '...';
// ...
end;
end;



See here for all available messages types:
http://www.eurekalog.com/docs/tmessagetypetype.html

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!