As part of the work to adapt Content Translation editor to translate a single section (T234323), this ticket is focused on supporting the publishing step. Publishing a section is different than publishing a new article so a number of adjustments may be required. This ticket proposes to start with simple publishing and leave for future tickets other considerations such as finding the right position, dealing with existing sections, publishing on the sandbox, etc.
Details. For the basic publishing support we'll consider the following:
- Publishing will add the translated section to the target article at the end.
- If it were trivial to reuse the approach to find a better position, it can be considered. Otherwise, a better position will be a follow-up ticket.
- Publishing setting menu will be hidden (until options to deal with section conflict and publishing to sandbox are supported).
- Once publishing is completed, the usual confirmation message will be shown. In this case, linking to the specific published section.
- Publishing must not affect (changing or overwriting) other contents in the page.
Additional considerations. The publishing process is a complex step where different systems may intersect and some may not work as expected when the content is a section (as opposed to a full article). In order to avoid scope creep we may want to identify issues, disable necessary systems for this case if adapting them requires additional effort and create follow-up tickets for the needed improvements. Some of the aspects to consider:
- Saving the translation data: during translaiton (auto-save) and when publishing (in paralell corpora)
- Quality checks: edit/abuse filters, MT limit calculations...