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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Localization via script

ekoraichi-2
2-Guest

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

1 ACCEPTED SOLUTION

Accepted Solutions
supandey
19-Tanzanite
(To:ekoraichi-2)

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
supandey
19-Tanzanite
(To:ekoraichi-2)

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);

Thanks, it worked.

Top Tags