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

When using custom structure/template, American English translation is overwritten if not set as default

    Details

    • Epic/Theme:
    • Fix Priority:
      5

      Description

      1.) Add a WC structure with the following schema:
      <root>
      <dynamic-element name="text" type="text" index-type="" repeatable="false"/>
      <dynamic-element name="textbox" type="text_box" index-type="" repeatable="false"/>
      <dynamic-element name="textarea" type="text_area" index-type="" repeatable="false"/>
      </root>

      2.) Add a WC template with the following script:
      <p>$text.getData()</p>
      <p>$textbox.getData()</p>
      <p>$textarea.getData()</p>

      3.) Add a WC entry using the above structure/template
      4.) Type "American English" into each field
      5.) Flag "Localizable" under each field
      6.) Publish
      7.) Edit the entry
      8.) Click [Add a Translation] >> [English (United Kingdom)]
      9.) Type "British English" into each field in the translation window
      10.) Click [Change] under default language
      11.) Select [English (United Kingdom)]
      *The entry fields should now all be populated with "British English"
      **Clicking on [Available Translations: English (United States)] at this point will show the correct translation containing fields populated with the text "American English"
      12.) Click Publish
      13.) Edit the entry again
      14.) Click [Available Translations: English (United States)] to open the translation
      *The translation will now contain fields populated with the text "British English"

      Strangely, this will not work if the languages are switched, or if the default "Basic Web Content" structure is used. I've also tested this with American English and Japanese, with the same results.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              charles.austin Charles Austin
              Reporter:
              charles.austin Charles Austin
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 45 weeks, 3 days ago

                  Packages

                  Version Package
                  --Sprint 11/12
                  6.2.0 CE M2