Innovation
9 years agoNew Contributor
SetLocalInfo help needed
Hello,
i want to change (marked in the picture) the "UserDefaultLangID" but i can´t get it working.
I am able to change date and time but Windows gets buggy when i change the date to T. MMM JJJJ wich is not in the "Format: Englisch (USA)".
This is the script i´m using for changing the date and time.
procedure RegionalChangeS1;
var i:integer;
begin
//aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT,LANGID,i);
//SetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_LANGID, 'de');
SetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTDATE,'TT/MM/JJJJ');
SetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLONGDATE,'TTTT, T. MMMM JJJJ');
SetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STIME,'HH:mm');
SetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ITIME,'hh:mm:ss');
//ShowMessage('i');
end;pls help me change the "Format".
thanks