More in this section

Forums / Bugs & Issues / Can you change Language Link Text?

Can you change Language Link Text?

3 posts, 0 answered
  1. R
    R avatar
    5 posts
    23 Aug 2013
    29 Aug 2013
    Link to this post
    When setting up your site for multiple languages, is there a way to control the text that dynamically appears? (for users to switch between languages)

    In addition to the already existing English version of our site, we are migrating from French (fr), to French Canadian (fr-CA). The resulting Language link that appears in the header of our Templated site is presented as "français (Canada)". We don't want "Canada" to appear, so is there a way in Sitefinity to change this?

    I've already looked in Admin > System > Inteface Labels & Messages. It's definitely not an option in there. I can do this with jQuery, but I prefer not to.

    Thanks in advance for any help,
  2. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    18 Feb 2004
    30 Aug 2013 in reply to R
    Link to this post
    Hi R,

    In order to achieve this you could create your own version of the LanguageSelectorControl widget. In this case you could have influence on the rendering of the items inside the dropdown. (or the horizontal/vertical presentations)

    Not sure if you are familiar with this, you could take a look at this code:
    public class LanguagePicker : LanguageSelectorControl {
       // Override e.g. the BindLanguageContainers or the GetDisplayedLanguageName methods

    It inherits from the LanguageSelectorControl. You could override the GetDisplayedLanguageName and return a static value if the language is fr-CA.

    If you have any questions, let me know.

    Kind regards,
  3. Markus
    Markus avatar
    2763 posts
    25 Nov 2005
    30 Aug 2013 in reply to Daniel Plomp
    Link to this post
    For a simple page I went the jquery way

    You could find your (Canadian) and shorten it. But I guess Daniels solution would be cleaner


    PS: I posted the idea many time that we could set text, image, deliminator in the Admin - Language setting next to each language to be used. Like this we would be super flexible.

3 posts, 0 answered