Difference between revisions of "Extensions.I18n.CreateTranslationKey"
Jump to navigation
Jump to search
| Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
| − | + | /// Local Declarations | |
| + | I18n.TranslationKey TranslationKeyVariable; | ||
| + | /// Flow | ||
| + | TranslationKeyVariable = I18n.CreateTranslationKey(StringTerm); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 21: | Line 24: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
| + | /// Local Declarations | ||
| + | |||
I18n.TranslationKey TranslationKey1; | I18n.TranslationKey TranslationKey1; | ||
Revision as of 06:51, 25 October 2018
Contents
Classification
| Name | CreateTranslationKey |
| Short Description | Creates a TranslationKey from a string |
| Class | Term |
| Extension | OTX i18n extension |
| Group | Translation related terms |
| Exceptions | - |
| Checker Rules | - |
| Standard Compliant | Yes |
OTL Syntax
/// Local Declarations
I18n.TranslationKey TranslationKeyVariable;
/// Flow
TranslationKeyVariable = I18n.CreateTranslationKey(StringTerm);Description
The CreateTranslationKey term creates a TranslationKey out of a given string. The string is used as the text ID that will be used to create the TranslationKey.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
| Data Type | Description |
| TranslationKey | TranslationKey from the given string. |
Properties
| Name | Data Type | Class | Default | Cardinality | Description |
| TextId | String | Term | - | [1] | The string term value provided that will be used to generate a translation key. |
OTL Examples
/// Local Declarations
I18n.TranslationKey TranslationKey1;
/// Flow
TranslationKey1 = I18n.CreateTranslationKey("TEXT_1");