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 

Getting languages from SIB file???

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



Joined: 25 Feb 2004
Posts: 3
Location: Prangins, Switzerland

PostPosted: Wed Feb 25, 2004 10:55 am    Post subject: Getting languages from SIB file??? Reply with quote

Hi,
The languages are correctly defined in my SIB file. But when dynamically loaded at run time to obtain the list of available languages, they are wrong.
It should be English, Français, Español but it displays
English, Language N2, Language N3

The code I use is as follows (I fill in a listbox called "list")
siLangDispatcher1->LoadAllFromFile( "full.sib" ) ;
list->Clear() ;
for( int i=0; i<siLangDispatcher1->NumOfLanguages; i++ ) {
list->Items->Add( siLangDispatcher1->LangNames->Strings[i] ) ;
}

This code works perfectly with SIL files. Is this a bug from the binary form in SIB???
It affects only the list of the languages, the translations still work correctly when switching languages.
Thanks for any help (code shown is C++Builder 6)
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Wed Feb 25, 2004 12:41 pm    Post subject: Reply with quote

Could you please try to replace special chars (umlauts) in language names and check if this would help?
Because may this is the origin of problem.
Back to top
View user's profile Send private message
sjordi



Joined: 25 Feb 2004
Posts: 3
Location: Prangins, Switzerland

PostPosted: Wed Feb 25, 2004 2:48 pm    Post subject: Reply with quote

Just tried, didn't change anything.
I can send the .sib file
Steve whici is 4Kb (it'a test file)
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Wed Feb 25, 2004 5:47 pm    Post subject: Reply with quote

Please send it to us among with test project where it was used. Thanks.
Back to top
View user's profile Send private message
sjordi



Joined: 25 Feb 2004
Posts: 3
Location: Prangins, Switzerland

PostPosted: Thu Feb 26, 2004 8:14 am    Post subject: Reply with quote

Done,
I sent the file to your support email address
Steve
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Thu Feb 26, 2004 6:55 pm    Post subject: Reply with quote

Thank you for your files. There was small bug in TsiLangDispatcher
LoadAllFromFile() method which is already fixed in our internal sources.
This is why we were unable to reproduce the bug.
You can either wait till next release or modify the siComp.pas by replacing
all occurrences of FileName to AFileName in
Code:
procedure TsiLangDispatcher.LoadAllFromFile(FileName: Tstring);


Be sure to replace it in procedure's body, declaration and definition as
well.

Thank you again.
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