Problem loading SIB to dispatcher

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
James Campion
Posts: 23
Joined: Thu Jan 27, 2005 3:13 pm

Problem loading SIB to dispatcher

Post by James Campion »

I had to add a form to the Sib file, can't be done in the editor.
So generated a sil from existing Sib and added the form manually.
Then exported back to a Sib file. When I try to load the sib file in my program start up an error occurs. "language name shall be included in the Langnames property".
There are several sib files loaded depending on the license therefore the SIB languagues are loaded on the fly.

I use
FSIBManager := TSIBFileManager.Create;

siLangDispatcher1.FileName:=ProgramPath+DefLangFileName;
FSIBManager.LoadAllFromFile(siLangDispatcher1.FileName);
siLangDispatcher1.LangNames:=FSIBManager.siComponents[0].LangNames;
siLangDispatcher1.Language:=FSIBManager.siComponents[0].Language;

If I try with an old Sib file there is no problem.

Appreciate any help
Jim.C
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

It looks like in the newly generated form in SIL/SIB file language names differ from the languages in dispatcher.
Best regards,
Igor Siticov.
James Campion
Posts: 23
Joined: Thu Jan 27, 2005 3:13 pm

Post by James Campion »

the default in the dispatcher is Language N1, the languages are loaded runtime. This has never been an issue. If I export the sib to another format then back to Sib without changes, the same problem arises.
Jim.C
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Please try the following in SIl Editor: Tools | Language names and make any any dummy changes or just click OK to apply the language names. Save the SIB file after this. Does this workaround the problem?
Best regards,
Igor Siticov.
James Campion
Posts: 23
Joined: Thu Jan 27, 2005 3:13 pm

Post by James Campion »

Brillilant, it works. Is it a bug?
Jim.C
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Not really bug, but some kind of "unexpected user behavior". :wink:
Best regards,
Igor Siticov.
Post Reply