TiPlotComponent.AddTranslation
TiPlotComponent See Also
Adds a single translation object to the plot.
function AddTranslation(OriginalString, ReplacementString: String) : Integer;
Description
Call AddTranslation to add a translation string pair to the component. When
the OriginalString is drawn to the component (either a string in the runtime
property editor, toolbar button ToolTips, popup-menus, axis labels, labels, or any
other string in the Plot Component), it will be replaced with the
ReplacementString instead.
This is useful for applications where you want to completely translate all
strings used in the component for a particular language other than English. Only
Latin-based languages (non-character based languages) are currently supported
at this time.
This is also useful if you simply want to change some text in the runtime
property editor, popup-menu, or other place on the component with your own text
without having to edit the component's source code.
Note: Original Strings are case sensitive and must exactly match the string in the
component (no leading or trailing spaces). Please understand that there is
limited space in the runtime property editor, and not all translations will fit
in all areas without clipping in all situations. If you need Iocomp to update
the runtime property editor to better fit your particular translation need, let
Iocomp Support know via email or telephone support.
Tip: It is recommended that you use the built-in component property editor to add
translations as the property editor has facilities for saving and loading
translations from text files. Iocomp provides templates (files with all built-in
component strings used in the component) for your use as well as translations
provided from other users.
Example
Delphi
Index := iComponent.AddTranslation('Cursor Button', 'Botón Del Cursor');
C++ Builder
Index = iComponent->AddTranslation("Cursor Button", "Botón Del Cursor");
Contents | Index | Previous | Next