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

Translated webcontent fields with a invalid language are copied to default "en_US" translation in case you edit it

    Details

      Description

      Translated webcontent fields with a invalid language are copied to default "en_US" translation in case you edit it.

      That can be caused if you remove a language from enabled locales, or you upgrade from a old Liferay version that contains language-id="false" as a language.

      Steps to reproduce

      1. Create a basic webcontent
      2. Add title and content in Spanish (es_ES) and Dutch (nl_NL) use title_es, content_es, title_nl and content_nl
      3. Go to instance settings => language configuration
      4. Remove Dutch (nl_NL)
      5. Shutdown Liferay
      6. Add following key in portal-ext.properties
        locales=ca_ES,zh_CN,en_US,fi_FI,fr_FR,de_DE,iw_IL,ja_JP,pt_BR,es_ES
      7. Start Liferay
      8. Edit again the basic webcontent created in first step
        • Expected behavior: only Spanish translation is available in webcontent
        • Wrong behavior: Spanish and English translation are available in webcontent. English translation is a copy of the original Dutch translation

        Attachments

          Activity

            People

            Assignee:
            lu.liu Lu Liu
            Reporter:
            jorge.diaz Jorge Diaz
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 11 weeks, 6 days ago

                Packages

                Version Package
                7.1.10 DXP FP13
                7.1.X
                7.2.10 DXP FP1
                7.2.1 CE GA2
                7.2.X
                7.3.10 DXP GA1
                Master