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

Language hooks: more than one file for a specific locale are loaded correctly but more than one file for default locale are not loaded

    Details

      Description

      Language hooks with more than one file for a specific locale are loaded correctly but more than one file for default locale are not loaded. (last one is only loaded)

      For example, following liferay-hook.xml:

      <hook>
          <language-properties>Language.properties</language-properties>
          <language-properties>Language_es.properties</language-properties>
          <language-properties>Admin.properties</language-properties>
          <language-properties>Admin_es.properties</language-properties>
      </hook>
      

      Both Language_es.properties and Admin_es.properties are loaded correctly.
      But Language.properties is not loaded, only Admin.properties is loaded.

      Steps to reproduce

      1. Startup portal
      2. Download last version of test-localized-portlet with modifications of LPS-64213 (merged in https://github.com/brianchandotcom/liferay-plugins/pull/5362)
      3. Run ant clean war in plugins/portlets/test-localized-portlet and deploy it
      4. Add a single column page
      5. Add Test Localized portlet to the page
      6. Click on any language
        • Expected result: All of the tests in the portlet will read PASSED.
        • Wrong result: New "Add a new unlocalized language entry from a second property file of a hook" test fails

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 34 weeks ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 CE RC1