Page 1 of 1

load translations from an other form

Posted: Wed Apr 17, 2013 5:56 am
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

Posted: Thu Apr 25, 2013 6:40 am
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.