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

The name of the various application templates are formed via hardcoded concatenation of portletId and the word "template"

    Details

      Description

      Description

      The name of an application display template, such as "Blogs Template", is computed by the method

      com.liferay.portal.kernel.template.TemplateHandler#getName(Locale)
      

      Each class that overrides this method and returns something of the form:

      portletTitle.concat(StringPool.SPACE).concat(LanguageUtil.get(locale, "template"));
      

      To improve later localization, this concatenation should be substituted by a key with a variable for portletTitle.

      These strings can be found by going, in a given site, to:

      • {master}: Build > Application Display Templates > click on plus button,
      • {7.0.x}: Configuration > Application Display Template > click on plus button.

      After click on any of the templates shown, the title of the edit view is of the form "New Blogs Template". This string is computed by the method

      com.liferay.dynamic.data.mapping.util.BaseDDMDisplay#getEditTemplateTitle(long, Locale)
      

      and it also returns a string by concatenation, of the form:

      LanguageUtil.get(locale, "new") + StringPool.SPACE + templateHandler.getName(locale);
      

      To improve later localization, this concatenation should be substituted by an existing key, such as "new-x".

        Attachments

          Activity

            People

            Assignee:
            anthony.chu Anthony Chu
            Reporter:
            ricardo.couso Ricardo Couso
            Participants of an Issue:
            Recent user:
            Anthony Chu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.1.X
                Master