NLS tables can be divided into I/O (also called translation) and Internal tables, each type having a set of categories:
More...
Public Member Functions | |
_.Library.String | GetIOTable (_.Library.Integer index) |
Gets the name of an I/O table<br> More... | |
_.Library.String | GetInternalTable (_.Library.Integer index) |
Gets the name of an Internal table<br> More... | |
Static Public Member Functions | |
_.Library.String | DisplayToLogical (_.Library.String ext) |
Converts an external character set name to its internal name<br> More... | |
_.Library.String | LogicalToDisplay (_.Library.String int) |
Converts an internal character set name to its preferred external name<br> More... | |
Public Attributes | |
Accent | |
More... | |
CSP | |
More... | |
Collation | |
More... | |
DSMDDP | |
More... | |
DTMDCP | |
More... | |
File | |
More... | |
IRISTerminal | |
More... | |
Identifier | |
More... | |
Lowercase | |
More... | |
Magtape | |
More... | |
OtherTerminal | |
More... | |
PatternMatch | |
More... | |
Printer | |
More... | |
Process | |
More... | |
State | |
True if translation is ON. More... | |
SystemCall | |
More... | |
TCPIP | |
More... | |
Titlecase | |
More... | |
Uppercase | |
More... | |
XYAction | |
More... | |
NLS tables can be divided into I/O (also called translation) and Internal tables, each type having a set of categories:
I/O tables
Internal tables
For each category, a locale defines a set of available tables and selects one of them to be used as the system default. InterSystems distributes a set of read-only locales but users can create their own locales.
A configuration allows a different system default to be selected among the available tables. Configuration defaults are optional and independent of the locale. They persist across system reboots and updates.
At startup, the system defaults are set either from the configured defaults or from the locale defaults. Configuration defaults have precedence if defined; otherwise the locale defaults are used.
When a process starts it inherits all the system defaults. The process setting for I/O tables can still be overriden when opening a device by specifying "K\TableName\" in the OPEN parameters.
This class has properties that represent each of the above categories.
To get the Configured defaults, instantiate an object with<br>
Set obj=##class(SYS.NLS.Table).New("Config")
To get the loaded System defaults, instantiate an object with<br>
Set obj=##class(SYS.NLS.Table).New("System")
To get the loaded Process settings, instantiate an object with<br>
Set obj=##class(SYS.NLS.Table).New("Process")
Changing a property for a Process object immediately changes the corresponding setting in the process, but it is not possible to change the properties of a system object. Changes to a Config object will only affect the next system reboot.
For generic locale properties see <class>SYS.NLS.Locale</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>.
|
static |
Converts an external character set name to its internal name<br>
Parameter:
Returns:
_.Library.String GetIOTable | ( | _.Library.Integer | index | ) |
Gets the name of an I/O table<br>
Parameter: index - table index
_.Library.String GetInternalTable | ( | _.Library.Integer | index | ) |
Gets the name of an Internal table<br>
Parameter: index - table index
|
static |
Converts an internal character set name to its preferred external name<br>
Parameter:
Returns:
Accent |
CSP |
Collation |
DSMDDP |
DTMDCP |
File |
IRISTerminal |
Identifier |
Lowercase |
Magtape |
OtherTerminal |
PatternMatch |
Printer |
Process |
State |
True if translation is ON.
SystemCall |
TCPIP |
Titlecase |
Uppercase |
XYAction |