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 

Which way?

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



Joined: 04 Dec 2008
Posts: 4

PostPosted: Wed Jun 03, 2009 4:54 am    Post subject: Which way? Reply with quote

Hello,

i've an application with one TDataModule, one MainForm and round about 22 sub forms. On the TDataModule there's a TsiLangDispatcher and all my forms knows this TDataModule.
My problem: i don't know really the different between TsiLang and TsiLangRT. Confused
In the TsiLang User Guide on page 15 there's a description to use TsiLang components with more than one form so i placed a TsiLang on every form with linkage to the TDataModule.TsiLangDispatcher.
Still in the User Guide on page 16 in item 2 i read another way with TSiLangLinked. Shocked
Q: What is the right way to use this components? Or It's better to put a TsiLang on the TDataModule too and every form gets a TsiLangLinked with linkage to it?

Thanks forward an regards, Carsten
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2095

PostPosted: Wed Jun 03, 2009 12:25 pm    Post subject: Reply with quote

Hello,

TsiLangRT is needed ONLY when you need to provide the abilty for end-user to translate your form at run-time.
The recommended structure is to pur TsiLang on data-module and on all other form place TsiLangLinked and set their CommonContainer to TsiLang from data-module as well as dispatcher.
This way you will have common strings like Dialog captions shared from one place for your project which results in reducing the EXE's size and translation data size.
Hope this helps.
Back to top
View user's profile Send private message
Carsten1310



Joined: 04 Dec 2008
Posts: 4

PostPosted: Thu Jun 04, 2009 5:18 am    Post subject: Reply with quote

Hi Igor,

isiticov wrote:

The recommended structure is to pur TsiLang on data-module and on all other form place TsiLangLinked and set their CommonContainer to TsiLang from data-module as well as dispatcher.


meanwhile i've a TsiLangDispatcher on the TDataModule and a TsiLang on every form with linkage to TsiLangDispatcher on TDataModule like the example on page 15 in manual.
Is your way with TsiLangLinked on every form the better way?
Can i so export the translation at one time to give them in a translation office?

Regards, Carsten

Supplement:
If i understand right i must set on every form:

TsiLangLinked.CommonContainer:= TDataModule.TsiLang;
TsiLangLinked.LangDispatcher:= TDataModule.TsiLangDispatcher
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2095

PostPosted: Thu Jun 04, 2009 4:15 pm    Post subject: Reply with quote

Hi Carsten,

Carsten1310 wrote:
Is your way with TsiLangLinked on every form the better way?


Yes, as I said before in such way you will have only ONE place to translate common strings such as Dialogs captions.

Quote:

Can i so export the translation at one time to give them in a translation office?


Delphi's menu Tools | TsiLang Expert and then in Expert's menu File | Save\Load | Save Project.

Quote:

Supplement:
If i understand right i must set on every form:

TsiLangLinked.CommonContainer:= TDataModule.TsiLang;
TsiLangLinked.LangDispatcher:= TDataModule.TsiLangDispatcher

Yes, absolutely (I hope these were abstracts).

Hope this helps.
Back to top
View user's profile Send private message
Carsten1310



Joined: 04 Dec 2008
Posts: 4

PostPosted: Fri Jun 05, 2009 5:01 am    Post subject: Reply with quote

Hi Igor,

isiticov wrote:

(I hope these were abstracts).


yes, of course. Very Happy

Many thanks for your help and regards, Carsten
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