Class Reference
IRIS for UNIX 2019.2
InterSystems: The power behind what matters   
Documentation  Search
  [%SYS] >  [%SYS] >  [NLS] >  [Locale]
Private  Storage   

class %SYS.NLS.Locale extends %RegisteredObject

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.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
16 2


Summary

Properties
CharacterSet CollationTables Country CountryAbbr
Currency Description IdentifierTables Language
LanguageAbbr LowerCaseTables Name PatternTables
TitleCaseTables UpperCaseTables XLTTables XYTables

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
GetLanguage


Properties

• property CharacterSet as %String;
Name of character set on which the current locale is based.
• property CollationTables as %String;
List of available collation tables.
• property Country as %String;
Country supported by the current locale.
• property CountryAbbr as %String;
ISO 3166-1 alpha-2 two-letter abbreviation of Country.
• property Currency as %String;
Currency symbol.
• property Description as %String;
Short description of the current locale.
• property IdentifierTables as %String;
List of available identifier tables.
• property Language as %String;
Localization language for the current locale.
• 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.
• property LowerCaseTables as %String;
List of available lower-case tables.
• property Name as %String;
Code name of the current locale.
• property PatternTables as %String;
List of available pattern match tables.
• property TitleCaseTables as %String;
List of available title-case tables.
• property UpperCaseTables as %String;
List of available upper-case tables.
• property XLTTables as %String;
List of available translation (i/o) tables
• property XYTables as %String;
List of available $X/$Y tables.

Methods

• 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.


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.