Page 1 of 1

TsiLangRT on unit without Form

Posted: Mon Dec 01, 2003 1:16 pm
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

Posted: Sat Dec 06, 2003 10:48 am
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.