Difference between revisions of "Extensions.I18n.TranslationKey"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
String=Returns the value of the TranslationKey | StringSample=<tt>translationKeyVariable = @TranslationKey:"1"; String s = ToString(translationKeyVariable); // Returns "1"</tt> | String=Returns the value of the TranslationKey | StringSample=<tt>translationKeyVariable = @TranslationKey:"1"; String s = ToString(translationKeyVariable); // Returns "1"</tt> | ||
}} | }} | ||
+ | |||
+ | ==Sample== | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | I18n.TranslationKey TranslationKeyVariable = @TranslationKey:"1"; | ||
+ | </syntaxhighlight> |
Revision as of 10:09, 19 October 2018
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.
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";