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

Forums / Bugs & Issues / Issue in sitefinity's multiple language functionality.

Issue in sitefinity's multiple language functionality.

8 posts, 0 answered
  1. Nimit
    Nimit avatar
    90 posts
    Registered:
    27 Mar 2009
    04 Sep 2009
    Link to this post
    Hi,
    can anybody help me. I will explain my issue.
    In one of my project I have english and french two languages which are implemented through built in sitefinity functionality. so When I switch to french by clicking on a link, it changes to french site but there are are some page which if I click on it it open in English side. and if I change the language of my browser to french then it works fine.

    So, Question comes how can I forcibly change the lanuage so that when I go to the french side of the website without changing the browser settings, every page opens for the french not english.

    Please reply ASAP.

    Regards,
    Nimit Verma.
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    08 Sep 2009
    Link to this post
    Hi Nimit,

    Please open your web.config, and check the <localization> element. If you have the following property defined:
     <localization defaultProvider="Sitefinity"  
    ... 
    autoSetClientLanguage="true" ....> 

    Please set it to false. Let me know about the results. 

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Nimit
    Nimit avatar
    90 posts
    Registered:
    27 Mar 2009
    08 Sep 2009
    Link to this post
    Hi,
    Thank you for the reply,
    I tried to put autoSetClientLanguage="false" in web.config. Now, after doing this it is not adding en or fr in the starting of the page name to distiguish between english or french. I have some external pages in the Sitefinity sitemap which have same name in English and French, which it is not working coz as it is not putting fr or en in front of the page name so it take default browser language that is english and points to english pages.

    So now I don't how to make it distinguish between English and French in External Page and some of the links which are pointing to root. e.g. "~/abc.aspx" with is an external page link and if i change the external page location from "~/abc.aspx" to "~/fr/abc.aspx" in french it changes in english as well and if I change the external page location from "~/abc.aspx" to "~/en/abc.aspx"  in english it change in french as well.

    Please reply ASAP,

    regards,
    Nimit Verma.
  4. Nadya
    Nadya avatar
    52 posts
    Registered:
    17 Dec 2008
    08 Sep 2009
    Link to this post
    Hi Nimit,
    right now I am developing a multilingual sitefinity website and I am handling the language version urls the following way :

     public static string GetLanguageVersionUrl(this Control control, string url)  
            {  
                return  
                        control.ResolveUrl(Telerik.Cms.Web.UrlHelper.ResolveLanguageUrl(url,  
                                        Thread.CurrentThread.CurrentUICulture));  
            }  

    as an argument to this method I am passing the StaticUrl property of my CmsPages.

    FYI, I am using Sitefinity 3.7 and path prefix (I believe like you).

    I hope this will help you.

    Best,
    Nadya


  5. Nimit
    Nimit avatar
    90 posts
    Registered:
    27 Mar 2009
    09 Sep 2009
    Link to this post
    Hi Nadya,
    thanks for the reply,
    I will try that and if I have any issue will contact you again.
    Just one thing the code wihch you send, is there a particular place where it goes or straight in the Master Page.

    Thank you for your time,
    Nimit Verma.
  6. Nadya
    Nadya avatar
    52 posts
    Registered:
    17 Dec 2008
    09 Sep 2009
    Link to this post

    Hi Nimit,

    I usually have some static helper classes where I put these kind of methods. I my case it is
    UrlHelper.GetLanguageVersionUrl(this, urlToBeSet);


    msManager cms = new CmsManager();     
    CmsPage homePage = (CmsPage)cms.GetRootPage().Pages[0];     
    string homeUrl = homePage.StaticUrl;     
        
    this.lnkHomePage.NavigateUrl = Telerik.Cms.Web.UrlHelper.ResolveLanguageUrl(homeUrl,          
          
                                        Thread.CurrentThread.CurrentUICulture);  


    I hope this will help.

    Best,
    Nadya

  7. Nimit
    Nimit avatar
    90 posts
    Registered:
    27 Mar 2009
    09 Sep 2009
    Link to this post
    Hi Nadya,
    I really appreciate thank you for the quick reply,
    I will see into it and try it.

    Thank you,
    Nimit Verma.
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    10 Sep 2009
    Link to this post
    Hi,

    Nadezhda, thank you for taking part in this discussion, and sharing your experience. We have updated your Telerik account by adding some points for your help!

    We are going to upload a webinar on www.sitefinitywatch.com on the localization. Please take a look on its notes here - http://sitefinitywatch.com/blog/09-09-09/Webinar_this_Week_Multi-Language_amp_Localization_Support_in_Sitefinity.aspx

    Hopefully it will be of your help too.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
8 posts, 0 answered