Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -149,9 +149,11 @@ |
150 | 150 | } |
151 | 151 | |
152 | 152 | protected function appendNamespaceAliases( $property ) { |
153 | | - global $wgNamespaceAliases; |
| 153 | + global $wgNamespaceAliases, $wgLang; |
| 154 | + $wgLang->load(); |
| 155 | + $aliases = array_merge($wgNamespaceAliases, $wgLang->namespaceAliases); |
154 | 156 | $data = array(); |
155 | | - foreach( $wgNamespaceAliases as $title => $ns ) { |
| 157 | + foreach( $aliases as $title => $ns ) { |
156 | 158 | $item = array( |
157 | 159 | 'id' => $ns |
158 | 160 | ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -542,7 +542,8 @@ |
543 | 543 | property for hidden categories |
544 | 544 | * New siprop parameter of 'extensions' to list all installed extensions |
545 | 545 | * (bug 16672) Include canonical namespace name in |
546 | | - meta=siteinfo&siprop=namespaces. |
| 546 | + meta=siteinfo&siprop=namespaces. |
| 547 | +* (bug 16726) siprop=namespacealiases should also list localized aliases |
547 | 548 | |
548 | 549 | === Languages updated in 1.14 === |
549 | 550 | |