r26290 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26289‎ | r26290 | r26291 >
Date:21:03, 1 October 2007
Author:siebrand
Status:old
Tags:
Comment:
* set property eol-style:native for SpecialForm
* reindent SpecialForm.i18n.php
* add partial Dutch translation for extension SpecialForm
* add support for extension SpecialForm to extension Translate
Modified paths:
  • /trunk/extensions/SpecialForm/MediaWiki-Sample-form.wiki (modified) (history)
  • /trunk/extensions/SpecialForm/README (modified) (history)
  • /trunk/extensions/SpecialForm/SpecialForm.body.php (modified) (history)
  • /trunk/extensions/SpecialForm/SpecialForm.i18n.php (modified) (history)
  • /trunk/extensions/SpecialForm/SpecialForm.setup.php (modified) (history)
  • /trunk/extensions/SpecialForm/TODO (modified) (history)
  • /trunk/extensions/SpecialForm/Template-Sample.wiki (modified) (history)
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Property changes on: trunk/extensions/SpecialForm/MediaWiki-Sample-form.wiki
___________________________________________________________________
Added: svn:eol-style
11 + native
Property changes on: trunk/extensions/SpecialForm/TODO
___________________________________________________________________
Added: svn:eol-style
22 + native
Property changes on: trunk/extensions/SpecialForm/SpecialForm.body.php
___________________________________________________________________
Added: svn:eol-style
33 + native
Index: trunk/extensions/SpecialForm/SpecialForm.i18n.php
@@ -25,21 +25,32 @@
2626 exit( 1 );
2727 }
2828
29 -$SpecialFormMessages =
30 - array('en' => array('form' => 'Form',
31 - 'formnoname' => 'No Form Name',
32 - 'formnonametext' => 'You must provide a form name, like "Special:Form/Nameofform".',
33 - 'formbadname' => 'Bad Form Name',
34 - 'formbadnametext' => 'There is no form by that name.',
35 - 'formpattern' => '$1-form',
36 - 'formtemplatepattern' => '$1',
37 - 'formtitlepattern' => 'Add New $1',
38 - 'formsave' => 'Save',
39 - 'formarticleexists' => 'Article Exists',
40 - 'formarticleexiststext' => 'The article [[$1]] already exists.',
41 - 'formsavesummary' => 'New article using [[Special:Form/$1]]',
42 - 'formsaveerror' => 'Error Saving Form',
43 - 'formsaveerrortext' => 'There was an unknown error saving article \'$1\'.'),
44 - 'fr' => array('form' => 'Formule'));
 29+$SpecialFormMessages =array(
 30+ 'en' => array(
 31+ 'form' => 'Form',
 32+ 'formnoname' => 'No Form Name',
 33+ 'formnonametext' => 'You must provide a form name, like "Special:Form/Nameofform".',
 34+ 'formbadname' => 'Bad Form Name',
 35+ 'formbadnametext' => 'There is no form by that name.',
 36+ 'formpattern' => '$1-form',
 37+ 'formtemplatepattern' => '$1',
 38+ 'formtitlepattern' => 'Add New $1',
 39+ 'formsave' => 'Save',
 40+ 'formarticleexists' => 'Article Exists',
 41+ 'formarticleexiststext' => 'The article [[$1]] already exists.',
 42+ 'formsavesummary' => 'New article using [[Special:Form/$1]]',
 43+ 'formsaveerror' => 'Error Saving Form',
 44+ 'formsaveerrortext' => 'There was an unknown error saving article \'$1\'.',
 45+ ),
4546
 47+ 'fr' => array(
 48+ 'form' => 'Formule',
 49+ ),
 50+
 51+ 'nl' => array(
 52+ 'form' => 'Formulier',
 53+ 'formnoname' => 'Geen formuliernaam',
 54+ ),
 55+);
 56+
4657 ?>
\ No newline at end of file
Property changes on: trunk/extensions/SpecialForm/SpecialForm.i18n.php
___________________________________________________________________
Added: svn:eol-style
4758 + native
Property changes on: trunk/extensions/SpecialForm/SpecialForm.setup.php
___________________________________________________________________
Added: svn:eol-style
4859 + native
Property changes on: trunk/extensions/SpecialForm/Template-Sample.wiki
___________________________________________________________________
Added: svn:eol-style
4960 + native
Property changes on: trunk/extensions/SpecialForm/README
___________________________________________________________________
Added: svn:eol-style
5061 + native
Index: trunk/extensions/Translate/Translate.php
@@ -119,6 +119,7 @@
120120 'ext-sitematrix' => 'SiteMatrixMessageGroup',
121121 'ext-smoothgallery' => 'SmoothGalleryExtensionGroup',
122122 'ext-spamblacklist' => 'SpamBlacklistMessageGroup',
 123+'ext-specialform' => 'SpecialFormMessageGroup',
123124 'ext-syntaxhighlightgeshi' => 'SyntaxHighlight_GeSHiMessageGroup',
124125 'ext-talkhere' => 'TalkHereExtensionGroup',
125126 'ext-templatelink' => 'TemplateLinkMessageGroup',
Index: trunk/extensions/Translate/MessageGroups.php
@@ -1223,6 +1223,19 @@
12241224 protected $exportEnd = '),';
12251225 }
12261226
 1227+class SpecialFormMessageGroup extends ExtensionMessageGroup {
 1228+ protected $label = 'Special Form';
 1229+ protected $id = 'ext-specialform';
 1230+
 1231+ protected $arrName = 'SpecialFormMessages';
 1232+ protected $messageFile = 'SpecialForm/SpecialForm.i18n.php';
 1233+
 1234+ protected $exportPrefix= "\t";
 1235+ protected $exportStart = '\'$CODE\' => array(';
 1236+ protected $exportLineP = "\t\t";
 1237+ protected $exportEnd = "),";
 1238+}
 1239+
12271240 class SyntaxHighlight_GeSHiMessageGroup extends ExtensionMessageGroup {
12281241 protected $label = 'Syntax Highlight GeSHi';
12291242 protected $id = 'ext-syntaxhighlightgeshi';

Status & tagging log