Page 1 of 1

Loading translations

Posted: Thu Oct 11, 2007 11:27 am
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

Posted: Thu Oct 11, 2007 1:07 pm
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.

Posted: Thu Oct 11, 2007 1:26 pm
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?!

Posted: Thu Oct 11, 2007 1:31 pm
by isiticov
Do you mean that you want to skip any TsiLang when loading file?

Posted: Thu Oct 11, 2007 1:56 pm
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?!

Posted: Thu Oct 11, 2007 2:31 pm
by isiticov
Default language is saved in DFM and also as the first language in TranslationData section.