PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-22619

Custom portlet title localization fails if you change title in non-default language first

    Details

    • Type: Bug Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 6.1.0 CE GA1, 6.1.20 EE GA2, 6.2.0 CE M2
    • Fix Version/s: None
    • Component/s: WCM, WCM > Localization
    • Environment:
      Tomcat 7.0.27 + MySQL 5. Portal 6.1.x EE GIT ID: 4774c6e719b2c38fb8a86fd9357f255ad4998e85.
      Tomcat 7.0.27 + MySQL 5. Portal 6.2.x GIT ID: 40bafe1f0e5df30236f348a368757f8943e9c833.
    • Fix Priority:
      2
    • Similar Issues:
      Show 5 results 

      Description

      Reproduce thus:

      1. Find or create a portlet that uses <portlet-info> in its portlet.xml (currently only "Hello World"-porlet of the preinstalled ones)

      2. Put the portlet on any page.

      3. Change language from english to whatever

      4. Change title of portlet

      5. Navigate back to english language

      6. Now the portlet title is lost and all javascript is failing, including removing the portlet...

      Took me a while to find this one... The workaround is easy, just don't use <portlet-info> to set title, but use javax.portlet.title in the resource bundle instead.

        Activity

        Hide
        Drew Blessing added a comment -

        Thanks for the update, Kyrre. I am going to go ahead and push this through as a possible bug. It seems as if the desired result would be that the title revert to the preset title.

        Show
        Drew Blessing added a comment - Thanks for the update, Kyrre. I am going to go ahead and push this through as a possible bug. It seems as if the desired result would be that the title revert to the preset title.
        Hide
        Drew Blessing added a comment -

        I am able to reproduce this bug on 6.0.12 EE. Steps to reproduce:

        1. Add the Hello World portlet to a page.
        2. Change language to anything other than English
        3. Change the title of the portlet.
        4. Change back to the English language.

        The portlet title now appears blank and cannot be changed without opening the "Look and Feel" options or removing the portlet from the page and re-adding it.

        Show
        Drew Blessing added a comment - I am able to reproduce this bug on 6.0.12 EE. Steps to reproduce: 1. Add the Hello World portlet to a page. 2. Change language to anything other than English 3. Change the title of the portlet. 4. Change back to the English language. The portlet title now appears blank and cannot be changed without opening the "Look and Feel" options or removing the portlet from the page and re-adding it.
        Hide
        Pani Gui (Inactive) added a comment -

        Hi Kyrre Myrbostad,

        Thank you for your report. I was able to reproduce this issue following Drew Blessing's steps in Liferay Portal 6.0.12 and our current trunk head. I will update this ticket to reflect this issue.

        Show
        Pani Gui (Inactive) added a comment - Hi Kyrre Myrbostad, Thank you for your report. I was able to reproduce this issue following Drew Blessing's steps in Liferay Portal 6.0.12 and our current trunk head. I will update this ticket to reflect this issue.
        Hide
        Matthew Lee (Inactive) added a comment -

        Reproduced on:
        Tomcat 7.0.27 + MySQL 5. Portal 6.1.x EE GIT ID: 4774c6e719b2c38fb8a86fd9357f255ad4998e85.
        Tomcat 7.0.27 + MySQL 5. Portal 6.2.x GIT ID: 40bafe1f0e5df30236f348a368757f8943e9c833.

        Followed steps in the description.

        Show
        Matthew Lee (Inactive) added a comment - Reproduced on: Tomcat 7.0.27 + MySQL 5. Portal 6.1.x EE GIT ID: 4774c6e719b2c38fb8a86fd9357f255ad4998e85. Tomcat 7.0.27 + MySQL 5. Portal 6.2.x GIT ID: 40bafe1f0e5df30236f348a368757f8943e9c833. Followed steps in the description.
        Hide
        Edward Gonzales added a comment -

        Hello everyone! We are in the process of removing component "Portlet" from LPS. Please replace this issue's component, "Portlet", with a new component. There are over 200+ components, in the newly organized component list. Also, make the necessary adjustments to affected filters. Thanks!

        Show
        Edward Gonzales added a comment - Hello everyone! We are in the process of removing component "Portlet" from LPS. Please replace this issue's component, "Portlet", with a new component. There are over 200+ components, in the newly organized component list. Also, make the necessary adjustments to affected filters. Thanks!

          People

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

            Dates

            • Created:
              Updated:
              Days since last comment:
              1 year, 45 weeks ago

              Development

                Structure Helper Panel