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

Certain ResourceBundle cannot be clearly overriden

    Details

      Description

      Due to com.liferay.lang.merger plugin we do copy Language*.properties file from the language module to the module that requires them. For example it happens with com.liferay.staging.processes.web and com.liferay.staging.lang modules.

      So that when a com.liferay.staging.lang key needs to be overriden often the user interprets that they need to override the ResourceBundleLoader from that module, but that doesn't always work if we're employing the key from the com.liferay.staging.processes.web using the calling class (or classloader) to retrieve the ResourceBundleLoader. We should not couple the module key overwrite to our build process.

       

      Steps to Reproduce:

      1. Use https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-0/overriding-language-keys to override the publish-templates key. As bundle.symbolic.name use com.liferay.staging.lang where the key is in the source code.
      2. Deploy the created module.

       

      Expected Results:

      The key should be overriden in the staging publishing page.

       

      Actual Results:

      The key isn't overriden.

       

      The actual way to override the keys isn't very intuitive, and it requires that if a common key needs to be overriden it must be done for every module explicitly.

        Attachments

          Activity

            People

            • Assignee:
              abel.yu Abel Yu (Inactive)
              Reporter:
              mariano.alvaro Mariano Álvaro
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                36 weeks, 3 days ago

                Packages

                Version Package
                7.1.10 DXP FP5
                7.1.10.1 SP1
                7.1.2 CE GA3
                7.1.X
                Master