Extensions.I18n.LocalizeQuantity

From emotive
Revision as of 07:00, 25 October 2018 by Hb (talk | contribs) (→‎Properties)
Jump to navigation Jump to search

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

/// Local Declarations
Quantities.Quantity QuantityVariable;
/// Flow
QuantityVariable = I18n.LocalizeQuantity(QuantityTerm);

Description

The LocalizeQuantity term is used to create a localized version of a given Quantity.

Localization in the LocalizeQuantity term shall always be performed using the current locale.

Return Value

The Term returns the value, see table below.

Icons Note.png 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 shall be localized to the current locale.

OTL Examples

/// Local Declarations

Quantities.Quantity Quantity1;
Quantities.Quantity Quantity2;

/// Flow

Quantity2 = I18n.LocalizeQuantity(Quantity1);

See also

LocalizeQuantityToUnitGroup