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 

Strings in TFrame problem

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



Joined: 13 Jun 2003
Posts: 7

PostPosted: Wed Jul 23, 2003 3:39 pm    Post subject: Strings in TFrame problem Reply with quote

I have a number of frames with TsiLang components on them. The application can either use built-in language data (English only) orload an external SIB file, if present, with English + other languages.

If I load translations forem an SIB file, everything works fine (at least as far as TsiLang is concerned... there are other problems there Wink If I use data stored in the application itself, though, strings on frames are always blank. At design time I can se that they are in the siLang component. At run time, there are no strings present in siLang at all...

After browsing the forum, I tried calling Dispatcher's Loaded method in form's OnCreate event. I also tried calling siLang's own Loaded method, but it is private. Did not help even when I made it public anyway...

Anmy suggestions?

Thanks!
-Boris
Back to top
View user's profile Send private message Visit poster's website
gaivans



Joined: 29 Nov 2002
Posts: 71

PostPosted: Thu Jul 24, 2003 6:47 am    Post subject: Reply with quote

Hello,

Do the siLang components on the inline (embedded) frames use the same strings as the siLnag component on the base form or not? Please, also tell us what are TsiLangs' properties IsInheritedOwner and UseInheritedData equal to?
Back to top
View user's profile Send private message AIM Address MSN Messenger
BorisM



Joined: 13 Jun 2003
Posts: 7

PostPosted: Thu Jul 24, 2003 2:00 pm    Post subject: Reply with quote

No... siLang on the frame has all the strings, the same siLang on the form where the frame is embedded has all the other properties, but not strings.

UseInheritedData and IsInheritedOwner were set to False...

Thanks!
Back to top
View user's profile Send private message Visit poster's website
gaivans



Joined: 29 Nov 2002
Posts: 71

PostPosted: Fri Jul 25, 2003 7:42 am    Post subject: Reply with quote

The problem is that TsiLang on inline frames cannot PARTIALLY inherit translations but can either inherit ALL translations from component on the base frame or hold its own translations.

If all your inline frames are identical to base frames you can set property UseInheritedData = True for those components, then TsiLang components on the inline frames will have NO own translations and will always use translations from their ancestors including strings.

Otherwise, that is if inline frames differ from their ancestors, then you will need to provide full translations for TsiLang components on the inline frames. For those TsiLang components you can set their property IsInheritedOwner = True - this will force updating translation data in run-time for inline frames.

If you will need more detailed info, please contact me at
gaivans<AT>sicomponents<DOT>com
Back to top
View user's profile Send private message AIM Address MSN Messenger
BorisM



Joined: 13 Jun 2003
Posts: 7

PostPosted: Fri Jul 25, 2003 1:35 pm    Post subject: Reply with quote

It seems that UseInheritedData is not documented in the help file...

Since all I want from my inline frames is to show exact translation data that is in the base frame, I set UseInheritedData to true, and that seems to work.

Thanks!
-Boris
Back to top
View user's profile Send private message Visit poster's website
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