More in this section
Forums / Developing with Sitefinity / Changing language by code

Changing language by code

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Ale
    Ale avatar
    0 posts
    21 Jul 2016
    22 Aug 2016
    Link to this post


    I have a site with several languages and a language selector. I need to change the site language by code without changing the url.

    Currently I'm doing this

    Thread.CurrentThread.CurrentCulture = culture;
    Thread.CurrentThread.CurrentUICulture = culture;

    This works for labels inside the page, but it always renders the default language version of the page and not the one I need.

    Is there any way to achieve this without appending the language prefix to the url?

  2. Frits
    Frits avatar
    0 posts
    10 Nov 2016
    10 Nov 2016
    Link to this post
    According to this forum thread:, the LanguageSelectorControl is checking the UICulture. I'm facing the same problem, and I do not know how to solve it. Anybody?
  3. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    01 Jul 2014
    14 Nov 2016 in reply to Frits
    Link to this post

    I had the similar problem in one of mine projects. 

    If I got you correct, you have website in many languages. For example:



    And on Chinese website for specific url:

    you want to show content from page:

    I am not sure if it is possible to do with code. But you can achieve it with rewrite rules and reverse proxy (IIS URL rewrite module & IIS ARR module). Just setup rewrite rule for url: url rewriting content from

3 posts, 0 answered