System.SysUtils.GetLocaleStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetLocaleStr(Locale, LocaleType: Integer; const Default: string): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall GetLocaleStr(int Locale, int LocaleType, const System::UnicodeString Default);

Properties

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

Description

Retrieves a localization value.

GetLocaleStr retrieves the passed LocaleType value or the passed Default value if not found. The actual value is determined by the location specified by Locale. For example, on Windows, $040c is the Locale for France French, and $0409 is the Locale for US English. For the LOCALE_SMONTHNAME1 LocaleType, these locales would yield 'janvier' and 'January' respectively.

Note: This is an OS specific function.

See Also