Disable the "Allow translation of page title" option in Extension:Translate on wishlist entity pages
Closed, ResolvedPublic3 Estimated Story Points

Description

In the CommunityRequests extension, we store the translations of wishes and focus areas in our own database tables. Hence, we don't need Extension:Translate's feature to change the page title.

To ease burden on translators, we should make sure the "Allow translation of page title" option shown in the Special:PageTranslation interface is always disbaled on wish and focus area pages.

How we do this is to be determined. Perhaps Extension:Translate provides a hook for doing something like this. Or, in the very worst case, we use some hook to inject our own JS into Special:PageTranslation and uncheck and disable the checkbox that way (but that feels sloppy).

Acceptance criteria

  • When going to mark a wish or FA for translation at Special:PageTranslation, the "Allow translation of page title" option should be unchecked and disabled

Event Timeline

MusikAnimal triaged this task as Medium priority.

Is this P0? Seems like it might be ...

Is this P0? Seems like it might be ...

I put it as medium priority. We don't strictly need this for the first deployment, but it would be awfully nice to translators to not waste their time on translations that will never be seen.

I investigated some and was not able to find a simple solution. I think we may have to go with the "inject our own JS" solution.

MusikAnimal changed the task status from Open to In Progress.Aug 26 2025, 7:39 AM
MusikAnimal claimed this task.

I found T305240 & https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Translate/+/982781

Perhaps we could add a Hook to extension Translate? I'm not sure how the "inject our own JS" would work here

Change #1192324 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/Translate@master] PageTranslation: add hook allowing extensions to control translatetitle

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

Change #1192325 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CommunityRequests@master] CommunityRequestHooks: disable 'translatetitle' option in Ext:Translate

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

MusikAnimal changed the task status from Open to In Progress.Sep 30 2025, 2:59 PM
MusikAnimal claimed this task.
MusikAnimal set the point value for this task to 3.Sep 30 2025, 8:12 PM

Change #1192324 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] TranslatablePageMarker: allow extensions to control translatetitle

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

Change #1199249 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] TranslatablePageMarker: allow hook to provide reason for title translation state

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

Nikerabbit subscribed.

Tasks cannot be on two sprint boards (incompatible estimates etc.). Can only do that if split to separate tasks.

Change #1192325 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] CommunityRequestHooks: disable 'translatetitle' option in Ext:Translate

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