RWA_LocalizeErrorMessages

<< Click to display table of contents >>

RWA_LocalizeErrorMessages

Localizes error messages.

Unit RVReportLocalize;

Syntax

procedure RWA_LocalizeErrorMessages(

  ControlPanel: TRVAControlPanel = nil;
  ErrorTypes: PRVReportGeneratorErrorTypeStr = nil;
  ErrorMessages: PRVReportGeneratorErrorStr = nil;
  ParserErrorMessages: PRVReportParserErrorStr = nil;
  ExprEvalErrorMessages: PRVReportExprEvalErrorStr = nil
  );

This procedure localizes error messages used in Report Workshop according to ControlPanel.Language. If ControlPanel parameter is omitted, the default control panel is used.

Call this procedure when this application starts, and after each language change (i.e after each call of RVA_ChooseLanguage).

The rest of parameters are pointers to arrays of error messages. Normally, you can omit them, and default global variables will be used.

Localized error messages are used by RVReportGetErrorString procedure.

See also

RWA_LocalizeReportGenerator