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 

problems with SIB-file

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



Joined: 16 Jun 2004
Posts: 12

PostPosted: Thu Jun 17, 2004 11:05 am    Post subject: problems with SIB-file Reply with quote

Hi!

I want my langDispatcher use a sib-file to get translation-information.
Now i have a sil-File, that contains all information of about 30 forms. Every form contains a TsiLangRTSE, that is linked to the dispatcher.
The forms are created just when they are requested, not when starting the application. This ends up in bad performance, because reading the sil file needs much time. So I like to change to sib-format.

To do that i only changed the filename of the dispatcher to the sib-file, which I have converted from the former used sil-file.
That didn-'t not work as I expected. I got an exception with something like 'index of list exceeds maximum'.

What do I have to do to load a sib-file correctly.
I'm using SiComponents 5.3.0 and delphi 4.

Thanks,
Volker
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Thu Jun 17, 2004 11:29 am    Post subject: Reply with quote

Some notes and questions:
    1. I hope you have used SIL Editor to convert SIL file to SIB.
    2. Using TsiLangRTSE is correct only when you need to provide your end-user with ability to tranlsate(or edit translations) of your application during run-time using SIL Editor. In most cases it is correct to use one TsiLang(on one "main form) and many TsiLangLinked(on all others).
    3. FYI: There is available User's Guide for TsiLang Components Suite at our download page.
    4. May be your SIB file was converted incorrectly. Try to load all forms of your project from SIL file using TsiLang Expert and save project to SIB file. This will create SIB file with translations from SIL file and using the actual information.

Please let us know if this helps.
Back to top
View user's profile Send private message
Volker



Joined: 16 Jun 2004
Posts: 12

PostPosted: Thu Jun 17, 2004 11:50 am    Post subject: Reply with quote

to 1: yes, I used Sil Editor for conversion
to 2: i have one form with TsiLangRTSE and all the other forms are inherited from this one, so all the other also have TsiLangRTSE. Maybe I should change TsiLangRTSE to TsiLang. Is it faster?
to 3: i have already downloaded the users guide and thought that using sib or sil is just alternative
to 4: ok., i'll retry conversion fromTsiLang Expert

But am I right, that I only have to change the filename and it should work as well with sib-files, or do I have to do some extra work?

Volker
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Thu Jun 17, 2004 12:02 pm    Post subject: Reply with quote

Volker wrote:
But am I right, that I only have to change the filename and it should work as well with sib-files, or do I have to do some extra work?

Yes, you can change the FileName property is TsiLangDispatcher and this should work.
Back to top
View user's profile Send private message
Volker



Joined: 16 Jun 2004
Posts: 12

PostPosted: Thu Jun 17, 2004 12:56 pm    Post subject: Reply with quote

After a new conversion from TsiLangExpert it still doesn't work.

It is strange that TsiLAng Expert show only a few forms with the correct number of languages and the most of them with only 1 language.

Changing this in TsiLang Expert doesn't have any results.

Is it possible, that sib-file is to big or to has to many forms. There are 29 in one sib-file.
What can i do?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Thu Jun 17, 2004 1:30 pm    Post subject: Reply with quote

The "1" shown as language count because you've used inherited forms.
The size of SIB files doesn't matter.
Please try to set IsInheritedOwner to True for all TsiLangs on inherited forms.
Back to top
View user's profile Send private message
Volker



Joined: 16 Jun 2004
Posts: 12

PostPosted: Thu Jun 17, 2004 1:46 pm    Post subject: Reply with quote

I could change the number of languages manually in TsiLang Expert when the forms where open. Now if I restart the TsiLang Expert they are all set to 3.

the property isInheritedOwner was already set to True.

I think there is some list index out of bounds because of EListError ocurring when starting the app. (maybe languages)
Back to top
View user's profile Send private message
Volker



Joined: 16 Jun 2004
Posts: 12

PostPosted: Thu Jun 17, 2004 1:49 pm    Post subject: Reply with quote

it works fine with sil-file, but slowly.
changing dispatcher.fileName results in error.
Back to top
View user's profile Send private message
Volker



Joined: 16 Jun 2004
Posts: 12

PostPosted: Thu Jun 17, 2004 2:14 pm    Post subject: Reply with quote

my nerving questions will end now. It works!

Now I deleted the filename in the objectinspector of the TsiLangRTSE and set langDispatcher.filename := 'trans.sib'; in OnCreate-Event of the enclosing DataModul and it works fine and really faster then with the sil-file.

I have no explanation for that behaviour. Is it a bug?

Thank you for your quick answers,

Volker
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Thu Jun 17, 2004 6:40 pm    Post subject: Reply with quote

Glad to see that it works for you now. Smile
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