How to generate SIB file?

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
acorrea
Posts: 7
Joined: Mon Oct 03, 2005 5:54 pm

How to generate SIB file?

Post by acorrea »

Hi,


How to generate correctly the SIB file ?

1) I do it :
- save as .SIL file
- opens .SIL file in the SIL Editor
- "file --> export... " and select .SIB

2) In the source program, fails if use:

siLangRT1.LoadPropFromBinaryFile(stCaptions, 'test.sib');
or
siLangRT1.MergeFromFile(stCaptions, 'w:\teste_form3.sib');

Tanks
Antenor
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Hi,

1) To create SIB file you can use either TsiLang Expert menu File->Save/Load->Save... and select SIB as file type or Translation Editor when the top node in the translation tree is selected.

2) What problems/errors do you have when you use:
siLangRT1.LoadPropFromBinaryFile(stCaptions, 'test.sib');
or
siLangRT1.MergeFromFile(stCaptions, 'w:\teste_form3.sib');
?
Best regards,
Igor Siticov.
acorrea
Posts: 7
Joined: Mon Oct 03, 2005 5:54 pm

Post by acorrea »

The message is:

"Project Project1.exe raised exception class EReadError with message 'Read error _1..: NumOfLanguages'
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Looks like a problem of using older version of SIL Editor. Anyway direct creation of SIB file from TsiLang Expert will be useful for you.
Best regards,
Igor Siticov.
acorrea
Posts: 7
Joined: Mon Oct 03, 2005 5:54 pm

Post by acorrea »

"LoadPropFromBinaryFile" works now! Thanks.


But, when execute:
siLangRT1.MergeFromFile(stCaptions, 'w:\teste_form3.sib');

this message is issued:
'Read error siLangRT1..: NumOfLanguages'


The merge method do not works with binary files (.sib) ?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

"LoadPropFromBinaryFile" works now! Thanks.
Great!
But, when execute:
siLangRT1.MergeFromFile(stCaptions, 'w:\teste_form3.sib');
this message is issued:
'Read error siLangRT1..: NumOfLanguages'
The merge method do not works with binary files (.sib) ?
It must work with binary files as well. May be there is a bug. We're investigating this now...
Best regards,
Igor Siticov.
acorrea
Posts: 7
Joined: Mon Oct 03, 2005 5:54 pm

Post by acorrea »

Sorry! I testing better now!

When use:

1) LoadAllFromBinaryFile -> OK
2) LoadPropFromBinaryFile -> "Error Reading siLangRT..: NumOfLanguage"
3) MergeFromFile -> "Error Reading siLangRT..: NumOfLanguage"
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Thank you. There defenitely was a bug and we've fixed it. New update version will be available in few days. Thank you again.
Best regards,
Igor Siticov.
acorrea
Posts: 7
Joined: Mon Oct 03, 2005 5:54 pm

Post by acorrea »

OK

Tanks!
Post Reply