https://bugzilla.wikimedia.org/show_bug.cgi?id=69310

--- Comment #5 from Pratik Lahoti <[email protected]> ---
As a user of Special:PageMigration, a minimal requirement from my side would be
that the imported translation units are well separated from each other. And
even if there is no 100% correct alignment, it should be easy for me to align
them using the add, swap and delete features.

As per https://bugzilla.wikimedia.org/show_bug.cgi?id=66162, the translation
units are adjusted by adding empty units or collapsing multiple units into one
so that the headers are aligned on h2 level.

For examples like https://www.mediawiki.org/wiki/Manual:LocalSettings.php vs
https://www.mediawiki.org/w/index.php?title=Manual:LocalSettings.php/ru&oldid=611990
, in which the number of h2 headers and the h3 headers under them don't match
(due to newer sections getting added or change in layout of source page), just
aligning on h2 level would collapse all the previous sections into one huge
chunk. For the example quoted above, ==Security== would get aligned with
==Настройки БД== as per the h2 alignment, collapsing all the h3 headers (1.1 to
1.13) in a single unit.

As a user, it would be tedious to do the splitting manually and create
corresponding units. The Special page would indeed be useless for this
particular case. So, we could avail this automation provided by
https://gerrit.wikimedia.org/r/#/c/136334/ so that headers and their text are
split and new units would be available from the start itself. Given that this
Special page goes hand in hand with Special:PagePreparation, and
PagePreparation takes care of having headers as separate translation units,
this should require less adjustment as it would only be a matter of moving all
the units together.

As per the current code, this splitting is done before alignment. But aligning
results into collapsing of units for cases like above, which defeats the
purpose of splitting itself. For cases in which there are no headers in the
collapsed text, doing this before or after has the same effect. But, by doing
this later, we cover cases in which there were h3+ headers that got collapsed
into one and separate them out.

So, to summarize and reproduce this bug:

1. Go to Special:PageMigration on your wiki
2. Enter the input fields such that the page would have h3+ headers and unequal
number of h2 headers which should result into collapsing of units. You can
easily find this observing the TOC for both the pages.
3. Try adjusting the units and see how painful it would be if there were many
h3+ headers that got collapsed into one.

Expected (or rather desired):

1. The units containing headers should be separated so that adjusting takes
less efforts from user's perspective.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to