r36186 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36185‎ | r36186 | r36187 >
Date:07:10, 11 June 2008
Author:ashley
Status:old
Tags:
Comment:
SpecialForm:
*remove php ending tag
*tweak doxygen comments (addtogroup -> ingroup)
*add Finnish i18n
Modified paths:
  • /trunk/extensions/SpecialForm/SpecialForm.body.php (modified) (history)
  • /trunk/extensions/SpecialForm/SpecialForm.i18n.php (modified) (history)
  • /trunk/extensions/SpecialForm/SpecialForm.setup.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SpecialForm/SpecialForm.body.php
@@ -18,7 +18,7 @@
1919 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2020 *
2121 * @author Evan Prodromou <evan@vinismo.com>
22 - * @addtogroup Extensions
 22+ * @ingroup Extensions
2323 */
2424
2525 if (!defined('MEDIAWIKI')) {
@@ -27,8 +27,7 @@
2828
2929 require_once('XmlFunctions.php');
3030
31 -class SpecialForm extends SpecialPage
32 -{
 31+class SpecialForm extends SpecialPage {
3332 function SpecialForm() {
3433 SpecialPage::SpecialPage("Form");
3534 self::loadMessages();
@@ -492,6 +491,4 @@
493492 return '';
494493 }
495494 }
496 -}
497 -
498 -?>
 495+}
\ No newline at end of file
Index: trunk/extensions/SpecialForm/SpecialForm.i18n.php
@@ -18,11 +18,14 @@
1919 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2020 *
2121 * @author Evan Prodromou <evan@vinismo.com>
22 - * @addtogroup Extensions
 22+ * @ingroup Extensions
2323 */
2424
2525 $messages = array();
2626
 27+/** English
 28+ * @author Evan Prodromou <evan@vinismo.com>
 29+ */
2730 $messages['en'] = array(
2831 'form' => 'Form',
2932 'formnoname' => 'No form name',
@@ -153,6 +156,31 @@
154157 'formbadpagename' => 'Fuŝa paĝnomo',
155158 );
156159
 160+/** Finnish (Suomi)
 161+ * @author Jack Phoenix
 162+ */
 163+$messages['fi'] = array(
 164+ 'form' => 'Lomake',
 165+ 'formnoname' => 'Ei lomakkeen nimeä',
 166+ 'formnonametext' => 'Sinun tulee antaa lomakkeen nimi, kuten "Special:Form/Lomakkeennimi".',
 167+ 'formbadname' => 'Huono lomakkeen nimi',
 168+ 'formbadnametext' => 'Haluamallasi nimellä ei ole lomaketta.',
 169+ 'formpattern' => '$1-lomake',
 170+ 'formtemplatepattern' => '$1', # Do not translate this message
 171+ 'formtitlepattern' => 'Lisää uusi $1',
 172+ 'formsave' => 'Tallenna',
 173+ 'formindexmismatch' => 'Tällä lomakkeella on yhteensopimattomat nimi- ja mallinekaavat alkaen riviltä $1.',
 174+ 'formarticleexists' => 'Sivu on jo olemassa',
 175+ 'formarticleexiststext' => 'Sivu [[$1]] on jo olemassa.',
 176+ 'formbadpagename' => 'Huono sivun nimi',
 177+ 'formbadpagenametext' => 'Antamasi lomakkeen tiedot tekevät huonon sivun nimen, "$1".',
 178+ 'formrequiredfieldpluralerror' => 'Kentät $1 ovat pakollisia tälle lomakkeelle. Ole hyvä ja täytä ne.',
 179+ 'formrequiredfielderror' => 'Kenttä $1 on pakollinen tälle lomakkeelle. Ole hyvä ja täytä se.',
 180+ 'formsavesummary' => 'Uusi sivu käyttäen [[Special:Form/$1]]',
 181+ 'formsaveerror' => 'Virhe lomaketta tallennettaessa',
 182+ 'formsaveerrortext' => 'Tuntematon virhe tapahtui sivua \'$1\' tallennettaessa.',
 183+);
 184+
157185 $messages['fr'] = array(
158186 'form' => 'Formulaire',
159187 'formnoname' => 'Aucun nom',
Index: trunk/extensions/SpecialForm/SpecialForm.setup.php
@@ -18,7 +18,7 @@
1919 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2020 *
2121 * @author Evan Prodromou <evan@vinismo.com>
22 - * @addtogroup Extensions
 22+ * @ingroup Extensions
2323 */
2424
2525 if (!defined('MEDIAWIKI')) {
@@ -36,11 +36,13 @@
3737 # Typo in versions of MW earlier than 1.11.x (?)
3838 $wgHooks['LangugeGetSpecialPageAliases'][] = 'formLocalizedPageName'; # Add any aliases for the special page.
3939
40 -$wgExtensionCredits['specialpage'][] = array('name' => 'Form',
41 - 'version' => SPECIALFORM_VERSION,
42 - 'author' => 'Evan Prodromou',
43 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Form',
44 - 'description' => 'A form interface to start new articles');
 40+$wgExtensionCredits['specialpage'][] = array(
 41+ 'name' => 'Form',
 42+ 'version' => SPECIALFORM_VERSION,
 43+ 'author' => 'Evan Prodromou',
 44+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Form',
 45+ 'description' => 'A form interface to start new articles'
 46+);
4547
4648 function formLocalizedPageName(&$specialPageArray, $code) {
4749 # The localized title of the special page is among the messages of the extension:
@@ -52,6 +54,4 @@
5355 $specialPageArray['Form'][] = $title->getDBkey();
5456
5557 return true;
56 -}
57 -
58 -?>
 58+}
\ No newline at end of file

Status & tagging log