Page 1 of 1

Extended Translations

Posted: Tue Jan 13, 2004 10:45 am
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

Posted: Tue Jan 13, 2004 11:47 am
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?

It works but...

Posted: Tue Jan 13, 2004 12:36 pm
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

Posted: Tue Jan 13, 2004 1:48 pm
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.