Last modified: 2011-04-14 15:13:05 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 T19123, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17123 - Special page aliases should be overridable
Special page aliases should be overridable
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.14.x
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-22 23:51 UTC by Danny B.
Modified: 2011-04-14 15:13 UTC (History)
2 users (show)

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


Attachments

Description Danny B. 2009-01-22 23:51:20 UTC
Special page aliases should be overridable, so they could match the customized names.

Example:

Wantedpages and WantedPages is eg. the default set shipped with MediaWiki.

Some sites would rather call it WantedArticles, WantedTopics, WantedEntries etc...

Applies to lots of special page names.

However the alias set should preserve the default set, thus old set should be appended (but not vice versa to allow the override) to the new set.
Comment 1 Niklas Laxström 2009-02-21 09:31:10 UTC
This is possible with LanguageGetSpecialPageAliases hook.
Comment 2 Danny B. 2009-02-23 10:55:06 UTC
Playing with hook in config file isn't that straight and comfortable like if there was simple variable like for other stuff, eg. namespace aliases etc.

I can imagine something like:

$wgSpecialPagesAliases = array(
  "Wantedpages" => array( "Wanted articles", "WantedArticles", "Wantedarticles", "Wantedpages", "WantedPages")
  )

or to avoid the necessity of repeated writing of the default set shipped with MediaWiki something like:

$wgSpecialPagesAliasesOverrides = array(
  "Wantedpages" => array( "Wanted articles", "WantedArticles", "Wantedarticles")
  )

which would actually prepend this defined set to the default one.

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


Navigation
Links