%SYS
Locale Class Reference

Exposes some properties and methods associated with a locale. More...

Inheritance diagram for Locale:
Collaboration diagram for Locale:

Static Public Member Functions

_.Library.List GetLanguage (_.Library.String Loc)
 Returns the language associated with a locale as
More...
 

Public Attributes

 AccentTables
 List of available Accent tables. More...
 
 CharacterSet
 Name of character set on which the current locale is based. More...
 
 CollationTables
 List of available collation tables. More...
 
 Country
 Country supported by the current locale. More...
 
 CountryAbbr
 ISO 3166-1 alpha-2 two-letter abbreviation of Country. More...
 
 Currency
 Currency symbol. More...
 
 Description
 Short description of the current locale. More...
 
 IdentifierTables
 List of available identifier tables. More...
 
 Language
 Localization language for the current locale. More...
 
 LanguageAbbr
 ISO 639-1 two-letter abbreviation of Language. More...
 
 LowerCaseTables
 List of available lower-case tables. More...
 
 Name
 Code name of the current locale. More...
 
 PatternTables
 List of available pattern match tables. More...
 
 TitleCaseTables
 List of available title-case tables. More...
 
 UpperCaseTables
 List of available upper-case tables. More...
 
 XLTTables
 List of available translation (i/o) tables. More...
 
 XYTables
 List of available $X/$Y tables. More...
 

Detailed Description

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 <class>SYS.NLS.Table</class>.
For current device NLS properties see <class>SYS.NLS.Device</class>.
For date, time and number format properties see <class>SYS.NLS.Format</class>.

Member Function Documentation

◆ GetLanguage()

_.Library.List GetLanguage ( _.Library.String  Loc)
static

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.

Member Data Documentation

◆ AccentTables

AccentTables

List of available Accent tables.

 

◆ CharacterSet

CharacterSet

Name of character set on which the current locale is based.

 

◆ CollationTables

CollationTables

List of available collation tables.

 

◆ Country

Country

Country supported by the current locale.

 

◆ CountryAbbr

CountryAbbr

ISO 3166-1 alpha-2 two-letter abbreviation of Country.

 

◆ Currency

Currency

Currency symbol.

 

◆ Description

Description

Short description of the current locale.

 

◆ IdentifierTables

IdentifierTables

List of available identifier tables.

 

◆ Language

Language

Localization language for the current locale.

 

◆ LanguageAbbr

LanguageAbbr

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

LowerCaseTables

List of available lower-case tables.

 

◆ Name

Name

Code name of the current locale.

 

◆ PatternTables

PatternTables

List of available pattern match tables.

 

◆ TitleCaseTables

TitleCaseTables

List of available title-case tables.

 

◆ UpperCaseTables

UpperCaseTables

List of available upper-case tables.

 

◆ XLTTables

XLTTables

List of available translation (i/o) tables.

 

◆ XYTables

XYTables

List of available $X/$Y tables.