Component: String Translator (Storage)

From Flowcode Help
Jump to navigationJump to search


Author Matrix TSL
Version 1.0 (Release)
Category Storage


Image 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 FC6 Icon.png Translations Demo

Downloadable macro reference

GetTranslation

Gets the current translated version of the string

Parameters

BYTE Language
Range 0 - 7, 0=Default language


Return value

STRING


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