Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-106615

Language Selector portlet with "Select Box" ADT translates the word "English" to the current language

    Details

      Description

      Description:
      Language selector should display all language names in their own translation (English, Deutsch, Español, Magyar, etc.). However, the word "English" is always translated for some reason to the current language (Englisch, Inglés, Angol, etc.)

      Reproduction steps:

      1. Set up and start a bundle (keep en_US as the default language)
      2. Create a new site with a widget page
      3. Put a Language Selector portlet on the page
      4. Configure the Language Selector portlet to use the "Select Box" template
      5. Verify that the current language is "English"
      6. Use the language selector to switch to another language, e.g.: Spanish ("Español")
      7. Check the list of languages again in Language Selector portlet

      Actual: English is displayed as translated to current language, e.g.: "Inglés"
      Expected: English is displayed as "English"

      Notes:
      It seems like the main reason is that the word "English" has translation on every single language. E.g. in Language_hu.properties#L1844:

      english=Angol

      This is the FTL pattern, where it renders the select box: portlet_display_template_select_box.ftl. Here, the value of entry.getLongDisplayName() is still "english", however, the JSP part that actually renders the <option> tag, uses it as a language key.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              vendel.toreki Vendel Töreki
              Participants of an Issue:
              Recent user:
              Jason Pince
              Engineering Assignee:
              Vendel Töreki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 47 weeks, 2 days ago

                  Packages

                  Version Package
                  7.1.X
                  7.2.10 DXP FP4
                  7.2.X
                  7.3.0 CE GA1
                  7.3.10 DXP GA1
                  Master