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

When user display language is changed, localized content is not fully updated until page is refreshed

    Details

    • Similar Issues:
      Show 3 results 

      Description

      Hello,

      I have setup the GA1. In portal-ext I define 3 supported locales (FR, DE, EN), default language for the portal is FR. In My Account I select EN as display language.

      When editing the Look'n'Feel Advanced styling settings of a portlet, some messages are shown in FR while others are in EN (see attached screenshot). I would expect to see the messages in EN because the language on my account is EN and not FR.

      Steps to reproduce:
      1) Setup GA1
      2) portal-ext:
      locales=fr_FR,de_DE,en_US
      time.zones=UTC,GMT,Europe/Luxembourg
      company.default.locale=fr_FR
      company.default.time.zone=Europe/Luxembourg
      3) Login as test/test
      4) Go to My Account
      5) Set Display Settings -> Language to English
      6) Return to portal
      7) Select Look'n'Feel for one of the portlets
      8) Go to e.g. Advanced styling

      Alex

        Activity

        Hide
        Drew Blessing added a comment -

        Alex,

        Thank you for your report. As part of the community verifier program I am taking a look at this issue.

        Show
        Drew Blessing added a comment - Alex, Thank you for your report. As part of the community verifier program I am taking a look at this issue.
        Hide
        Drew Blessing added a comment -

        I attempted to reproduce this problem on 6.1 GA1. I am able to reproduce what you are seeing but I'm not sure if it's a bug or not. Here's what's happening -

        When a user opens My Account in 6.1 and changes the display language from French to English and close the overlay the actual portal page is not refreshed. You should notice that many other aspects of the page are also still in French when you close the My Account overlay. The tabs in the Look and Feel overlay are refreshed on load but the content is not. Once the page is refreshed or the user navigates to another page in the portal everything is refreshed with the new language.

        I'm going to go ahead and submit this to Support QA and see if it is the desired behavior or not.

        Show
        Drew Blessing added a comment - I attempted to reproduce this problem on 6.1 GA1. I am able to reproduce what you are seeing but I'm not sure if it's a bug or not. Here's what's happening - When a user opens My Account in 6.1 and changes the display language from French to English and close the overlay the actual portal page is not refreshed. You should notice that many other aspects of the page are also still in French when you close the My Account overlay. The tabs in the Look and Feel overlay are refreshed on load but the content is not. Once the page is refreshed or the user navigates to another page in the portal everything is refreshed with the new language. I'm going to go ahead and submit this to Support QA and see if it is the desired behavior or not.
        Hide
        Alex Weirig added a comment -

        Hi,

        sorry but this is not the problem. I can navigate to any another page, logout and login back again, even shut down the server and restart it, the messages in the Look'n'Feel section are still in French even though my language is set to English, so definitively a bug...

        Also, until now, I haven't found any other place that is affected by this bug. Only the messages in Look'n'Feel -> Advanced styling seem to be affected.

        Alex

        Show
        Alex Weirig added a comment - Hi, sorry but this is not the problem. I can navigate to any another page, logout and login back again, even shut down the server and restart it, the messages in the Look'n'Feel section are still in French even though my language is set to English, so definitively a bug... Also, until now, I haven't found any other place that is affected by this bug. Only the messages in Look'n'Feel -> Advanced styling seem to be affected. Alex
        Hide
        Drew Blessing added a comment -

        Thanks for replying, Alex. I have tried these same steps again and I'm afraid I am unable to reproduce the scenario you describe. As soon as I do a page refresh, Look and Feel Advanced Styling updates properly to the language set for the user. Please make sure you have a fresh environment and no other issues that are interfering with this bug. If you still experience the problem please provide me with detailed steps so that I may reproduce the issue. If I cannot reproduce the issue it cannot be fixed. Thanks!

        Show
        Drew Blessing added a comment - Thanks for replying, Alex. I have tried these same steps again and I'm afraid I am unable to reproduce the scenario you describe. As soon as I do a page refresh, Look and Feel Advanced Styling updates properly to the language set for the user. Please make sure you have a fresh environment and no other issues that are interfering with this bug. If you still experience the problem please provide me with detailed steps so that I may reproduce the issue. If I cannot reproduce the issue it cannot be fixed. Thanks!
        Hide
        Alex Weirig added a comment -

        Hi Drew,

        this is a fresh install of GA1 (Tomcat flavor) on an empty database (the install created the database). No migrated data, pure plain install. Database is MySQL.
        I removed all 7Cogs related stuff
        I set the properties in portal-ext.properties and deployed it to WEB-INF/classes
        I logged in as test/test
        I went to Control Panel -> My Account -> Display Settings and set it to English (default language is French)
        I returned to Home page
        I added a web content display portlet
        I create a sample web content
        I click on the portlet's option menu -> Look'n'Feel
        I click on Advanced styling
        I see most of the UI in English except for the message with the blueish background, the 2 links to add a CSS rule and the check box message to update "while I'm typing"

        As I said I can reproduce at will, even after server restart.

        Alex

        Show
        Alex Weirig added a comment - Hi Drew, this is a fresh install of GA1 (Tomcat flavor) on an empty database (the install created the database). No migrated data, pure plain install. Database is MySQL. I removed all 7Cogs related stuff I set the properties in portal-ext.properties and deployed it to WEB-INF/classes I logged in as test/test I went to Control Panel -> My Account -> Display Settings and set it to English (default language is French) I returned to Home page I added a web content display portlet I create a sample web content I click on the portlet's option menu -> Look'n'Feel I click on Advanced styling I see most of the UI in English except for the message with the blueish background, the 2 links to add a CSS rule and the check box message to update "while I'm typing" As I said I can reproduce at will, even after server restart. Alex
        Hide
        Drew Blessing added a comment -

        I'm going to attempt to reproduce this again. In the meantime, can you tell me what browser you're using? Can you try this with more than one browser? Can you try to reproduce this on more than one computer also? I want to eliminate browser and/or machine issues as the culprit.

        Show
        Drew Blessing added a comment - I'm going to attempt to reproduce this again. In the meantime, can you tell me what browser you're using? Can you try this with more than one browser? Can you try to reproduce this on more than one computer also? I want to eliminate browser and/or machine issues as the culprit.
        Hide
        Alex Weirig added a comment -

        Hi Drew,

        I was getting the problem in latest Safari 5. I finally ended up rebooting my machine and the problem went away.

        So I suppose it was some (cache?) problem in the browser.

        You can close the issue, thanks for your help.

        Alex

        Show
        Alex Weirig added a comment - Hi Drew, I was getting the problem in latest Safari 5. I finally ended up rebooting my machine and the problem went away. So I suppose it was some (cache?) problem in the browser. You can close the issue, thanks for your help. Alex
        Hide
        Drew Blessing added a comment -

        Thanks, Alex. I'm glad you were able to resolve the issue on your end.

        Issue may be closed per reporter's comment.

        Show
        Drew Blessing added a comment - Thanks, Alex. I'm glad you were able to resolve the issue on your end. Issue may be closed per reporter's comment.
        Hide
        Michael Saechang added a comment -

        Glad you were able to figure it out Alex and things are working.

        Closing ticket as per Drew's comment. Thank you for verifying.

        Show
        Michael Saechang added a comment - Glad you were able to figure it out Alex and things are working. Closing ticket as per Drew's comment. Thank you for verifying.

          People

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

            Dates

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

              Development

                Structure Helper Panel