Page MenuHomePhabricator

Babel should not populate categories for special language codes
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:

It populates the corresponding category (https://en.wikipedia.org/wiki/Category:User_mul).

What should have happened instead?:

Since this category doesn't actually represent anything useful, it shouldn't exist (per established consensus, categories containing users should only exist if they serve a legitimate purpose, and this one doesn't)

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Event Timeline

Change 881944 had a related patch set uploaded (by Pppery; author: Pppery):

[mediawiki/extensions/Babel@master] Add capability to override babel categories on wiki

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

Change 881944 merged by jenkins-bot:

[mediawiki/extensions/Babel@master] Add capability to override babel categories on wiki

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

Not technically resolved, but as the author of this ticket, MediaWiki:Babel-category-override is good enough for me.

Not technically resolved, but as the author of this ticket, MediaWiki:Babel-category-override is good enough for me.

Can you please explain how your patch helps in your task?

The specific complaint that lead me to file this task was https://en.wikipedia.org/wiki/Wikipedia:Categories_for_discussion/Log/2023_February_23#User_mul, where someone else requested that it should be possible for {{#babel:mul}} not to populate that category in order to allow it to be deleted. My original idea for how to do that was to blacklist special language codes entirely, but then I decided that that and other wiki-specific things could just be handled by MediaWiki:Babel-category-override if a wiki wants them.

The specific complaint that lead me to file this task was https://en.wikipedia.org/wiki/Wikipedia:Categories_for_discussion/Log/2023_February_23#User_mul, where someone else requested that it should be possible for {{#babel:mul}} not to populate that category in order to allow it to be deleted. My original idea for how to do that was to blacklist special language codes entirely, but then I decided that that and other wiki-specific things could just be handled by MediaWiki:Babel-category-override if a wiki wants them.

Can you explain how it works please? :) How I can use Babel-category-override for fix “mul” categories?

{{#switch:$1|User mul|User mul-N=|#default=$1}}. Or whatever other names of categories you don't want to populate.

{{#switch:$1|User mul|User mul-N=|#default=$1}}. Or whatever other names of categories you don't want to populate.

What is the first parameter - $1? It's just hard to understand :(

$1 is the name of the category that would have been generated if the message didn't exist. See https://www.mediawiki.org/wiki/Extension:Babel#System_messages where I added some documentation.

$1 is the name of the category that would have been generated if the message didn't exist. See https://www.mediawiki.org/wiki/Extension:Babel#System_messages where I added some documentation.

thanks for the explanation! :)