Difference between revisions of "Component: String Translator (Storage)"
Line 20: | Line 20: | ||
==Examples== | ==Examples== | ||
+ | |||
Simple example showing how to use the translation component when designing multi-language user interfaces. | Simple example showing how to use the translation component when designing multi-language user interfaces. | ||
+ | |||
+ | {{Fcfile|Translations.fcfx|Translations Demo}} | ||
+ | |||
Clicking the buttons on the keypad selects the active language. | Clicking the buttons on the keypad selects the active language. | ||
Line 29: | Line 33: | ||
3=German | 3=German | ||
− | |||
− | |||
− | |||
==Downloadable macro reference== | ==Downloadable macro reference== |
Revision as of 09:58, 26 April 2021
Author | Matrix TSL |
Version | 1.0 (Release) |
Category | Storage |
Contents
String Translator component
A simple component to allow multiple language support by substituting different strings depending on the selected language.
Examples
Simple example showing how to use the translation component when designing multi-language user interfaces.
Clicking the buttons on the keypad selects the active language.
1=English
2=French
3=German
Downloadable macro reference
GetTranslation
Gets the current translated version of the string
Parameters
- BYTE Language
- Range 0 - 7, 0=Default language
Return value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Language Count
This property is of type Unsigned integer and can be referenced with the variable name LanguageCount.
Selects how many languages are present and controllable via the component.
Range 1 - 8.
String0 (default)
This property is of type Line of text and can be referenced with the variable name String0.
String used when language parameter set to 0
String1
This property is of type Line of text and can be referenced with the variable name String1.
String used when language parameter set to 1
String2
This property is of type Line of text and can be referenced with the variable name String2.
String used when language parameter set to 2