+ Start a Discussion
bestjamiebestjamie 

How to get user's language in s-control

In Apex class, we use System.UserInfo.getLanguage() to retrieve user's language.

But it doesn't work in the s-control.

How to get this information in s-control?

Thanks all!

ArtabusArtabus

You can do it like this :

 

var GetUserInfoResult=sforce.connection.getUserInfo();

 

GetUserInfoResult.userLanguage ==> en_US

bestjamiebestjamie

Thank you very much.

it's very useful.