System.SysUtils.TSysLocale

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  TSysLocale = packed record
    DefaultLCID: TLocaleID;
    PriLangID: Integer;
    SubLangID: Integer;
    FarEast: Boolean;
    MiddleEast: Boolean;
  end;

C++

struct DECLSPEC_DRECORD TSysLocale
{
public:
    unsigned DefaultLCID;
    int PriLangID;
    int SubLangID;
    bool FarEast;
    bool MiddleEast;
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

TSysLocale represents locale information.

The TSysLocale type represents a 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