Posted: Tue Sep 05, 2006 8:38 am
Great!James Campion wrote:Hi Igor, it works fine according to our chinese customer.
With SIB file you will need to perform a little bit different actions to retrieve the languages:Question.
Our software is distributed with several sil files and hidden keys which open up for the languages in the sil files. The choice of languages is dependent upon both the Sil file and the key.
On startup I open the Sil file count and load the languages. The key then determines what languages are displayed in the SiCombo.
It works fine with the Sil file so I assume this is also the case with a Sib file.
1. You will need to create instance of TSIBFileManager (declared siComp.pas unit)
2. Call its LoadAllFromFile() method
3. Usings siComponents[Index] property you can obtain itnerface to TsiCustomLang from this SIB file.
4. Using LangNames property of TsiCustomLang you can obtain the list of available languages.
Could you please check that the main form entry in SIB file is "correct"? It must be named like TYourMainFormName. May be you have changed the name of main form but SIL file used older name?Probrem :
When I start up the Lang Expert in my project and ”load project” from the Sib file, which was created from the original Sil, the main form is not imported.
It is listed in the SIB file but not in the Tsilang Expert dialog box list.
I have a TsilLang component on all forms pointing to a commone dispatcher.