Difference between revisions of "Extensions.I18n.LocalizeQuantity"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
The '''LocalizeQuantity''' term is used to create a localized version of a given '''Quantity'''. | The '''LocalizeQuantity''' term is used to create a localized version of a given '''Quantity'''. | ||
− | Localization in the '''LocalizeQuantity''' term | + | Localization in the '''LocalizeQuantity''' term will always be performed using the current locale. |
{{TermReturnValue| [[Extensions.Quantities.Quantity|Quantity]] | A localized version of a given '''Quantity'''.}} | {{TermReturnValue| [[Extensions.Quantities.Quantity|Quantity]] | A localized version of a given '''Quantity'''.}} | ||
Line 18: | Line 18: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie2| Quantity | [[Extensions.Quantities.Quantity|Quantity]] | [[Term]] | - | [1] | This represents the '''Quantity''' that | + | {{TableRowPropertie2| Quantity | [[Extensions.Quantities.Quantity|Quantity]] | [[Term]] | - | [1] | This represents the '''Quantity''' that will be localized to the current locale.}} |
|} | |} | ||
Latest revision as of 02:43, 13 September 2019
Contents
Classification
Name | LocalizeQuantity |
Short Description | Creates a localized version of a given Quantity |
Class | Term |
Extension | OTX i18n extension |
Group | Quantity related terms |
Exceptions | InvalidConversionException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
QuantityTerm I18n.LocalizeQuantity(QuantityTerm quantity);
Description
The LocalizeQuantity term is used to create a localized version of a given Quantity.
Localization in the LocalizeQuantity term will always be performed using the current locale.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Quantity | A localized version of a given Quantity. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Quantity | Quantity | Term | - | [1] | This represents the Quantity that will be localized to the current locale. |
OTL Examples
/// Local Declarations
Quantities.Quantity Quantity1;
Quantities.Quantity Quantity2;
/// Flow
Quantity2 = I18n.LocalizeQuantity(Quantity1);