Difference between revisions of "Extensions.I18n.CreateTranslationKey"
Jump to navigation
Jump to search
(Created page with "Category:i18n == Classification == {{ClassificationActivity | CreateTranslationKey | Creates a '''TranslationKey''' from a string | Term | OTX i18n extension...") |
|||
| Line 3: | Line 3: | ||
{{ClassificationActivity | CreateTranslationKey | Creates a '''TranslationKey''' from a string | [[Term]] | [[i18n|OTX i18n extension]] | [[Translation related terms]] | - | - }} | {{ClassificationActivity | CreateTranslationKey | Creates a '''TranslationKey''' from a string | [[Term]] | [[i18n|OTX i18n extension]] | [[Translation related terms]] | - | - }} | ||
| − | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
| − | TranslationKey CreateTranslationKey( | + | TranslationKey = I18n.CreateTranslationKey(StringTerm); |
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 19: | Line 19: | ||
|} | |} | ||
| − | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
| − | TranslationKey | + | I18n.TranslationKey TranslationKey1; |
| + | |||
| + | TranslationKey1 = I18n.CreateTranslationKey("TEXT_1"); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 08:02, 10 February 2015
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
TranslationKey = I18n.CreateTranslationKey(StringTerm);Description
The CreateTranslationKey term creates a TranslationKey from a string. The string is used as the text ID 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] | String to generate the translation Keys. |
OTL Examples
I18n.TranslationKey TranslationKey1;
TranslationKey1 = I18n.CreateTranslationKey("TEXT_1");