Page 1 of 1

Populating TsiLangRT without opening the Form at designtime!

Posted: Fri Feb 06, 2004 11:11 am
by ursuletzu
Hello
I have a project with 2000 modules. Some forms are inherited from other, but this is not the relevant point.
if I open the form at designtime the TsiLang component populates its Captions etc, and when I save the form all data is persisted in DFM.

What I am looking for, is an automated way of doing it at runtime.
I tested it, and when I save the TsiLang at runtime using SaveAllToBinaryFile WITHOUT ever OPENING THE FORM AT DESIGN-TIME
All translations are empty!!!! but the 2 languages are set correctly from the LanguageDispatcher.

1) My point is, how to get the TsiLang populated at runtime?
2) How to know it TsiLang was already populated at designtime?

Regards
Liviu

Posted: Fri Feb 06, 2004 5:22 pm
by isiticov
There is BuildList method. Which populates the translations lists. You can just call it at run-time and this will be enough.