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

The elementType attribute of the empty-result-message taglib is not localized for the navigation menu edit view

    Details

      Description

      Reproducing steps

      1. In a site, go to Build > Navigation Menus
      2. Add a new navigation menu by clicking on the plus button
      3. Change to a language other than English

      Expected: The translation of the message "No element yet" also translates "element"
      Observed: The translation of the message "No element yet" does not translate "element". (For example, in Spanish it reads "Aún no hay element", where "element" is not Spanish.)

      Comments

      The use of the taglib <liferay-frontend:empty-result-message> in modules/apps/site-navigation/site-navigation-admin-web/src/main/resources/META-INF/resources/edit_site_navigation_menu.jsp does not define the attribute elementType explicitly. See the use in modules/apps/fragment/fragment-web/src/main/resources/META-INF/resources/view.jsp for an example in which it is (and it is localized):

      elementType='<%= LanguageUtil.get(request, "collections") %>'
      

        Attachments

          Activity

            People

            Assignee:
            kyle.miho Kyle Miho
            Reporter:
            ricardo.couso Ricardo Couso
            Participants of an Issue:
            Recent user:
            Kyle Miho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 21 weeks, 2 days ago

                Packages

                Version Package
                7.1.X
                Master