RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.GetLocaleStr Function

Retrieves a localisation value.

Pascal
function GetLocaleStr(Locale: Integer; LocaleType: Integer; const Default: string): string; platform;
C++
AnsiString GetLocaleStr(int Locale, int LocaleType, const AnsiString Default);

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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!