load translations from an other form

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
mediatech
Posts: 23
Joined: Fri Mar 11, 2005 6:02 am

load translations from an other form

Post by mediatech »

is it possible to load a translated string from another form or another SIB-File?
e.g. in TForm2 i can get a text by "silang1.gettextordefault('test')".
Right now i like to get this text also in another form (TForm1) without making an identical entry in the sib-File for TForm1, so in form "TForm1" something like "silang1.GetTextordefault( 'TForm2.test' ) ??

That is especially interesting, if i´m working with DLLs and like to get some translated strings from the calling executable.

Kind regards

Andreas
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Hello,

This is not possible. For such cases I would recommend to place such strings in separate datamodule and then use these strings from this datamodule.
Best regards,
Igor Siticov.
Post Reply