%SYS.NLS.Locale
Class %SYS.NLS.Locale Extends %RegisteredObject [ System = 4 ]
Exposes some properties and methods associated with a locale. If no locale is given to %New(), then the current one is used.
For system and process NLS table settings see %SYS.NLS.Table.
For current device NLS properties see %SYS.NLS.Device.
For date, time and number format properties see %SYS.NLS.Format.
Properties
AccentTables
Property AccentTables As %String;
List of available Accent tables.
CharacterSet
Property CharacterSet As %String;
Name of character set on which the current locale is based.
CollationTables
Property CollationTables As %String;
List of available collation tables.
Country
Property Country As %String;
Country supported by the current locale.
CountryAbbr
Property CountryAbbr As %String;
ISO 3166-1 alpha-2 two-letter abbreviation of Country.
Currency
Property Currency As %String;
Currency symbol.
Description
Property Description As %String;
Short description of the current locale.
IdentifierTables
Property IdentifierTables As %String;
List of available identifier tables.
Language
Property Language As %String;
Localization language for the current locale.
LanguageAbbr
Property LanguageAbbr As %String;
ISO 639-1 two-letter abbreviation of Language.
In a few cases, where the language is used by more than one country, this abbreviation is hyphenated with the uppercase abbreviation of the country. For example, en-US, en-GB, pt-BR.
LowerCaseTables
Property LowerCaseTables As %String;
List of available lower-case tables.
Name
Property Name As %String;
Code name of the current locale.
PatternTables
Property PatternTables As %String;
List of available pattern match tables.
TitleCaseTables
Property TitleCaseTables As %String;
List of available title-case tables.
UpperCaseTables
Property UpperCaseTables As %String;
List of available upper-case tables.
XLTTables
Property XLTTables As %String;
List of available translation (i/o) tables
XYTables
Property XYTables As %String;
List of available $X/$Y tables.
Methods
%OnNew
Method %OnNew(sloc As %String = "") As %Status [ Internal ]
GetLanguage
ClassMethod GetLanguage(Loc As %String = "") As %List
Returns the language associated with a locale as
$LB({Property LanguageAbbr},{Property Language})
Parameters:
- Loc - Locale code (optional) If the locale code is not given, use the current locale.