Page MenuHomePhabricator

Allow enforcing empty priority languages on translatable pages
Closed, ResolvedPublic2 Estimated Story PointsFeature

Description

Feature summary

Make it possible to set an empty list of priority languages and still enable enforcing priority languages (checking Prevent translations to languages other than the priority languages) on translatable pages in order to completely disable translating the given page. The same thing is being done for message bundles in T350652.

Use cases

Pages that shouldn’t be translated yet or anymore, for example

  • Drafts that are still being polished but already have translation markup (probably added as part of the polishing)
  • Announcements, press releases, mass messages etc. that have been published/delivered and should be considered frozen
  • Pages that have been emptied (e.g. after being transferred to another wiki)

Benefits

Currently a similar effect can be achieved by setting the only priority language to the source language. However, this is not intuitive for the translation admin and confusing for the translator (the error message says A translation administrator decided that this page can only be translated to English – but English is the source language). Implementing for translatable pages what has already been implemented for message bundles would result in a cleaner and more uniform solution.

Event Timeline

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

[mediawiki/extensions/Translate@master] TranslatablePage: Prevent translation based on priority language

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

abi_ changed the task status from Open to In Progress.Mar 22 2024, 10:36 AM
abi_ claimed this task.
abi_ set the point value for this task to 2.

Change #1013516 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] TranslatablePage: Prevent translation based on priority language

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

Tested on translatewiki.net:

image.png (622×1 px, 65 KB)

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

[mediawiki/extensions/Translate@master] MessageGroupMetadata::isExcluded: Handle missing prioritylangs

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

Change #1025914 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] MessageGroupMetadata::isExcluded: Handle missing prioritylangs

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