Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -266,7 +266,7 @@ |
267 | 267 | } |
268 | 268 | |
269 | 269 | $params = $this->extractRequestParams(); |
270 | | - $langCode = isset( $params['languagecode'] ) ? $params['languagecode'] : ''; |
| 270 | + $langCode = isset( $params['inlanguagecode '] ) ? $params['inlanguagecode '] : ''; |
271 | 271 | |
272 | 272 | if( $langCode ) { |
273 | 273 | $langNames = Language::getTranslatedLanguageNames( $langCode ); |
— | — | @@ -472,7 +472,7 @@ |
473 | 473 | |
474 | 474 | public function appendLanguages( $property ) { |
475 | 475 | $params = $this->extractRequestParams(); |
476 | | - $langCode = isset( $params['languagecode'] ) ? $params['languagecode'] : ''; |
| 476 | + $langCode = isset( $params['inlanguagecode '] ) ? $params['inlanguagecode '] : ''; |
477 | 477 | |
478 | 478 | if( $langCode ) { |
479 | 479 | $langNames = Language::getTranslatedLanguageNames( $langCode ); |
— | — | @@ -579,11 +579,12 @@ |
580 | 580 | ), |
581 | 581 | 'showalldb' => false, |
582 | 582 | 'numberingroup' => false, |
583 | | - 'languagecode' => null, |
| 583 | + 'inlanguagecode ' => null, |
584 | 584 | ); |
585 | 585 | } |
586 | 586 | |
587 | 587 | public function getParamDescription() { |
| 588 | + $p = $this->getModulePrefix(); |
588 | 589 | return array( |
589 | 590 | 'prop' => array( |
590 | 591 | 'Which sysinfo properties to get:', |
— | — | @@ -593,13 +594,13 @@ |
594 | 595 | ' specialpagealiases - List of special page aliases', |
595 | 596 | ' magicwords - List of magic words and their aliases', |
596 | 597 | ' statistics - Returns site statistics', |
597 | | - ' interwikimap - Returns interwiki map (optionally filtered, (optionally localised))', |
| 598 | + " interwikimap - Returns interwiki map (optionally filtered, (optionally localised by using {$p}inlanguagecode))", |
598 | 599 | ' dbrepllag - Returns database server with the highest replication lag', |
599 | 600 | ' usergroups - Returns user groups and the associated permissions', |
600 | 601 | ' extensions - Returns extensions installed on the wiki', |
601 | 602 | ' fileextensions - Returns list of file extensions allowed to be uploaded', |
602 | 603 | ' rightsinfo - Returns wiki rights (license) information if available', |
603 | | - ' languages - Returns a list of languages MediaWiki supports (optionally localised)', |
| 604 | + " languages - Returns a list of languages MediaWiki supports (optionally localised by using {$p}inlanguagecode)", |
604 | 605 | ' skins - Returns a list of all enabled skins', |
605 | 606 | ' extensiontags - Returns a list of parser extension tags', |
606 | 607 | ' functionhooks - Returns a list of parser function hooks', |
— | — | @@ -608,7 +609,7 @@ |
609 | 610 | 'filteriw' => 'Return only local or only nonlocal entries of the interwiki map', |
610 | 611 | 'showalldb' => 'List all database servers, not just the one lagging the most', |
611 | 612 | 'numberingroup' => 'Lists the number of users in user groups', |
612 | | - 'languagecode' => 'Language code for localised language names (best effort, use CLDR extension)', |
| 613 | + 'inlanguagecode ' => 'Language code for localised language names (best effort, use CLDR extension)', |
613 | 614 | ); |
614 | 615 | } |
615 | 616 | |