date format doesn't change after sc_set_regional

Hi,

I’m using sc_set_language and sc_set_regional in my login code and date format doesn’t change. But, well when I use language in toolsbar.
In all my applications, date is set to Regional setting YES
I’m using sc8, v.035

exemple : I test this, it seems stay on en_us for regional setting.

sc_set_language(‘en_us’);
sc_set_regional(‘en_us’);
switch(trim($usr_lang)){
case “fr”:
sc_set_language(‘fr’);
sc_set_regional(‘fr’);
break;
case “nl”:
sc_set_language(‘nl’);
sc_set_regional(‘nl’);
break;
case “tr”:
sc_set_language(‘tr’);
sc_set_regional(‘tr’);
break;
}

Thanks for your helps
Nac

If it is just the date, check the settings under Locales -> Regional Settings.

jsb

Jsb ,

I have 384 app in my project, I tested the currency format, decimal character and it’s the same !!!

There must be an another way …

Nac

Hi,

What event/type of app do you use to execute your script for change language/regional ?

Hi ionutberlea

I place the above code in my Application init event

Thanks

Did you tried in latest version 047?