System.SysUtils.SysLocale

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

SysLocale: TSysLocale;

C++

extern DELPHI_PACKAGE TSysLocale SysLocale;

Properties

Type Visibility Source Unit Parent
variable public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

SysLocale holds locale information.

The SysLocale holds the attributes of the current locale. The locale determines how dates and times are formatted, how items are alphabetically sorted, and how strings are compared.

The DefaultLCID field represents the locale identifier. This is a 32-bit value that specifies a default sort order and a default language identifier.

The PirLangID field specifies the primary type of the language identifier. This is one of the constants that identify a language group, such as LANG_ENGLISH or LANG_FRENCH.

The SubLangID field specifies the subtype of the language identifier. This is one of the constants that identify a language subgroup, such as SUBLANG_ENGLISH_US or SUBLANG_FRENCH_CANADIAN.

FarEast is True or nonzero if User32.dll supports DBCS; False or zero otherwise. In other words, FarEast is True or nonzero if the double-byte character-set (DBCS) version of User.exe is installed; False or zero otherwise.

MiddleEast is True if the system is enabled for Hebrew and Arabic languages; False otherwise.

See Also

Code Examples