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 

Best Approach

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



Joined: 20 May 2004
Posts: 6

PostPosted: Fri Jan 07, 2005 9:30 pm    Post subject: Best Approach Reply with quote

We have a project with a vast number of units that are common among other projects.

What is the best plan of implementation to use SIComponents to manage the localization of the projects?

Bear in mind that a common unit may be modified in one project and then simply compiled in the next build(s) of other projects.

We prefer to minimize the amount of redunancy and want to also facilitate external translators.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Sat Jan 08, 2005 7:10 am    Post subject: Reply with quote

May be as an idea could be used the following:
1. If your units don't have associated forms then add datamodules to them and place TsiLang there and use as conrainer for translations.
2. In uses clause of units add reference to the dispatcher using compiler conditional defines, fro ex.
Code:

uses
  {$IFDEF PROJECT1}Project1DispatcherUnit,
  {$ELSE}
  {$IFDEF PROJECT2}Project2DispatcherUnit,
  {$ENDIF}
  {$ENDIF}

3. In each project options define respective conditional define.
4. In OnCreate() event of datamodule(s) from 1. add assigning of LangDispatcher property depending on conditional define.

This will only require to make a FULL build each time when you switch between projects.

Please note this is just a raw idea 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