Currently Section translation publishes content at the very end of the article. This is relevant for both the publish step (T252542) and the "Compare the contents before translating" step (T241589), where a placeholder is shown.
Making the initial placement to be more likely to be correct is important since rearranging the section order in the final article is not an easy task on mobile (unlike desktop there is no option to edit the whole contents of the article).
This ticket proposes to make the placement of the translated section smarter. There are two strategies that we can apply (and maybe combine):
- Identify "closing sections" that normally go at the end (such as "External links", "References" or "See also") after the rest of "content sections". In this way, when the user translates a "content section" it would be added after other "content sections" but before these "closing sections".
- Showing a section it in a consistent position with equivalent sections from the source article. The source article may follow already a logical sequence that we may want to keep.
As an example, note how [[ https://bn.wikipedia.org/w/index.php?title=%E0%A6%86%E0%A6%A6%E0%A7%8D%E0%A6%A6%E0%A6%BF%E0%A6%B8_%E0%A6%86%E0%A6%AC%E0%A6%BE%E0%A6%AC%E0%A6%BE&curid=94341&diff=4910200&oldid=4907958 | this edit ]] is placed after references and templates that are expected to be at the very end of the article: