8.5 Generating language-dependent text
Replacement characters for language-dependent text
The
system
offers
the
option of defining CONTROL properties (attribute values) during runtime.
In order to use this function, the desired property must be set in a local variable and the variable
name must be transferred to the tag as an attribute value preceded by $ characters.
Example:
<let name="caption_device_variable" type="string">my_device 3</let>
<DEVICE option_bit="8">
<!-- Direct: The entered expression is displayed. -->
<NAME>my device 1</NAME>
</DEVICE>
<DEVICE option_bit="10">
<!-- Indirect: The text saved for the text identifier caption_id_my_device2
is displayed. -->
<NAME>$$caption_id_my_device2</NAME>
<form>
<init>
<!-- Indirect: The text saved for the text identifier
form_caption_device2 is displayed. -->
<caption>$$form_caption_device2</caption>
</init>
</form>
</DEVICE>
<!-- Indirect: The content of the variable caption_device_variable is dis-
played. -->
<DEVICE option_bit="11">
<NAME>$$$caption_device_variable</NAME>
</DEVICE>
Structure of text file
The XML files with the language-dependent texts must be created in UTF8 format:
Example: oem_aggregate_eng.ts
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE TS>
<TS>
<context>
<name>EASY_EXTEND</name>
<message>
<source>form_caption_id_my_device2</source>
Easy Extend
8.5 Generating language-dependent text
CNC commissioning
244 Commissioning Manual, 10/2015, 6FC5397-3DP40-5BA3