Index: trunk/extensions/Translate/groups/ComplexMessages.php |
— | — | @@ -1,5 +1,16 @@ |
2 | 2 | <?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 | + */ |
3 | 11 | |
| 12 | +/** |
| 13 | + * @todo Needs documentation. |
| 14 | + */ |
4 | 15 | abstract class ComplexMessages { |
5 | 16 | const MSG = 'translate-magic-cm-'; |
6 | 17 | |
— | — | @@ -510,6 +521,9 @@ |
511 | 522 | } |
512 | 523 | } |
513 | 524 | |
| 525 | +/** |
| 526 | + * @todo Needs documentation. |
| 527 | + */ |
514 | 528 | class SpecialPageAliasesCM extends ComplexMessages { |
515 | 529 | protected $id = SpecialMagic::MODULE_SPECIAL; |
516 | 530 | protected $databaseMsg = 'sp-translate-data-SpecialPageAliases'; |
— | — | @@ -587,6 +601,9 @@ |
588 | 602 | } |
589 | 603 | } |
590 | 604 | |
| 605 | +/** |
| 606 | + * @todo Needs documentation. |
| 607 | + */ |
591 | 608 | class MagicWordsCM extends ComplexMessages { |
592 | 609 | protected $id = SpecialMagic::MODULE_MAGIC; |
593 | 610 | protected $firstMagic = true; |
— | — | @@ -635,6 +652,9 @@ |
636 | 653 | } |
637 | 654 | } |
638 | 655 | |
| 656 | +/** |
| 657 | + * @todo Needs documentation. |
| 658 | + */ |
639 | 659 | class NamespaceCM extends ComplexMessages { |
640 | 660 | protected $id = SpecialMagic::MODULE_NAMESPACE; |
641 | 661 | protected $elementsInArray = false; |
Index: trunk/extensions/Translate/groups/OpenLayers.php |
— | — | @@ -1,13 +1,16 @@ |
2 | 2 | <?php |
3 | | - |
4 | 3 | /** |
5 | 4 | * Support for OpenLayers. |
6 | 5 | * |
| 6 | + * @file |
7 | 7 | * @author Robert Leverington <robert@rhl.me.uk> |
8 | 8 | * @copyright Copyright © 2009 Robert Leverington |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | */ |
11 | 11 | |
| 12 | +/** |
| 13 | + * @deprecated Use new style class OpenLayersFFS. |
| 14 | + */ |
12 | 15 | class OpenLayersMessageGroup extends MessageGroupOld { |
13 | 16 | protected $label = 'OpenLayers (slippy maps)'; |
14 | 17 | protected $id = 'out-openlayers'; |
— | — | @@ -49,4 +52,4 @@ |
50 | 53 | public function getWriter() { |
51 | 54 | return new OpenLayersFormatWriter( $this ); |
52 | 55 | } |
53 | | -} |
\ No newline at end of file |
| 56 | +} |
Index: trunk/extensions/Translate/groups/MediaWikiExtensions.php |
— | — | @@ -1,5 +1,16 @@ |
2 | 2 | <?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 | + */ |
3 | 11 | |
| 12 | +/** |
| 13 | + * @todo Needs documentation. |
| 14 | + */ |
4 | 15 | class PremadeMediawikiExtensionGroups { |
5 | 16 | protected $groups; |
6 | 17 | protected $definitionFile = null; |
— | — | @@ -221,6 +232,12 @@ |
222 | 233 | } |
223 | 234 | } |
224 | 235 | |
| 236 | +/** |
| 237 | + * Adds a message group containing all supported MediaWiki extensions in the |
| 238 | + * Wikimedia Subversion repository. |
| 239 | + * |
| 240 | + * @todo Needs documentation. |
| 241 | + */ |
225 | 242 | class AllMediawikiExtensionsGroup extends MessageGroupOld { |
226 | 243 | protected $label = 'MediaWiki extensions'; |
227 | 244 | protected $id = 'ext-0-all'; |
— | — | @@ -304,6 +321,12 @@ |
305 | 322 | } |
306 | 323 | } |
307 | 324 | |
| 325 | +/** |
| 326 | + * Adds a message group containing all supported MediaWiki extensions used by |
| 327 | + * wikiHow. |
| 328 | + * |
| 329 | + * @todo Needs documentation. |
| 330 | + */ |
308 | 331 | class AllWikihowExtensionsGroup extends AllMediawikiExtensionsGroup { |
309 | 332 | protected $label = 'Extensions used by Wikihow'; // currently using 1.12.0 |
310 | 333 | protected $id = 'ext-0-wikihow'; |
— | — | @@ -347,6 +370,12 @@ |
348 | 371 | } |
349 | 372 | } |
350 | 373 | |
| 374 | +/** |
| 375 | + * Adds a message group containing all supported MediaWiki extensions used by |
| 376 | + * Wikimedia. |
| 377 | + * |
| 378 | + * @todo Needs documentation. |
| 379 | + */ |
351 | 380 | class AllWikimediaExtensionsGroup extends AllMediawikiExtensionsGroup { |
352 | 381 | protected $label = 'Extensions used by Wikimedia'; |
353 | 382 | protected $id = 'ext-0-wikimedia'; |
— | — | @@ -478,6 +507,12 @@ |
479 | 508 | } |
480 | 509 | } |
481 | 510 | |
| 511 | +/** |
| 512 | + * Adds a message group containing all supported MediaWiki extensions used by |
| 513 | + * WikiTravel. |
| 514 | + * |
| 515 | + * @todo Needs documentation. |
| 516 | + */ |
482 | 517 | class AllWikitravelExtensionsGroup extends AllMediawikiExtensionsGroup { |
483 | 518 | protected $label = 'Extensions used by Wikitravel'; // currently using 1.11.2 |
484 | 519 | protected $id = 'ext-0-wikitravel'; |
— | — | @@ -511,6 +546,12 @@ |
512 | 547 | } |
513 | 548 | } |
514 | 549 | |
| 550 | +/** |
| 551 | + * Adds a message group containing all components of the MediaWiki extension |
| 552 | + * Collection. |
| 553 | + * |
| 554 | + * @todo Needs documentation. |
| 555 | + */ |
515 | 556 | class AllCollectionExtensionsGroup extends AllMediawikiExtensionsGroup { |
516 | 557 | protected $label = 'Collection'; |
517 | 558 | protected $id = 'ext-collection-0-all'; |
— | — | @@ -535,6 +576,12 @@ |
536 | 577 | } |
537 | 578 | } |
538 | 579 | |
| 580 | +/** |
| 581 | + * Adds a message group containing all components of the MediaWiki extension |
| 582 | + * FlaggedRevs. |
| 583 | + * |
| 584 | + * @todo Needs documentation. |
| 585 | + */ |
539 | 586 | class AllFlaggedRevsExtensionsGroup extends AllMediawikiExtensionsGroup { |
540 | 587 | protected $label = 'FlaggedRevs'; |
541 | 588 | protected $id = 'ext-flaggedrevs-0-all'; |
— | — | @@ -568,6 +615,12 @@ |
569 | 616 | } |
570 | 617 | } |
571 | 618 | |
| 619 | +/** |
| 620 | + * Adds a message group containing all components of the MediaWiki extension |
| 621 | + * ReaderFeedback. |
| 622 | + * |
| 623 | + * @todo Needs documentation. |
| 624 | + */ |
572 | 625 | class AllReaderFeedbackExtensionsGroup extends AllMediawikiExtensionsGroup { |
573 | 626 | protected $label = 'ReaderFeedback'; |
574 | 627 | protected $id = 'ext-readerfeedback-0-all'; |
— | — | @@ -593,6 +646,12 @@ |
594 | 647 | } |
595 | 648 | } |
596 | 649 | |
| 650 | +/** |
| 651 | + * Adds a message group containing all components of the MediaWiki extension |
| 652 | + * SocialProfile. |
| 653 | + * |
| 654 | + * @todo Needs documentation. |
| 655 | + */ |
597 | 656 | class AllSocialProfileExtensionsGroup extends AllMediawikiExtensionsGroup { |
598 | 657 | protected $label = 'Social Profile'; |
599 | 658 | protected $id = 'ext-socialprofile-0-all'; |
— | — | @@ -623,6 +682,12 @@ |
624 | 683 | } |
625 | 684 | } |
626 | 685 | |
| 686 | +/** |
| 687 | + * Adds a message group containing all components of the MediaWiki extension |
| 688 | + * Translate. |
| 689 | + * |
| 690 | + * @todo Needs documentation. |
| 691 | + */ |
627 | 692 | class AllTranslateExtensionsGroup extends AllMediawikiExtensionsGroup { |
628 | 693 | protected $label = 'Translate'; |
629 | 694 | protected $id = 'ext-translate-0-all'; |
— | — | @@ -648,6 +713,12 @@ |
649 | 714 | } |
650 | 715 | } |
651 | 716 | |
| 717 | +/** |
| 718 | + * Adds a message group containing all components of the MediaWiki extension |
| 719 | + * Uniwiki. |
| 720 | + * |
| 721 | + * @todo Needs documentation. |
| 722 | + */ |
652 | 723 | class AllUniwikiExtensionsGroup extends AllMediawikiExtensionsGroup { |
653 | 724 | protected $label = 'Uniwiki'; |
654 | 725 | protected $id = 'ext-uniwiki-0-all'; |
— | — | @@ -682,6 +753,12 @@ |
683 | 754 | } |
684 | 755 | } |
685 | 756 | |
| 757 | +/** |
| 758 | + * Adds a message group containing all components of the Wikimedia Usability |
| 759 | + * Initiative. |
| 760 | + * |
| 761 | + * @todo Needs documentation. |
| 762 | + */ |
686 | 763 | class AllUsabilityInitiativeExtensionsGroup extends AllMediawikiExtensionsGroup { |
687 | 764 | protected $label = 'Usability Initiative'; |
688 | 765 | protected $id = 'ext-ui-0-all'; |
Index: trunk/extensions/Translate/groups/Voctrain.php |
— | — | @@ -1,6 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | | - * Support for Voctrain: http://www. |
| 4 | + * Support for Voctrain vocabulary trainer. |
| 5 | + * http://www.omegawiki.org/extensions/Wikidata/util/voctrain/trainer.php |
5 | 6 | * |
6 | 7 | * @file |
7 | 8 | * @ingroup Extensions |
— | — | @@ -23,7 +24,6 @@ |
24 | 25 | } |
25 | 26 | |
26 | 27 | class VoctrainMessageChecker extends MessageChecker { |
27 | | - |
28 | 28 | /** |
29 | 29 | * Checks for missing and unknown parameters |
30 | 30 | * @param $messages Iterable list of TMessages. |