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 overridden in the staging publishing page.

       

      Actual Results:

      The key isn't overridden.

       

      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

        Issue Links

          Activity

            People

              abel.yu Abel Yu (Inactive)
              mariano.alvaro Mariano Álvaro
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                4 years, 25 weeks ago

                Packages

                  Version Package
                  7.0.10.13 DXP SP13
                  7.0.X
                  7.1.10 DXP FP5
                  7.1.10.1 SP1
                  7.1.2 CE GA3
                  7.1.X
                  7.3.0 CE GA1
                  7.3.10 DXP GA1
                  Master