Extended Translations

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Skim
Posts: 3
Joined: Wed Oct 08, 2003 8:38 am

Extended Translations

Post by Skim »

How can I translate with "Extended Translations" (TsiLang Component).

It doesn't work at all. I translated the text, but no effect.
It is also not possible to export it to the .sil file.

Is there any way?

Thanks for help

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

Post by isiticov »

Extended Translation Editor is a property editor for TsiLang's ExtendedTranslations property. This includes components' non-string properties, such as Left, Right, Width, Tag, Align etc. as well as all properties of any sub-level components such as TLabeledEdit. This could be very useful, for instance, for repositioning or rescaling controls, when you translate your application into a language with phrase length more than in original language.

Translating
To include a component's property into the list of translated properties:

1. Find the component in the Available Properties TreeView (left side of the window), expand the node (pressing the 'plus' sign at the left of the node), then select the property to be translated.
2. Move the property to the Selected Properties list (center of the window), pressing the > (right arrow) button or double-clicking the property.
3. Select it in the Selected Properties list and enter the translations into the Translations grid (right-side of the window) for every language in a manner you used to do in Delphi Object Inspector.
To remove a property from the Selected Properties list select it and press the < (left arrow) button. Press the << (double left arrow) button to remove all the properties at a time.


Doesn't this work for you?
Skim
Posts: 3
Joined: Wed Oct 08, 2003 8:38 am

It works but...

Post by Skim »

The problem is that I can't save this translation,
so when I load the .sil at runtime it is not translated anymore.

Probably it's better to keep the translation within the form instead
externally within the .sil file. But we did it this way and to change
everything is a lot of work.

Thanks for answer anyway, Siegfried Kornschober
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Then I suggest you the following:
Just save the form to SIL file using TsiLang Expert and your ExtendedTranslations will be saved to the files as well. When loading use LoadAllFromFile and ExtendedTranslations will be loaded as well at run-time.
Post Reply