Page MenuHomePhabricator

API: siprop=namespacealiases should also show aliases of $wgContLang
Closed, ResolvedPublic

Description

See my comment on bug16672 (https://bugzilla.wikimedia.org/show_bug.cgi?id=16672#c3). For example the german wikipedia has defined 'Bild' as an alias for 'File' in MessagesDe.php, but it is not shown on siprop=namespacealiases.


Version: unspecified
Severity: normal
URL: http://de.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=namespacealiases

Details

Reference
bz16726

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:26 PM
bzimport set Reference to bz16726.

Fixed in r44860, but uses $wgLang (site language) rather than $wgContLang (user language).

(In reply to comment #1)

Fixed in r44860, but uses $wgLang (site language) rather than $wgContLang (user
language).

Are you sure? I always thought that $wgContLang = Content Language and $wgLang = User Language.
If this is wrong, at least the docs should be fixed in docs/globals.txt.

(In reply to comment #2)

(In reply to comment #1)

Fixed in r44860, but uses $wgLang (site language) rather than $wgContLang (user
language).

Are you sure? I always thought that $wgContLang = Content Language and $wgLang

User Language.

If this is wrong, at least the docs should be fixed in docs/globals.txt.

You seem to be right, at least according to [[mw:Manual:$wgContLang]]. Fixed in r44862.