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 

Shared translations?

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



Joined: 30 Jul 2009
Posts: 34

PostPosted: Wed Mar 23, 2011 1:45 pm    Post subject: Shared translations? Reply with quote

Hi

Is there a way to share translations between forms?

I mean, we have many many forms that share same translation on buttons like "OK" and "CANCEL". Is there a way to easily share these translations amoung forms on design time?

I mean, I donīt want to code each form as for example:

btnOK.Caption := GetTextOrDefault('IDS_1000' (* 'OK' *) );
btnCancel.Caption := GetTextOrDefault('IDS_1001' (* 'Cancel' *) );

I would like to know if there is a solution direct on translation manager

Thanks
Back to top
View user's profile Send private message
primarypower



Joined: 30 Jul 2009
Posts: 34

PostPosted: Thu Mar 24, 2011 2:12 am    Post subject: Reply with quote

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


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Thu Mar 24, 2011 8:19 am    Post subject: Reply with quote

Hello,

You can either define such strings in one common unit as global variables and translate them with TsiLang and use these variable in different units. Or use Auto-translate option to translate these strings in Translation Manager automatically.

P.S. I hope you know that GetTextOrDefault() code could be translated by TsiLang Expert when translating your source code and you don't need to type it.
Back to top
View user's profile Send private message
primarypower



Joined: 30 Jul 2009
Posts: 34

PostPosted: Thu Mar 24, 2011 2:16 pm    Post subject: Reply with quote

Igor

I thought about the solution of defining some global stuff, but as I stated on my first post I donīt want to alter all screens to translate those on code, but if there is no other way...

The auto translate is good, but still, we donīt eliminate the main problem that is to store repeated translations on source code
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