cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Localization via script

SOLVED
Highlighted

Localization via script

Hi,

How can i assing the language parametr to a user using a script. Because i used the create user script via a button, but i want to assign a specific to that user langauge also. Thanks

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Localization via script

Hi El Mehdi, you can use the SetLanguagePreferences service something like this to achieve this

var params = {

preferences: undefined /* STRING */

};

// no return

Users["DemoUser"].SetLanguagePreferences(params);

View solution in original post

2 REPLIES 2

Re: Localization via script

Hi El Mehdi, you can use the SetLanguagePreferences service something like this to achieve this

var params = {

preferences: undefined /* STRING */

};

// no return

Users["DemoUser"].SetLanguagePreferences(params);

View solution in original post

Re: Localization via script

Thanks, it worked.