Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-4081

Blade's MVC Portlet template doesn't generate javax.portlet.title Language key properly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2, 3.2 M1
    • Fix Version/s: 3.2 GA1
    • Component/s: blade-cli
    • Labels:
      None
    • Environment:
      Mac OS High Sierra, 10.13, Oracle JDK 8

      Description

      mvc-portlet template doesn't generate a proper javax.portlet.title in Langage.properties.

      Precondition
      The latest blade (3.0.0) installed

      Steps to reproduce

      1. Create a directory, say lrworkspace
      2. Go to lrworkspace directory and create a workspace with blade init
      3. Go to ./modules directory and create a portlet with blade create -t mvc-portlet -p com.liferay.docs.guestbook -c GuestbookPortlet my-guestbook-project (Refered here https://dev.liferay.com/ja/develop/tutorials/-/knowledge_base/7-0/creating-modules-with-blade-cli)
      4. Go to my-guestbook-project and run blade gw buildLang to generate Language properties
      5. Open Language_en.properties and modify javax.portlet.title.my-guestbook-project to Guestbook and open Language_ja.properties and modify javax.portlet.title.my-guestbook-project to ゲストブック
      6. Start up Liferay bundle and deploy with blade deploy
      7. Login Liferay as Admin and change display language to Japanese

      Actual behavior
      The portlet name is my-guestbook-project JSP Portlet

      Intended behavior
      The portlet name should be ゲストブック

      If you change the key, javax.portlet.title.my-guestbook-project to javax.portlet.title.Guestbook, it works. So, the template should be changed as below.

      Current: javax.portlet.title.${artifactId}=${artifactId} JSP Portlet
      Should be : javax.portlet.title.${className}=${artifactId} JSP Portlet

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                44 weeks ago

                Packages

                Version Package
                3.2 GA1