+1-888-365-2779
Try Now
More in this section

Forums / Suggestions / Persisting administration language

Persisting administration language

7 posts, 0 answered
  1. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    18 Dec 2008
    Link to this post
    Greetings,

    We've set up a multi-lingual portal and are happy with Sitefinity 3.5.
    Only thing we found a bit awkward was the fact that when publishing a page in any language but the default, the administration language changes back to the default language (practically, to the default language of the administrator's browser).

    So our request would be to have a way to persist the administration language, and stay with it until the moment the administrator chooses to change it.

    In our applications we usually persist the language using the session object:
    -----------------------------------------------------------------
    Dim c As New CultureInfo(Session("cultureId"))
    Thread.CurrentThread.CurrentCulture = c
    Thread.CurrentThread.CurrentUICulture = c
    ------------------------------------------------------------------

    Any chance of implementing this?

    Chanan Zass.

  2. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    19 Dec 2008
    Link to this post

    Would just like to correct myself.
    The admin language changes back to the application default language (regardless of the administrator's default browser language).

    Chanan.

  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Dec 2008
    Link to this post
    Hello Chanan Zass,

    On my local machine, when I change the default language from the drop down in the administration, let say form en to es and create a page I am not redirected back to en version. The link in my browser has not been changed as well.

    Do you have any user controls, templates other implementation on your page/template that could lead to this behavior?

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  4. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    20 Dec 2008
    Link to this post

    Thanks for the prompt response.
    This issue is not critical to us.
    We don't have any spacial user controls (yet).
    We basically took the demo site and inserted new content and a new language (Italian). English is the default language.
    I've just tried again to edit an Italian page. Upon clicking "Publish" I'm thrown back to the English version.

    For the time being I've hacked the /Sitefinity/Admin/Pages.aspx code to overcome this problem.

    Will investigate it further and let you know.

    Thanks.

    Chanan.

  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Dec 2008
    Link to this post
    Hello Chanan Zass,

    Fell free to continue the thread if you need assistance and want to share some workarounds or code examples that will be useful to other community members.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    22 Dec 2008
    Link to this post
    A brief background: our client's site was supposed to be an English and Italian site, edited by English-speaking and Italian-speaking editors.
    Then they've changed their minds and wanted an Italian only site edited by Italian-speaking editors.
    We now don't want them to even see the English site map. To avoid the automatic change to the English site map, we just inserted the following code in the Page_Load sub of the file Sitefinity/Admin/Pages.aspx.cs:

    if (Request.Url.ToString().IndexOf("/en/") > 0)
    {
    Response.Redirect(Request.Url.ToString().Replace(
    "/en/", "/it/"));
    }

    An ugly hack, but nothing fancier is necessary in this case, and anyhow, the problem appears to be limited to our implementation and should not recur in our next sitefinity project.

    Chanan Zass.
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Dec 2008
    Link to this post
    Hello Chanan Zass,

    I am glad to hear that you have managed to avoid this redirection. I thought for something else, but it was more complicated than your solution.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
7 posts, 0 answered