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 

SiLang components in inherited forms and packages

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



Joined: 17 Aug 2004
Posts: 11

PostPosted: Tue Aug 17, 2004 12:34 pm    Post subject: SiLang components in inherited forms and packages Reply with quote

Hi,

I am in proces of choosing multilanguage components\tool for a big project and in this moment I am testing siLang compnents for Delphi 7.

Our project is devided in packages which contatins inherited forms. That means package P1 contains form F1, package P2 containc form F2 inherited from form F1 with TsiLangLinked component which is connected to TSiLangDispatcher and TsiLang palced on separate datamodule.
Some of the strings are translated on form F3 from package P2.
Further I have package P3 with form F3 which is inherited from form F2 from package P2.
The idea was to translate all common strings on F2 and create a lot of forms inherited from F2 on which all translated strings will be translated automatecally and all what a programer have to do is to translate a new strings. (I hope you understand what I mean Smile ).

But, I am not able to get this. It means I configure all as I described but the form F3 is not translated at all. Even the strings from form F2 are not translated. On other forms which are not inherited are translated what means that traslating mechanizm works in the application.

So, do I have to configure it somehow special? Maybe just use some other components? Or....?

Thanks.

P.S. I tried also changing IsInheritedOwner property but nothing.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Tue Aug 17, 2004 4:00 pm    Post subject: Reply with quote

I would recommend you to try the following:
1. On Base form be sure to enter all translations.
2. After that create an inherited form and check if existing translations were kept.
There is also UseInheritedData property. Try to play with it.
But actually, I afraid, the scheme you described is really difficult for TsiLang.
Back to top
View user's profile Send private message
BillHop3



Joined: 29 Sep 2004
Posts: 10

PostPosted: Wed Sep 29, 2004 3:16 pm    Post subject: Reply with quote

Rather than us just playing with it, can you please explain how the new IsInheritedOwner and UseInheritedData properties are supposed to work?
Back to top
View user's profile Send private message AIM Address
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Wed Sep 29, 2004 4:44 pm    Post subject: Reply with quote

IsInheritedOwner just indicates to TsiLang that its owner is inherited from some parent and while loading the form and component from stream (Delphi's reader) it is necessary to call ChangeLanguage.
From help file:
Quote:

IsInheritedOwner property indicates if TsiLang component is placed on the form / module that is inherited from other form / module in order to correct handling of changing language. Set this property to True to inform TsiLang that it is placed on inherited owner. Note: this property won't be set automatically for inherited modules, you should set it by hand for each inherited module.

UseInheritedData indicates TsiLang do not store translations data into DFM but just use them from "parent" (ascendant) component.
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