OTX Reference  
OpenTestSystem.Otx.Extensions.i18n.DataTypes.TranslationKey Class Reference

A reference to a string that is internationalized. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.i18n.DataTypes.TranslationKey:
Inheritance graph

Public Attributes

TranslationKeyLiteral init
 Cardinality [0..1]
This optional element stands for the initialisation of the identifier at declaration time. Initialisation is done by a hard-coded text ID in the OTX document. More...
 

Detailed Description

A reference to a string that is internationalized.

A TranslationKey is a reference to a unique string that can be internationalized. The actual retrieval process is defined by the runtime system.

Literal
The syntax for Literals for complex data types will be used, where the member value is one of the values in the list.

TranslationKey:"MemberValue"



Conversion terms
The following table shows the rules for conversion to another data type:

ConversionResultSample
ToBooleanUndefined (should not be used)
ToIntegerUndefined (should not be used)
ToFloatUndefined (should not be used)
ToStringReturns the value of the TranslationKeytranslationKeyVariable = @TranslationKey:"1"; String s = ToString(translationKeyVariable); // Returns "1"
ToByteFieldUndefined (should not be used)

Sample

I18n.TranslationKey TranslationKeyVariable = @TranslationKey:"1";

Member Data Documentation

◆ init

TranslationKeyLiteral OpenTestSystem.Otx.Extensions.i18n.DataTypes.TranslationKey.init

Cardinality [0..1]
This optional element stands for the initialisation of the identifier at declaration time. Initialisation is done by a hard-coded text ID in the OTX document.