Loading translations

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
MurDoGG
Posts: 6
Joined: Tue Aug 07, 2007 8:22 am

Loading translations

Post by MurDoGG »

Hi guys,

is it possible to load translation from *.dfm file, if the expect translation is not availible at the *.sil file.

For example

We have two buttons at a form. The first language for the first button is availible at the *.sil file, but not the second language, whose is abailible at the dfm.

Could you tell me how it is possible to do so. Some test by me shows, that the translations in the *.dfm would only load if the dispatcher couldn't load the *.sil file (don't find it).

And is it possible to check that the *.sil file was loaded?!

Best regards

Sebastian
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Hi,

No, it is noit possible to load second language from DFM if SIL file was loaded before and it didn't have translation for this language. Loading from file overwrites existing (from DFM) translations.
What do you mean under "to check that the *.sil file was loaded"? If file exists and you call LoadFromFile and this file contain details about form then it will be loaded.
Best regards,
Igor Siticov.
MurDoGG
Posts: 6
Joined: Tue Aug 07, 2007 8:22 am

Post by MurDoGG »

Thanks for your anwser.

That were all informations i need.

But another question, i mention, with the TsiLangRT you can choose you want to load the sil file by create or not (mention property "Load on create"), but i can't do so. I use a lang dispatcher, is this the problem?!
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Do you mean that you want to skip any TsiLang when loading file?
Best regards,
Igor Siticov.
MurDoGG
Posts: 6
Joined: Tue Aug 07, 2007 8:22 am

Post by MurDoGG »

Yes but sometimes i write first and then think about it, i get it.

A last question please, when i doubleclick on a tsilang component on a form in my delphi enviroment, the editor for sil files is open, i change translation and choose File|Close saved, where it is saved in the dfm?!

Forget it i found it, is it right default language is saved in the dfm definitions and all other languages in the data translation section?!
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Default language is saved in DFM and also as the first language in TranslationData section.
Best regards,
Igor Siticov.
Post Reply