r28567 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28566‎ | r28567 | r28568 >
Date:20:22, 16 December 2007
Author:siebrand
Status:old
Tags:
Comment:
Add support for Cite
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -13,7 +13,7 @@
1414
1515 $wgExtensionCredits['specialpage'][] = array(
1616 'name' => 'Translate',
17 - 'version' => '5.21',
 17+ 'version' => '5.22',
1818 'author' => 'Niklas Laxström, Siebrand Mazeland',
1919 'description' => 'Special page for translating Mediawiki and beyond',
2020 'url' => 'http://www.mediawiki.org/wiki/Extension:Translate',
@@ -83,6 +83,7 @@
8484 'ext-changeauthor' => 'ChangeAuthorMessageGroup',
8585 'ext-checkuser' => 'CheckUserMessageGroup',
8686 'ext-chemistry' => 'ChemFunctionsMessageGroup',
 87+'ext-cite' => 'CiteMessageGroup',
8788 'ext-citespecial' => 'CiteSpecialMessageGroup',
8889 'ext-commentspammer' => 'CommentSpammerMessageGroup',
8990 'ext-confirmaccount' => 'ConfirmAccountMessageGroup',
Index: trunk/extensions/Translate/MessageGroups.php
@@ -773,6 +773,14 @@
774774 }
775775 }
776776
 777+class CiteMessageGroup extends ExtensionMessageGroup {
 778+ protected $label = 'Cite';
 779+ protected $id = 'ext-cite';
 780+
 781+ protected $arrName = 'messages';
 782+ protected $messageFile = 'Cite/Cite.i18n.php';
 783+}
 784+
777785 class CiteSpecialMessageGroup extends ExtensionMessageGroup {
778786 protected $label = 'Cite (special page)';
779787 protected $id = 'ext-citespecial';

Status & tagging log