Page MenuHomePhabricator

Special:AutomaticTranslations - Title not shown for article
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

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

What happens?:

  • Article title seems to be missing.

What should have happened instead?:
Article title should always be shown. In the event that the title is missing in the target language, we should revert to using the source language title.

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

image.png (1×1 px, 279 KB)

Event Timeline

abi_ changed the task status from Open to In Progress.Sep 4 2025, 9:44 AM
abi_ assigned this task to Wangombe.
abi_ triaged this task as Medium priority.
abi_ set the point value for this task to 2.
abi_ moved this task from Backlog to In Progress on the LPL Essential (2025 Jul-Oct) board.

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

[mediawiki/extensions/ContentTranslation@master] AX: Default to source title if cxserver token not available

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

This issue occurs due to a missing cxserver token on this endpoint --> https://cxserver.wikimedia.org/v2/?doc#/Suggestions/get_v2_suggest_title__title___from___to_ perhaps due to the language pair in this situation which is pt-en. Defaulting the the source title would be an ideal option as a fallback.

We now show the fallback title (source title) and language name the title is in.

image.png (886×990 px, 186 KB)

Change #1188685 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] AX: Default to source title if cxserver token not available

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

https://cxserver.wikimedia.org/v2/?doc - some of the endpoints are not available outside the ContentTranslation. Special:AutomaticTranslations doesn't operate within this scope. As much as some title fetching works, it only does because the default MT in the language pair selected doesn't require and authorization token to begin with. I suspect this is to protect API limits on services like Google translate.

Here is a screenshot of the deployed patch. https://test.wikipedia.org/wiki/Special:AutomaticTranslation?page=Jo%C3%A3o+Ribeiro+%28pol%C3%ADtico+brasileiro%29&from=pt&to=en&step=translation

We opted to show the source title along with the language name the title is in.

image.png (983×1 px, 253 KB)

Can we force MinT provider the same way we do for the content? Then it would at least be internally consistent.

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

[mediawiki/services/cxserver@master] CXServer suggest/title endpoint: Default to MinT

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

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

[mediawiki/extensions/ContentTranslation@master] AX: Specify default MT provider for /v2/suggest/title/ endpoint

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

Change #1190972 merged by jenkins-bot:

[mediawiki/services/cxserver@master] CXServer suggest/title/ endpoint: optionally specify MT provider

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

Change #1192153 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] AX: Specify default MT provider for /v2/suggest/title/ endpoint

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

Change #1193821 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/deployment-charts@master] cxserver: staging: Update to 2025-10-06-084053-production

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

Change #1193821 merged by jenkins-bot:

[operations/deployment-charts@master] cxserver: staging: Update to 2025-10-06-084053-production

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

Change #1193989 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/deployment-charts@master] cxserver: Update to 2025-10-06-084053-production

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

Change #1193989 merged by jenkins-bot:

[operations/deployment-charts@master] cxserver: Update to 2025-10-06-084053-production

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

Mentioned in SAL (#wikimedia-operations) [2025-10-07T06:44:04Z] <kart_> Updated cxserver to 2025-10-06-084053-production (T394982, T403574)

abi_ subscribed.

Needs MediaWiki train deployment too.

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

image.png (1×951 px, 260 KB)

I see calls to https://cxserver.wikimedia.org/v2/suggest/title/ with MinT as a parameter. Additionally the title is rendered properly.