SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to generate SIB file?

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
acorrea



Joined: 03 Oct 2005
Posts: 7

PostPosted: Tue Oct 04, 2005 5:37 pm    Post subject: How to generate SIB file? Reply with quote

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
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Oct 05, 2005 4:34 am    Post subject: Reply with quote

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');
?
Back to top
View user's profile Send private message
acorrea



Joined: 03 Oct 2005
Posts: 7

PostPosted: Wed Oct 05, 2005 11:46 am    Post subject: Reply with quote

The message is:

"Project Project1.exe raised exception class EReadError with message 'Read error _1..: NumOfLanguages'
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Thu Oct 06, 2005 7:25 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
acorrea



Joined: 03 Oct 2005
Posts: 7

PostPosted: Thu Oct 06, 2005 1:08 pm    Post subject: Reply with quote

"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) ?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Thu Oct 06, 2005 1:59 pm    Post subject: Reply with quote

Quote:
"LoadPropFromBinaryFile" works now! Thanks.


Great!

Quote:
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...
Back to top
View user's profile Send private message
acorrea



Joined: 03 Oct 2005
Posts: 7

PostPosted: Thu Oct 06, 2005 2:10 pm    Post subject: Reply with quote

Sorry! I testing better now!

When use:

1) LoadAllFromBinaryFile -> OK
2) LoadPropFromBinaryFile -> "Error Reading siLangRT..: NumOfLanguage"
3) MergeFromFile -> "Error Reading siLangRT..: NumOfLanguage"
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Thu Oct 06, 2005 2:22 pm    Post subject: Reply with quote

Thank you. There defenitely was a bug and we've fixed it. New update version will be available in few days. Thank you again.
Back to top
View user's profile Send private message
acorrea



Joined: 03 Oct 2005
Posts: 7

PostPosted: Thu Oct 06, 2005 2:36 pm    Post subject: Reply with quote

OK

Tanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group