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. |