Last modified: 2014-04-15 06:22:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33311, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31311 - Add configuration to use a single category per language
Add configuration to use a single category per language
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
Babel (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-02 17:05 UTC by Nemo
Modified: 2014-04-15 06:22 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2011-10-02 17:05:49 UTC
Although the extension takes care of the creation of them, some might prefer to have a single category per language rather than a bunch of categories which clutter the wiki and are hard to navigate.
In this case, users should be sorted by reversed language level so that native speakers are listed first and so on, as in Meta (more ideas on [[m:Template talk:User language category]]).
Comment 1 Jesse (Pathoschild) 2011-10-02 20:45:20 UTC
If we could set the categories through a MediaWiki message (like "[[Category:User $1-$2|{{PAGENAME}}]]"), they could easily be customized for whatever system each community desires.
Comment 2 Nemo 2011-10-02 21:16:23 UTC
(In reply to comment #1)
> If we could set the categories through a MediaWiki message (like
> "[[Category:User $1-$2|{{PAGENAME}}]]"), they could easily be customized for
> whatever system each community desires.

But this creates problems with autocreation and is WONTFIX'ed by bug 31074 comment 2. Is such a flexibility really needed?
Comment 3 Jesse (Pathoschild) 2011-10-10 01:36:28 UTC
(In reply to comment #2)
> But this creates problems with autocreation and is WONTFIX'ed by bug 31074
> comment 2. Is such a flexibility really needed?

It's preferred: Meta has an existing category structure which works well for the translation community. Making the category format configurable is of fairly generic use, instead of hardcoding Meta's format.

Could an equivalent message be put into LocalSettings? Something like $wgBabelCategoryNameFormat (default null?) would provide the same flexibility, while still ensuring that only sysadmins can trigger the autocreation.

Alternatively, don't trigger an autocreation when the MediaWiki: page changes.
Comment 4 Nemo 2011-10-10 07:31:27 UTC
(In reply to comment #3)
> It's preferred: Meta has an existing category structure which works well for
> the translation community. Making the category format configurable is of fairly
> generic use, instead of hardcoding Meta's format.

I'm such a Meta fan that I assume few wikis can have invented a better system. :-p But seriously, how many category systems can one possibly invent for such levels? Either all levels are in one category or each level has it's own category, I don't think one would want to put odd levels in one category and even ones in another, and so on.

> Could an equivalent message be put into LocalSettings? Something like
> $wgBabelCategoryNameFormat (default null?) would provide the same flexibility,
> while still ensuring that only sysadmins can trigger the autocreation.

Yes, this seems a solution. I'd say to the developers: just do what's easier for you.
Comment 5 Robert Leverington 2011-10-10 08:03:09 UTC
$wgBabelCategoryNames = array(
'1' => false,
'2' => false,
'3' => false,
'4' => false,
'5' => false',
'N' => false
);

$wgBabelMainCategory = 'User %code%';

Job done.
Comment 6 Nemo 2011-10-10 08:11:52 UTC
Did you read comment 0? Even disregarding the fact that with the configuration the result on Meta is that no category at all is used (https://meta.wikimedia.org/?oldid=2918169 ), the reverse order is needed if one actually wants to use a single category.
Comment 7 Siebrand Mazeland 2012-06-12 12:36:09 UTC
Update assignee and CCs

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links