TsiLangRT on unit without Form

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
pascaljr
Posts: 1
Joined: Mon Dec 01, 2003 1:06 pm

TsiLangRT on unit without Form

Post by pascaljr »

Hi,

I have the following need:
I am developing several units that will be used for the infrastructure of all new projects in my company. All error messages must be multi-language and stored in a siLang file. The siLang component will be instanciated at runtime, load the file with the error messages from the different languages and start working. However, since I don't have a form, I can't get the component to work. I'm unable to create a "sil" file that I can load later, and read the Strings from it. I have Delphi 6 and siLang 5.2.5.

Any suggestions? Can anyone show me the code and procedures on how to do this?

Thanks

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

Post by isiticov »

I can suggest you to create some datamodule which will holds TsiLang that will contain your units translations. So when using your units in any application there also should be added this datamodule.
Post Reply