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

Language hooks are not correctly loaded when configuring more than one file for default properties or for a specific locale

    Details

      Description

      Language hooks are not correctly loaded when configuring more than one file for default properties or for a specific locale.

      For example, it is problematic to have two default properties: Language.properties and Admin.properties.
      Following configuration won't work:

      <hook>
          <language-properties>Language.properties</language-properties>
          <language-properties>Language_es_ES.properties</language-properties>
          <language-properties>Language_en_GB.properties</language-properties>
          <language-properties>Language_hu_HU.properties</language-properties>
          <language-properties>Admin.properties</language-properties>
          <language-properties>Admin_es.properties</language-properties>
      </hook>
      

      Steps to reproduce

      1. Startup portal
      2. Download last version of test-localized-portlet with modifications of LPS-64213 (more info see comments)
      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:
                  2 years, 42 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.X EE
                  Master