r36283 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36282‎ | r36283 | r36284 >
Date:09:59, 14 June 2008
Author:rotem
Status:old
Tags:
Comment:
* A function to get all Wikimedia extensions.
* Using it to allow checking all Wikimedia extensions in checkExtensions.php.
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/phase3/maintenance/language/checkLanguage.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/checkLanguage.inc
@@ -362,6 +362,12 @@
363363 $this->extensions[] = new extensionLanguages( $group );
364364 }
365365 }
 366+ } elseif( $extension == 'wikimedia' ) {
 367+ $wikimedia = MessageGroups::getGroup( 'ext-0-wikimedia' );
 368+ foreach( $wikimedia->wmfextensions() as $extension ) {
 369+ $group = MessageGroups::getGroup( $extension );
 370+ $this->extensions[] = new extensionLanguages( $group );
 371+ }
366372 } else {
367373 $extensions = explode( ',', $extension );
368374 foreach( $extensions as $extension ) {
@@ -381,7 +387,7 @@
382388 Run this script to check the status of a specific language in extensions, or all of them.
383389 Command line settings are in form --parameter[=value], except for the first one.
384390 Parameters:
385 - * First parameter (mandatory): Extension name, multiple extension names (separated by commas) or "all" for all the extensions.
 391+ * First parameter (mandatory): Extension name, multiple extension names (separated by commas), "all" for all the extensions or "wikimedia" for extensions used by Wikimedia.
386392 * lang: Language code (default: the installation default language).
387393 * help: Show this help.
388394 * level: Show the following level (default: 2).
Index: trunk/extensions/Translate/MessageGroups.php
@@ -460,6 +460,10 @@
461461 }
462462 }
463463 }
 464+
 465+ public function wmfextensions() {
 466+ return $this->wmfextensions;
 467+ }
464468 }
465469
466470 class AllFlaggedRevsExtensionsGroup extends AllMediawikiExtensionsGroup {

Status & tagging log