r76297 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76296‎ | r76297 | r76298 >
Date:11:03, 8 November 2010
Author:wikibhasha.msr
Status:ok (Comments)
Tags:
Comment:
Adding GNU General Public License info. to the php extension scripts
Modified paths:
  • /trunk/extensions/WikiBhasha/WikiBhasha.alias.php (modified) (history)
  • /trunk/extensions/WikiBhasha/WikiBhasha.i18n.php (modified) (history)
  • /trunk/extensions/WikiBhasha/WikiBhasha.php (modified) (history)
  • /trunk/extensions/WikiBhasha/WikiBhashaExtClass.php (modified) (history)
  • /trunk/extensions/WikiBhasha/WikiBhashaSpecial.php (modified) (history)
  • /trunk/extensions/WikiBhasha/WikiBhasha_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiBhasha/WikiBhasha.php
@@ -1,4 +1,23 @@
22 <?php
 3+/*
 4+*
 5+* WikiBhasha
 6+* Copyright (C) 2010, Microsoft
 7+*
 8+* This program is free software; you can redistribute it and/or
 9+* modify it under the terms of the GNU General Public License version 2
 10+* as published by the Free Software Foundation.
 11+*
 12+* This program is distributed in the hope that it will be useful,
 13+* but WITHOUT ANY WARRANTY; without even the implied warranty of
 14+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 15+* GNU General Public License for more details.
 16+*
 17+* You should have received a copy of the GNU General Public License
 18+* along with this program; if not, write to the Free Software
 19+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 20+*
 21+*/
322
423 // WikiBhasha launch Extention script.
524 // Description: this script eases the procedure to launch WikiBhasha by instrumenting
@@ -16,7 +35,7 @@
1736 'name' => 'WikiBhasha',
1837 'author' => 'Microsoft Research',
1938 'url' => 'http://www.mediawiki.org/wiki/Extension:WikiBhasha',
20 - 'descriptionmsg' => 'wikibhasha-desc',
 39+ 'descriptionmsg' => 'Application to create multilingual content leveraging the English Wikipedia content',
2140 'version' => '1.0',
2241 );
2342
Index: trunk/extensions/WikiBhasha/WikiBhashaSpecial.php
@@ -1,4 +1,23 @@
22 <?php
 3+/*
 4+*
 5+* WikiBhasha
 6+* Copyright (C) 2010, Microsoft
 7+*
 8+* This program is free software; you can redistribute it and/or
 9+* modify it under the terms of the GNU General Public License version 2
 10+* as published by the Free Software Foundation.
 11+*
 12+* This program is distributed in the hope that it will be useful,
 13+* but WITHOUT ANY WARRANTY; without even the implied warranty of
 14+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 15+* GNU General Public License for more details.
 16+*
 17+* You should have received a copy of the GNU General Public License
 18+* along with this program; if not, write to the Free Software
 19+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 20+*
 21+*/
322
423 /*
524 *
@@ -23,6 +42,6 @@
2443 function execute( $par ) {
2544 global $wgOut;
2645 $this->setHeaders();
27 - $wgOut->addHTML( '<h2>message goes here</h2>' );
 46+ $wgOut->addHTML( '<h2>Application to create multilingual content leveraging the English Wikipedia content</h2>' );
2847 }
2948 }
Index: trunk/extensions/WikiBhasha/WikiBhashaExtClass.php
@@ -1,4 +1,23 @@
22 <?php
 3+/*
 4+*
 5+* WikiBhasha
 6+* Copyright (C) 2010, Microsoft
 7+*
 8+* This program is free software; you can redistribute it and/or
 9+* modify it under the terms of the GNU General Public License version 2
 10+* as published by the Free Software Foundation.
 11+*
 12+* This program is distributed in the hope that it will be useful,
 13+* but WITHOUT ANY WARRANTY; without even the implied warranty of
 14+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 15+* GNU General Public License for more details.
 16+*
 17+* You should have received a copy of the GNU General Public License
 18+* along with this program; if not, write to the Free Software
 19+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 20+*
 21+*/
322
423 /*
524 WikiBhasha launch Extention base class script.
Index: trunk/extensions/WikiBhasha/WikiBhasha.alias.php
@@ -1,4 +1,23 @@
22 <?php
 3+/*
 4+*
 5+* WikiBhasha
 6+* Copyright (C) 2010, Microsoft
 7+*
 8+* This program is free software; you can redistribute it and/or
 9+* modify it under the terms of the GNU General Public License version 2
 10+* as published by the Free Software Foundation.
 11+*
 12+* This program is distributed in the hope that it will be useful,
 13+* but WITHOUT ANY WARRANTY; without even the implied warranty of
 14+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 15+* GNU General Public License for more details.
 16+*
 17+* You should have received a copy of the GNU General Public License
 18+* along with this program; if not, write to the Free Software
 19+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 20+*
 21+*/
322
423 /*
524 *
Index: trunk/extensions/WikiBhasha/WikiBhasha_body.php
@@ -1,6 +1,26 @@
22 <?php
33 /*
44 *
 5+* WikiBhasha
 6+* Copyright (C) 2010, Microsoft
 7+*
 8+* This program is free software; you can redistribute it and/or
 9+* modify it under the terms of the GNU General Public License version 2
 10+* as published by the Free Software Foundation.
 11+*
 12+* This program is distributed in the hope that it will be useful,
 13+* but WITHOUT ANY WARRANTY; without even the implied warranty of
 14+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 15+* GNU General Public License for more details.
 16+*
 17+* You should have received a copy of the GNU General Public License
 18+* along with this program; if not, write to the Free Software
 19+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 20+*
 21+*/
 22+
 23+/*
 24+*
525 * The body file will contain a subclass of SpecialPage. It will be loaded automatically when the special page is requested
626 * this file contains the functions to populate the content to the special page
727 *
Index: trunk/extensions/WikiBhasha/WikiBhasha.i18n.php
@@ -1,6 +1,26 @@
22 <?php
33 /*
44 *
 5+* WikiBhasha
 6+* Copyright (C) 2010, Microsoft
 7+*
 8+* This program is free software; you can redistribute it and/or
 9+* modify it under the terms of the GNU General Public License version 2
 10+* as published by the Free Software Foundation.
 11+*
 12+* This program is distributed in the hope that it will be useful,
 13+* but WITHOUT ANY WARRANTY; without even the implied warranty of
 14+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 15+* GNU General Public License for more details.
 16+*
 17+* You should have received a copy of the GNU General Public License
 18+* along with this program; if not, write to the Free Software
 19+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 20+*
 21+*/
 22+
 23+/*
 24+*
525 * If you want your extension to be used on wikis that have a multi-lingual readership, we will need to add internationalization support to the extension.
626 *
727 * 1.For any text string displayed to the user, define a message. MediaWiki supports parameterized messages and that feature should be used when a message is dependent on information generated at runtime. Assign each message a lowercase message id.

Comments

#Comment by Hashar (talk | contribs)   20:15, 27 November 2010

Marking ok. Thanks Microsoft!

Status & tagging log