More in this section

Forums / Developing with Sitefinity / multilingual - showing language links instead of drop down?

multilingual - showing language links instead of drop down?

4 posts, 0 answered
  1. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    02 Sep 2009
    Link to this post
    Hi

    What is the best approach for showing 2 language links (english, french)
    At present i drag the language selector on and it shows a drop down, however, i need to show 2 links next to each other in the top right of page

    what way is the proper way to do this?

    Thanks
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Sep 2009
    Link to this post
    Hello Quade,

    Thank you for using our services.

    Attached to my post you can find a custom control that renders the language selections, as hyperlinks. If you wish you can also add icons for each language as a flag. To do this you just have to comment out one line in ~/App_Code/LanguageList.cs (and of course provide the images):
     if (ctrl is HyperLink) 
         { 
           HyperLink lnk = (HyperLink)ctrl; 
           // item.Value is the culture code, the full path for english would be ~/Images/en.gif, german ~/Images/de.gif 
           // and so on. In order for the control to display flags, images should be already uploaded in the specified folder 
           // This path can be changed as desired. 
           //lnk.ImageUrl = "~/Images/" + item.Value + ".gif"; 
          } 

    I hope this helps you. If you have more questions, please feel free to contact us.

    Kind regards,
    Radoslav Georgiev
    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. New User
    New User avatar
    4 posts
    Registered:
    14 Dec 2009
    14 Dec 2009
    Link to this post

    Dear Sir/Madam,

    My questions are in relation to the Language Selection option on Sitefinity:

    1.       What I am looking to find out is whether it is possible to edit the language selection drop down menu and remove Deutsch for example and add Bosnian, Croatian and Russian as options?

    2.       After I have created the equivalent pages that are translated into these languages, is it possible to link each option accordingly to each option through gaining access to the source code of the page?

    3.       Is it possible when creating other versions of each page (which are linked to each corresponding drop down menu option) to change the navigational button text into the corresponding languages?


    Looking forward to hear from you soon.

    Kind regards

     

     

     

  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 Dec 2009
    Link to this post
    Hi New User,

    Thank you for contacting Telerik Support.

    1) The languages available in the dropdown of this control are populated from the languages you have enabled in your website web.config:
    <localization defaultProvider="Sitefinity" persistenceMode="PathPrefix" defaultCulture="en" cultures="en, es, fr, de, bg">

    You can add whichever culture you want to enable localization for.

    2) Sitefinity Navigation controls are bound to a SiteMap datasource. This means that they will automatically get appropriate language versions for each page once a page is created for a specific language.

    3) The navigational button text comes from the Menu Name property for each language version of a page. This means that it is automatically populated for that specific language version.

    For more information on localization in Sitefinity I will advise you to take a look at our localization webinar: Multi-Language & Localization Support in Sitefinity

    Greetings,
    Radoslav Georgiev
    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
4 posts, 0 answered