Static Language Switching

For a static switch of the language a language file (*.vis, *.tlt, *.txt) file can be used (for how to create see below). The difference to the dynamic language switching is that the language cannot be defined by a project variable during run time.

Note

For visualizations it is recommended to use the *.vis language file, because *.tlt- or *.txt-translation files only work for visualizations in IEC 61131-3 editor or IEC 61131-3 editor HMI and also in those not for the Meter, Bar Display and Histogram elements.

In dialog ‘Visualization settings’ you configure, which language file should be used with the project. In order to choose a translation (*.tlt, *.txt) or a pure visualization language file (*.vis), which contains the texts in the various languages, activate the Language file option and in the input field next to it enter the appropriate file path. Via the    button you get the standard dialog for opening a file.

../_images/64c9c4275e04d38e0a317f345a00f2fc

Regarding creating a translation file *.tlt, see ‘Project’ ‘Translate into another language’.

For creating a special language file *.vis for the visualization, perform the following steps:

  1. Open likewise the Settings Visualization dialog, Language category.

  2. Choose option language file. In the associate input field enter where you want to store the file. The extension is .vis. If a language file with the extension .vis is already present, it will be offered to you here.

  3. In the input field next to Language you fill in a keyword for the language which is currently used in the visualization, i.e.”german” (or “D”). Then press the button Save.

  4. A file with the extension .vis will be created, which now can be edited by a normal text editor. For example you can open the file by notepad. Example file:

    ../_images/ebfeefb04377ef010a33139006eab46b
  5. You get a list of the text variables for the language currently used in the visualization. It includes a reference to the title of this list, for example “1=german” as reference to the title [german]. You can extend the list by copying all lines, then replacing the German by English text and setting a new title [english]. Beyond the line 1=german you accordingly have to add 2=english.

    To view the visualization in one of the prepared languages, open the dialog Language again. In the option field beyond Language now you can choose between german and english (for the example described above).