r25650 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25649‎ | r25650 | r25651 >
Date:22:11, 7 September 2007
Author:siebrand
Status:old
Tags:
Comment:
Add support for PdfHandler in Translate.
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -94,6 +94,7 @@
9595 'ext-parserfunctions' => 'ParserfunctionsMessageGroup',
9696 'ext-patroller' => 'PatrollerMessageGroup',
9797 'ext-picturepopup' => 'PicturePopupMessageGroup',
 98+'ext-pdfhandler' => 'PdfHandlerMessageGroup',
9899 'ext-player' => 'PlayerMessageGroup',
99100 'ext-profilemonitor' => 'ProfileMonitorMessageGroup',
100101 'ext-proofreadpage' => 'ProofreadPageMessageGroup',
Index: trunk/extensions/Translate/MessageGroups.php
@@ -1007,6 +1007,19 @@
10081008 protected $exportEnd = '),';
10091009 }
10101010
 1011+class PdfHandlerMessageGroup extends ExtensionMessageGroup {
 1012+ protected $label = 'Extension: Pdf Handler';
 1013+ protected $id = 'ext-pdfhandler';
 1014+
 1015+ protected $functionName = 'efPdfHandlerMessages';
 1016+ protected $messageFile = 'PdfHandler/PdfHandler.i18n.php';
 1017+
 1018+ protected $exportStart = '\'$CODE\' => array(';
 1019+ protected $exportPrefix= "\t\t";
 1020+ protected $exportLineP = "\t\t\t";
 1021+ protected $exportEnd = '),';
 1022+}
 1023+
10111024 class PicturePopupMessageGroup extends ExtensionMessageGroup {
10121025 protected $label = 'Extension: PicturePopup';
10131026 protected $id = 'ext-picturepopup';

Status & tagging log