Extensions.I18n.GetCurrentLocale
Revision as of 10:22, 4 August 2014 by Nb (talk | contribs) (Created page with "Category:i18n == Classification == {{ClassificationActivity | GetCurrentLocale | Gets Locale Code | Term | OTX i18n extension | Locale settings related term...")
Contents
Classification
Name | GetCurrentLocale |
Short Description | Gets Locale Code |
Class | Term |
Extension | OTX i18n extension |
Group | Locale settings related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
Pseudo-Code Syntax
String GetCurrentLocale();
Description
The GetCurrentLocale term should retrieve the current locale code that is used by the runtime system. The returned locale code is a combination that consists of a language two-letter code according to ISO 639-1, followed a hyphen and then a country code of two uppercase ISO 3166. Optional can be added (under the direction of another hyphen) a code variant in case of additional adjustments. The Variant codes are not defined in this standard.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
String | Current locale code of the runtime system. |
Properties
Examples
String result = GetCurrentLocale();