• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

How to change language selector text

You are not authorized to post a reply.
Sort:
Page 1 of 3123 > >>


New Member


Posts:8
New Member

    Trying to change the selector text

    English (United States)
    Português (Portugal)
    Français (France)
    العربية (مصر)

    and shorten choice of language section. e.g. ENG, PORT, FR, etc



    Advanced Member


    Posts:252
    Advanced Member

      Sequii,

      this is not really complicated: in the skin file you find something like

         {dnn:language id="dnnLanguage" runat="server" showlinks="True" showmenu="False" /}
      
      

      Replace this by

         {dnn:LANGUAGE runat="server"
            ID="dnnLanguage"
            ShowLinks="True"
            ShowMenu="False"
            ItemTemplate='{a href="[URL]" title="[CULTURE:NATIVENAME]"}{span class="Language" style="text-transform: uppercase;"}[CULTURE:THREELETTERISOCODE]{/span}{/a}'
            AlternateTemplate='{a href="[URL]" title="[CULTURE:NATIVENAME]"}{span class="Language" style="text-transform: uppercase;"}[CULTURE:THREELETTERISOCODE]{/span}{/a}'
            SelectedItemTemplate='{span class="Language selected" title="[CULTURE:NATIVENAME]" style="text-transform: uppercase;"}[CULTURE:THREELETTERISOCODE]{/span}'
         /}
      
      

      Replace { by < and } by >. Find more info here: https://www.dnnsoftware.com/wiki/language-skin-object

      Happy DNNing!
      Michael

      Michael Tobisch
      DNN★MVP

      dnnWerk Austria
      DNN Usergroup für den deutschsprachigen Raum
      DNN Connect


      New Member


      Posts:8
      New Member

        Hello Michael,

        I applied those settings and the site theme looses the css and doesnt change the menu so i started to break this up some.
        When applying just these setting nothing changes either.
        https://drive.google.com/open?id=1svJ4E8HEK47ZfcbgM0ewefFom_ZdJWts
        ^ Image of .ascx file.

        {dnn:language id="dnnLanguage" runat="server" showlinks="True" showmenu="False"
        ItemTemplate='{a href="[URL]" title="[CULTURE:NATIVENAME]"}{span class="Language" style="text-transform: uppercase;"}[CULTURE:THREELETTERISOCODE]{/span}{/a}'/}

        https://www.dnnsoftware.com/communi...-explained
        Read this and when chaging some of this code do see the site take.
        I'm using inner.ascx those are my sub pages on nxa.org.
        Tried clearing cache.

        Just cant get this to work. Thanks for the help.



        Veteran Member


        Posts:428
        Veteran Member

          Please note that you shoudl also add an "AlternateTemplate".
          I think I would use:

          < dnn:LANGUAGE runat="server"
          id="dnnLANGUAGE"
          showMenu="False"
          showLinks="True"
          ItemTemplate='< a href="[URL]" class="Language [CULTURE:THREELETTERISOCODE]" title="[CULTURE:NATIVENAME]">[CULTURE:THREELETTERISOCODE]< /a>'
          AlternateTemplate='< a href="[URL]" class="Language [CULTURE:THREELETTERISOCODE]" title="[CULTURE:NATIVENAME]">[CULTURE:THREELETTERISOCODE]< /a>'
          SelectedItemTemplate ='< a href="[URL]" class="Language [CULTURE:THREELETTERISOCODE] Selected" title="[CULTURE:NATIVENAME]">[CULTURE:THREELETTERISOCODE]< /a>'
          />



          New Member


          Posts:8
          New Member

            hi again.

            This shows what my site looks like after applying.
            https://drive.google.com/open?id=1RotK77wjBExOr9joTd_5scAXx-A2fiuz

            Just want it to look like 
            https://drive.google.com/open?id=1KnLwytKlrQRE25FKnl7K95oCa6L8MSRf

            You are not authorized to post a reply.
            Page 1 of 3123 > >>

            These Forums are dedicated to discussion of DNN Platform.

            For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

            1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
            2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
            3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
            4. No Flaming or Trolling.
            5. No Profanity, Racism, or Prejudice.
            6. Site Moderators have the final word on approving / removing a thread or post or comment.
            7. English language posting only, please.

            Would you like to help us?

            Awesome! Simply post in the forums using the link below and we'll get you started.

            Get Involved