Page MenuHomePhabricator

The title looks duplicated in Special:AutomaticTranslation
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Assigned To
Authored By
• Wangombe
Aug 20 2025, 9:28 AM
Referenced Files
F66740715: image.png
Oct 10 2025, 4:20 AM
F66712554: image.png
Sep 30 2025, 5:37 AM
F66023472: image.png
Sep 15 2025, 1:39 PM
F65999215: image.png
Sep 10 2025, 6:26 AM
F65999217: image.png
Sep 10 2025, 6:26 AM
F65798136: image.png
Aug 20 2025, 9:28 AM

Description

Steps to replicate the issue (include links if applicable):

  • Go to Special:AutomaticTranslations.
  • Search for any article .e.g pikes peak.
  • See the title of the article in source and target language titles.

What happens?:
The title looks duplicated as shown in the screenshot. This seems to be the case because some languages may not have a unique set of characters/words across them. e.g. Swahili and English source and target titles in 'Pikes Peak' are the same.

image.png (1,589×1,114 px, 388 KB)

What should have happened instead?:

  • Title should not look duplicated. Ideally the target title should have a differentiating factor to it. Be it the size of text, color/shade of text.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

• Wangombe changed the task status from Open to In Progress.Sep 2 2025, 10:08 AM
• Wangombe claimed this task.
• Wangombe moved this task from Backlog to In Progress on the LPL Essential (2025 Jul-Oct) board.

Change #1184468 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/ContentTranslation@master] Special:AutomaticTranslation - differentiate source & target titles

https://gerrit.wikimedia.org/r/1184468

abi_ triaged this task as Medium priority.Sep 8 2025, 3:37 AM

The initial proposal was to use a <h2> tag for the source title as a way to differentiate source and target titles on Special:AutomaticTranslation in cases where the titles are the same (e.g., names of countries, people, cities). Ideally, we should use a consistent separator in all cases and adjusting spacing so the target title and following content are more visually associated. Consensus is to go with a separator consistently.

image.png (2,284×1,810 px, 399 KB)

Another option would be to go with conditional display of language codes. This has additional technical overhead and nowhere else is the language code shown on the UI.

image.png (2,284×1,810 px, 369 KB)

The former is the preferred option.

Nikerabbit set the point value for this task to 2.Sep 11 2025, 12:22 PM

I can't tell which is better, sharing here for this case

image.png (1,878×2,054 px, 456 KB)

I can't tell which is better, sharing here for this case

image.png (1,878×2,054 px, 456 KB)

This issue is documented here T403574. Currently WIP

image.png (1,384×756 px, 206 KB)
a border bottom has been added in the latest patch to help differentiate the two titles.

Change #1184468 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] AX: ConfirmTopic: Differentiate between source & target titles

https://gerrit.wikimedia.org/r/1184468

abi_ moved this task from Pending Deployment to Done on the LPL Essential (2025 Jul-Oct) board.
abi_ subscribed.

image.png (1,573×1,003 px, 241 KB)

Works as per design.