OTX Reference
|
|
A reference to a string that is internationalized. More...
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... | |
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.
Conversion terms
The following table shows the rules for conversion to another data type:
Conversion | Result | Sample |
---|---|---|
ToBoolean | Undefined (should not be used) | |
ToInteger | Undefined (should not be used) | |
ToFloat | Undefined (should not be used) | |
ToString | Returns the value of the TranslationKey | translationKeyVariable = @TranslationKey:"1"; String s = ToString(translationKeyVariable); // Returns "1" |
ToByteField | Undefined (should not be used) |
Sample
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.