Page 1 of 1

ReportBuilder

Posted: Tue May 20, 2003 3:45 am
by kkgian
How to translate string constant in ReportBuilder?
I have not much problem with Variables for RB cause there are all listed in the type declaration of the main form (TForm1) as siComp reads all in. But not for strings in calc events.
eg.

Code: Select all

procedure ppLabel1OnGetText(var Text; String);
begin
  Text:= Text + ' How to translate?';
end;
Please advice.

Posted: Tue May 20, 2003 6:56 am
by gaivans
Hello,

The siLang Expert can find and add to translation data any strings. From your example it is not clear which unit contains the above procedure. But anyway look the Expert's menu "File|Source". It has two subitems "With form..." and "Without form...".

If your procedure is located in a unit which has no .dfm choose "Without form...". You will be prompted to specify the unit to scan for hard-coded strings and the form with TsiLang component which will store found strings.