Page 1 of 1

Shared translations?

Posted: Wed Mar 23, 2011 1:45 pm
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

Posted: Thu Mar 24, 2011 2:12 am
by primarypower
anyone?

Posted: Thu Mar 24, 2011 8:19 am
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.

Posted: Thu Mar 24, 2011 2:16 pm
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