Extensions.I18n.TranslationKey

From emotive
Jump to navigation Jump to search

Classification

Name TranslationKey
Short Description A reference to a string that is internationalized
Class Complex Data Type
Base Data Type SimpleType
Default Value The empty string
Provide a Literal Yes
SpecifiedBy ISO 13209-3
Standard Compliant Yes

Description

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"

Core Conversion

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

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