Storing translation data

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
toms
Posts: 1
Joined: Wed Jun 04, 2003 6:29 am

Storing translation data

Post by toms »

You have the choice where to store the translation data: either internally...
Where can I make these settings? Thx.
gaivans
Posts: 71
Joined: Fri Nov 29, 2002 4:10 pm

Post by gaivans »

Hello,

All TsiCustomLang descendants by default store translations internally in the owner's .dfm file but also have a number of methods to save/load translations to/from an extenrnal file. So, if you wish to store translations externally you can save the translation data in design-time to a .sil/.sib and then call in run-time "LoadAllFromFile" when needed.

There is also a specialized component TsiLangRT - this automatically load translations in run-time if you have specified the "StorageFile" and set the property "LoadOnCreate" = True. This component also has methods for editing translations in run-time ("EditAll", "EditProperty", "EditExtended") so you can provide your end user with the ability to modify translations in run-time.
Best regards,
Serghei Gaivan
Post Reply