Shared translations?

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
primarypower
Posts: 34
Joined: Thu Jul 30, 2009 2:37 pm

Shared translations?

Post by primarypower »

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
primarypower
Posts: 34
Joined: Thu Jul 30, 2009 2:37 pm

Post by primarypower »

anyone?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

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.
Best regards,
Igor Siticov.
primarypower
Posts: 34
Joined: Thu Jul 30, 2009 2:37 pm

Post by primarypower »

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
Post Reply