Solved
Forum Discussion
1 Reply
- m_essaidValued Contributor
in Delphi :
Log.Message(aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLANGUAGE));
Hi All
Below codes gives error.I am trying to get language and region name from system
Error "The requested information about locale could not be obtained"
function GetLocaleName()
{
var intLCID = Win32API.GetUserDefaultLCID();
LOCALE_SNAME = intLCID;
Log.Message(GetLocaleInfoEx(LOCALE_USER_DEFAULT, LOCALE_SNAME));
}
How should i get region and language name ?
in Delphi :
Log.Message(aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLANGUAGE));
in Delphi :
Log.Message(aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLANGUAGE));