SharePoint 2013: Change a user's "Display language preferences" through code


  • There is requirement that we have which needs us to allow the user to change the display language for the site from one of  our application pages . In SP 2013, we had mimicked the display language change drop down successfully. But in SP 2013, since they have moved this setting to the user's regional settings, we need the user to add, change order of the display languages from our application pages. The server side object model does give me SPUser.UpdateUserSettings method, but I cannot change the "PreferredDisplayLanguages" collection since SPLanguageSettings has its members as read only.

    I used reflector to see the code used by SharePoint's "regionalsetng.aspx" page, but it uses internal methods to change the properties.

    Is there no way I can change SPUser's PreferredDisplayLanguages collection?

    Can't I use the cookie based mechanism that I used in SP 2010?

    Thanks in advance for any help.

    Thursday, June 27, 2013 6:33 AM


All replies