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 

Single Translation Editor

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



Joined: 25 Oct 2011
Posts: 3

PostPosted: Wed Oct 26, 2011 6:29 pm    Post subject: Single Translation Editor Reply with quote

I have spent only spent a few days evaluating the TsiLang Component suite to see if it meets our needs.

Our application has 50+ forms and during runtime I want the user to be able to edit the translations themselves via a single translation editor (EditAll function?) for all translations.

It seems like the only way for us to implement this is to have a TsiLang object on every form. Right now, I have a datamodule with a TsiLang object and dispatcher. All other forms have a TsiLangLink with common container and dispatcher set to the datamodule objects, respectively.

1. Is this the best setup?

2. Where do I store common strings (ok, delete, cancel, tool bar, etc.)?

3. Can I display the common strings in the TsiLangLink translation editor?


thanks,

will
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Thu Oct 27, 2011 8:32 am    Post subject: Reply with quote

Hello,

Please take a look at http://www.tsilang.com/press/en/creating_multilanguage_applications_translated_by_users.html article. This is the way we recommend to create applications translated by end-users. It is quite easy and fast to implement.
We recommend to use built-in Run-Time translation Editor ONLY when you have a specific task and it is required to provide built-in translation editor which works on "form by form" way.
Instead we recommend to use external SIL/SIB file and distribute SIL Editor with your application to provide full-featured and powerfull editor for your end-users.

Now to you questions:
1. Yes, this is the best setup we think.
2. Common strings for dialog components and message boxes will be stored in TsiLang on datamodule which is CommonContainer for "linked" TsiLangs.
3. No, common strings displayed ONLY in the component which stores them.

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



Joined: 25 Oct 2011
Posts: 3

PostPosted: Thu Oct 27, 2011 3:40 pm    Post subject: Reply with quote

That was very helpful. Thank you.

Follow up questions:

isiticov wrote:

2. Common strings for dialog components and message boxes will be stored in TsiLang on datamodule which is CommonContainer for "linked" TsiLangs.


1. How do I reference the common strings (from the datamodule) in all my forms? Do I need to manually go through the forms and reference the common string component (ie. TsiLang->CommonContainer->....) OR is there an automated way to locate all the common strings in every form?

isiticov wrote:

Instead we recommend to use external SIL/SIB file and distribute SIL Editor with your application to provide full-featured and powerfull editor for your end-users.


2. I will go this route. Upon exporting to file, is there a way to remove some properties (ie. remove Captions, Collections, etc.) from the SIB/ SIL file without going through the file manually?


Thank you.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Fri Oct 28, 2011 6:15 am    Post subject: Reply with quote

1. When you call any dialog box methods using TsiLang component for example:
Code:
siLangLinked1_Form1.MessageDlg(....);

the component will automatically look for the common strings in CommonContainer component. So you don't need to worry about this.

2. If you need just to hide some properties in SIL Editor you can use menu Tools | Visible properties. If you need to create a SIL file with only particular properties included you can use in TsiLang Expert menu File | Save\Load translations | Save properties.
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