Populating TsiLangRT without opening the Form at designtime!

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
ursuletzu
Posts: 10
Joined: Mon Feb 02, 2004 9:43 am

Populating TsiLangRT without opening the Form at designtime!

Post 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
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

There is BuildList method. Which populates the translations lists. You can just call it at run-time and this will be enough.
Post Reply