Page MenuHomePhabricator

Automatic build out and support of /Translations category within translated categories
Open, MediumPublic

Description

Feature summary:

On Meta and Governance Wiki, a "best practice" of adding /Translations category to translated categories has been adopted. As a result, it would be helpful if this best practice could be integrated into the extension itself and automated by FuzzyBot (presumably).

Essentially this would require:

  1. Creation of /Translations subcategory when a category is set up for translation.
  2. Ideally replacing current usage of {{languages}} where exists and possible to do so (T361629)
  3. Addition/removal of placement within other categories when changed in root category (example: Root category is added to a newly created category or moved from one category to another)
Use cases:

Example of categories with this setup:

Benefits:
  • Reduced workload for creators/maintainers of translated categories
  • Less long-term accidental errors (primarily updates to /Translations category not being made to align with changes to root category)
Notes:
  • I do not think ALL wikis that use Translate utilize this setup (mediawiki.org for example) - so it should probably be optionally enabled/disabled via LocalSettings.php (or some related settings system).
Related tasks:

Event Timeline

"On wikis with Translate extension installed, a "best practice" of adding /Translations category" is not true. Only Meta AFAIK does this. MediaWiki.org doesn't use a /Translations category at all, and I don't think one is needed.

"On wikis with Translate extension installed, a "best practice" of adding /Translations category" is not true. Only Meta AFAIK does this. MediaWiki.org doesn't use a /Translations category at all, and I don't think one is needed.

I have updated the ticket to note it is used on multiple (not just Meta-Wiki, Governance Wiki uses them as well, and I have not checked all other uses of the extension) but not all wikis. Also note it was requested that this be set per-wiki - so should not impact MediaWiki.org or Commons best practices.

Unless there is community consensus to stop this practice on Meta-Wiki, that leaves approximately 900 instances on just that wiki where this feature would be helpful. I do not feel strongly either way, and willing to update Governance Wiki's practices to match and close this request. However, I am not sure this ticket is a place where we can definitely end the practice without at least consulting Meta-Wiki community first, and absent that discussion, would seem odd to assume the practice is going to end and negate advantage of this feature request.

Tacsipacsi subscribed.

I have not checked all other uses of the extension

I’ve checked them:

WikiTranslatable categories/Translations categories
meta.wikimedia.org11131007
foundation.wikimedia.org204126
outreach.wikimedia.org1513
wikimania.wikimedia.org102
incubator.wikimedia.org42
commons.wikimedia.org92

(all other wikis have zero /Translations categories)

So while it’s almost omnipresent on Meta and used a lot on Governance Wiki, other wikis that have such categories have too few translatable categories to really have established practices (including Commons: over 2000 translatable pages, but only 9 of them are categories!). MediaWiki.org, another wiki with many (almost 1500) translatable categories, has zero /Translations ones.

tldr: Public wikis that use this setup: Foundation GovWiki, Meta-Wiki, Incubator Wiki, Outreach Wiki

Here is list of the 46 wikis with Translate extension enabled - doing a quick spot check on usage (as best I can tell given languages and inconsistent usage of extension and/or categories on some wikis) and marking true/false to get a sense of how common (if at all) this practice is:

'advisorswiki' => Private
'amwikimedia' => false
'azwikimedia' => false
'bewikimedia' => false
'betawikiversity' => false
'brwikimedia' => false
'bdwikimedia' => false
'cawikimedia' => false
'collabwiki' => false
'commonswiki' => false
'testcommonswiki' => false
'foundationwiki' => true
'frwiktionary' => false
'gewikimedia' => false
'grwikimedia' => false
'hiwikimedia' => false
'idwikimedia' => false
'incubatorwiki' => true
'legalteamwiki' => Private
'maiwikimedia' => false
'mediawikiwiki' => false
'metawiki' => true
'nowikimedia' => false
'otrs_wikiwiki' => Private
'outreachwiki' => true
'plwikimedia' => false
'ptwikisource' => false
'punjabiwikimedia' => false
'ruwikimedia' => false
'sourceswiki' => false
'specieswiki' => false
'sewikimedia' => false
'testwiki' => false
'uawikimedia' => false
'vewikimedia' => false
'wbwikimedia' => false
'wikidata' => false
'wikifunctionswiki' => false
'wikimania2012wiki' => inactive
'wikimania2013wiki' => inactive
'wikimania2014wiki' => inactive
'wikimania2015wiki' => inactive
'wikimania2016wiki' => inactive
'wikimania2017wiki' => inactive
'wikimania2018wiki' => inactive
'wikimaniawiki' => false

I have not checked all other uses of the extension

I’ve checked them:

WikiTranslatable categories/Translations categories
meta.wikimedia.org11131007
foundation.wikimedia.org204126
outreach.wikimedia.org1513
wikimania.wikimedia.org102
incubator.wikimedia.org42
commons.wikimedia.org92

(all other wikis have zero /Translations categories)

So while it’s almost omnipresent on Meta and used a lot on Governance Wiki, other wikis that have such categories have too few translatable categories to really have established practices (including Commons: over 2000 translatable pages, but only 9 of them are categories!). MediaWiki.org, another wiki with many (almost 1500) translatable categories, has zero /Translations ones.

Well that was FAR more effective than my check - lol. Thank you!

So a couple of lingering questions:

  1. Is there an advantage to this setup such that it is worth supporting code-wise?
  2. If not, should we go to Meta-Wiki to prompt a discussion on ending this practice? (@Pppery: I am willing to do so or work with you on doing so if you would like)

I don't particularly care whether Meta does it. Just wanted to point out that it wasn't a universal trend.

I don't particularly care whether Meta does it. Just wanted to point out that it wasn't a universal trend.

Fair enough - yeah I took that into consideration with requesting that it be wiki-specific - so should not be an issue for MediaWiki.org.