# Changing Text to Other Languages

Create a Language Table with text in multiple languages. You can then change languages of the text in display unit.

## Example Operation

## Setting Workflow

1. Add Language Tables
2. Set up Parts
3. Set up Scripts

## Add Language Tables

### Project Explorer : [Language Table] ➞ [All Languages]

Add the below language table(s) and text(s).

#### Set the text in language table(s):

No | 1 Table1 (English_Gothic) | 2 Table2 (French_Gothic) | 3 Table3 (Japanese_Gothic)
1 | Blue | bleu | 青
2 | Red | rouge | 赤
3 | Yellow | jaune | 黄
4 | Green | vert | 緑

## Set up Parts

### Project Explorer : [Screen Design] ➞ [Screens] ➞ [Screen1]

Drag and drop the following objects from the [Tool Chest] to the screen.

#### Text Box object (Name: TextBox1) properties: A-1

Tab | Sub Tab | Property | Value
[Shape] | [Text] | [Text] | [LanguageTable Text] [ID]: [1:Blue]

#### Text Box object (Name: TextBox2) properties: A-2

Tab | Sub Tab | Property | Value
[Shape] | [Text] | [Text] | [LanguageTable Text] [ID]: [2:Red]

#### Text Box object (Name: TextBox3) properties: A-3

Tab | Sub Tab | Property | Value
[Shape] | [Text] | [Text] | [LanguageTable Text] [ID]: [3:Yellow]

#### Text Box object (Name: TextBox4) properties: A-4

Tab | Sub Tab | Property | Value
[Shape] | [Text] | [Text] | [LanguageTable Text] [ID]: [4:Green]

#### Switch object (Name: Switch1) properties: B-1

Default value

#### Switch object (Name: Switch2) properties: B-2

Default value

#### Switch object (Name: Switch3) properties: B-3

Default value

## Set up Scripts

### Project Explorer : [Screen Design] ➞ [Screens] ➞ [Screen1]

Set the following script on the object.

From the [Tool Chest] drag and drop the script to the Script editor.

#### Switch object (Name: Switch1) script: B-1

#### Switch object (Name: Switch2) script: B-2

#### Switch object (Name: Switch3) script: B-3

Legend | Block
1 | [Triggers] ➞ [Touch] ➞ [Touch]
2 | [Operations] ➞ [HMI Functions] ➞ [Language Change]
3 | [Values] ➞ [Constant]
4 | [Values] ➞ [Screen Object]