Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22308

The inplace editor locks the original translation when creating a new translation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 16.6.0-rc-1, 16.4.1, 15.10.12
    • 16.4.0, 15.10.11
    • Edit
    • None
    • Unknown
    • N/A
    • N/A

    Description

      When editing a page inplace, for which there's no translation in the current UI locale, the inplace editor allows you to create the missing translation. There are actually two ways to do this:

      • you can either click directly on the Translate button from view mode
      • or click on Edit to start editing the original translation and then click on Translate to switch to creating the missing translation

      In the first case, the inplace editor locks the original translation, instead of locking the translation that is going to be created (matching the current UI locale).

      In the second case the inplace editor doesn't release the lock from the original translation once we switch to the new translation (matching the current UI locale). Moreover, since the edit mode is not "reloaded" (without reloading the page of course), the content editor still things it is editing the original translation. This has for instance a serious impact on the realtime editor which uses different sessions for each document translation, so if we don't recreate the editor when the document locale changes then we remain in the realtime session associated with the original translation.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: