r71384 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71383‎ | r71384 | r71385 >
Date:23:17, 20 August 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Documentation update.
Modified paths:
  • /trunk/extensions/Translate/groups/ComplexMessages.php (modified) (history)
  • /trunk/extensions/Translate/groups/MediaWikiExtensions.php (modified) (history)
  • /trunk/extensions/Translate/groups/OpenLayers.php (modified) (history)
  • /trunk/extensions/Translate/groups/Voctrain.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/ComplexMessages.php
@@ -1,5 +1,16 @@
22 <?php
 3+/**
 4+ * Classes for complex messages (MediaWiki special page aliases, namespace names, magic words).
 5+ *
 6+ * @file
 7+ * @author Niklas Laxstr�m
 8+ * @copyright Copyright � 2008-2010, Niklas Laxstr�m
 9+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
 10+ */
311
 12+/**
 13+ * @todo Needs documentation.
 14+ */
415 abstract class ComplexMessages {
516 const MSG = 'translate-magic-cm-';
617
@@ -510,6 +521,9 @@
511522 }
512523 }
513524
 525+/**
 526+ * @todo Needs documentation.
 527+ */
514528 class SpecialPageAliasesCM extends ComplexMessages {
515529 protected $id = SpecialMagic::MODULE_SPECIAL;
516530 protected $databaseMsg = 'sp-translate-data-SpecialPageAliases';
@@ -587,6 +601,9 @@
588602 }
589603 }
590604
 605+/**
 606+ * @todo Needs documentation.
 607+ */
591608 class MagicWordsCM extends ComplexMessages {
592609 protected $id = SpecialMagic::MODULE_MAGIC;
593610 protected $firstMagic = true;
@@ -635,6 +652,9 @@
636653 }
637654 }
638655
 656+/**
 657+ * @todo Needs documentation.
 658+ */
639659 class NamespaceCM extends ComplexMessages {
640660 protected $id = SpecialMagic::MODULE_NAMESPACE;
641661 protected $elementsInArray = false;
Index: trunk/extensions/Translate/groups/OpenLayers.php
@@ -1,13 +1,16 @@
22 <?php
3 -
43 /**
54 * Support for OpenLayers.
65 *
 6+ * @file
77 * @author Robert Leverington <robert@rhl.me.uk>
88 * @copyright Copyright © 2009 Robert Leverington
99 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
1010 */
1111
 12+/**
 13+ * @deprecated Use new style class OpenLayersFFS.
 14+ */
1215 class OpenLayersMessageGroup extends MessageGroupOld {
1316 protected $label = 'OpenLayers (slippy maps)';
1417 protected $id = 'out-openlayers';
@@ -49,4 +52,4 @@
5053 public function getWriter() {
5154 return new OpenLayersFormatWriter( $this );
5255 }
53 -}
\ No newline at end of file
 56+}
Index: trunk/extensions/Translate/groups/MediaWikiExtensions.php
@@ -1,5 +1,16 @@
22 <?php
 3+/**
 4+ * Classes for MediaWiki extension translation.
 5+ *
 6+ * @file
 7+ * @author Niklas Laxstr�m
 8+ * @copyright Copyright � 2008-2010, Niklas Laxstr�m
 9+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
 10+ */
311
 12+/**
 13+ * @todo Needs documentation.
 14+ */
415 class PremadeMediawikiExtensionGroups {
516 protected $groups;
617 protected $definitionFile = null;
@@ -221,6 +232,12 @@
222233 }
223234 }
224235
 236+/**
 237+ * Adds a message group containing all supported MediaWiki extensions in the
 238+ * Wikimedia Subversion repository.
 239+ *
 240+ * @todo Needs documentation.
 241+ */
225242 class AllMediawikiExtensionsGroup extends MessageGroupOld {
226243 protected $label = 'MediaWiki extensions';
227244 protected $id = 'ext-0-all';
@@ -304,6 +321,12 @@
305322 }
306323 }
307324
 325+/**
 326+ * Adds a message group containing all supported MediaWiki extensions used by
 327+ * wikiHow.
 328+ *
 329+ * @todo Needs documentation.
 330+ */
308331 class AllWikihowExtensionsGroup extends AllMediawikiExtensionsGroup {
309332 protected $label = 'Extensions used by Wikihow'; // currently using 1.12.0
310333 protected $id = 'ext-0-wikihow';
@@ -347,6 +370,12 @@
348371 }
349372 }
350373
 374+/**
 375+ * Adds a message group containing all supported MediaWiki extensions used by
 376+ * Wikimedia.
 377+ *
 378+ * @todo Needs documentation.
 379+ */
351380 class AllWikimediaExtensionsGroup extends AllMediawikiExtensionsGroup {
352381 protected $label = 'Extensions used by Wikimedia';
353382 protected $id = 'ext-0-wikimedia';
@@ -478,6 +507,12 @@
479508 }
480509 }
481510
 511+/**
 512+ * Adds a message group containing all supported MediaWiki extensions used by
 513+ * WikiTravel.
 514+ *
 515+ * @todo Needs documentation.
 516+ */
482517 class AllWikitravelExtensionsGroup extends AllMediawikiExtensionsGroup {
483518 protected $label = 'Extensions used by Wikitravel'; // currently using 1.11.2
484519 protected $id = 'ext-0-wikitravel';
@@ -511,6 +546,12 @@
512547 }
513548 }
514549
 550+/**
 551+ * Adds a message group containing all components of the MediaWiki extension
 552+ * Collection.
 553+ *
 554+ * @todo Needs documentation.
 555+ */
515556 class AllCollectionExtensionsGroup extends AllMediawikiExtensionsGroup {
516557 protected $label = 'Collection';
517558 protected $id = 'ext-collection-0-all';
@@ -535,6 +576,12 @@
536577 }
537578 }
538579
 580+/**
 581+ * Adds a message group containing all components of the MediaWiki extension
 582+ * FlaggedRevs.
 583+ *
 584+ * @todo Needs documentation.
 585+ */
539586 class AllFlaggedRevsExtensionsGroup extends AllMediawikiExtensionsGroup {
540587 protected $label = 'FlaggedRevs';
541588 protected $id = 'ext-flaggedrevs-0-all';
@@ -568,6 +615,12 @@
569616 }
570617 }
571618
 619+/**
 620+ * Adds a message group containing all components of the MediaWiki extension
 621+ * ReaderFeedback.
 622+ *
 623+ * @todo Needs documentation.
 624+ */
572625 class AllReaderFeedbackExtensionsGroup extends AllMediawikiExtensionsGroup {
573626 protected $label = 'ReaderFeedback';
574627 protected $id = 'ext-readerfeedback-0-all';
@@ -593,6 +646,12 @@
594647 }
595648 }
596649
 650+/**
 651+ * Adds a message group containing all components of the MediaWiki extension
 652+ * SocialProfile.
 653+ *
 654+ * @todo Needs documentation.
 655+ */
597656 class AllSocialProfileExtensionsGroup extends AllMediawikiExtensionsGroup {
598657 protected $label = 'Social Profile';
599658 protected $id = 'ext-socialprofile-0-all';
@@ -623,6 +682,12 @@
624683 }
625684 }
626685
 686+/**
 687+ * Adds a message group containing all components of the MediaWiki extension
 688+ * Translate.
 689+ *
 690+ * @todo Needs documentation.
 691+ */
627692 class AllTranslateExtensionsGroup extends AllMediawikiExtensionsGroup {
628693 protected $label = 'Translate';
629694 protected $id = 'ext-translate-0-all';
@@ -648,6 +713,12 @@
649714 }
650715 }
651716
 717+/**
 718+ * Adds a message group containing all components of the MediaWiki extension
 719+ * Uniwiki.
 720+ *
 721+ * @todo Needs documentation.
 722+ */
652723 class AllUniwikiExtensionsGroup extends AllMediawikiExtensionsGroup {
653724 protected $label = 'Uniwiki';
654725 protected $id = 'ext-uniwiki-0-all';
@@ -682,6 +753,12 @@
683754 }
684755 }
685756
 757+/**
 758+ * Adds a message group containing all components of the Wikimedia Usability
 759+ * Initiative.
 760+ *
 761+ * @todo Needs documentation.
 762+ */
686763 class AllUsabilityInitiativeExtensionsGroup extends AllMediawikiExtensionsGroup {
687764 protected $label = 'Usability Initiative';
688765 protected $id = 'ext-ui-0-all';
Index: trunk/extensions/Translate/groups/Voctrain.php
@@ -1,6 +1,7 @@
22 <?php
33 /**
4 - * Support for Voctrain: http://www.
 4+ * Support for Voctrain vocabulary trainer.
 5+ * http://www.omegawiki.org/extensions/Wikidata/util/voctrain/trainer.php
56 *
67 * @file
78 * @ingroup Extensions
@@ -23,7 +24,6 @@
2425 }
2526
2627 class VoctrainMessageChecker extends MessageChecker {
27 -
2828 /**
2929 * Checks for missing and unknown parameters
3030 * @param $messages Iterable list of TMessages.

Status & tagging log