Index: trunk/extensions/Translate/tag/TranslatablePage.php |
— | — | @@ -4,12 +4,13 @@ |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @author Niklas Laxström |
8 | | - * @copyright Copyright © 2009-2011 Niklas Laxström |
| 8 | + * @copyright Copyright © 2009-2012 Niklas Laxström |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Class to parse translatable wiki pages. |
| 14 | + * |
14 | 15 | * @ingroup PageTranslation |
15 | 16 | */ |
16 | 17 | class TranslatablePage { |
Index: trunk/extensions/Translate/tag/SpecialPageTranslationDeletePage.php |
— | — | @@ -4,15 +4,14 @@ |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @author Niklas Laxström |
8 | | - * @copyright Copyright © 2011, Niklas Laxström |
| 8 | + * @copyright Copyright © 2012, Niklas Laxström |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Special page which enables deleting translations of translatable pages |
14 | 14 | * |
15 | | - * @ingroup SpecialPage |
16 | | - * @ingroup PageTranslation |
| 15 | + * @ingroup SpecialPage PageTranslation |
17 | 16 | */ |
18 | 17 | class SpecialPageTranslationDeletePage extends UnlistedSpecialPage { |
19 | 18 | // Basic form parameters both as text and as titles |
Index: trunk/extensions/Translate/tag/TPParse.php |
— | — | @@ -4,13 +4,14 @@ |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @author Niklas Laxström |
8 | | - * @copyright Copyright © 2009-2011 Niklas Laxström |
| 8 | + * @copyright Copyright © 2009-2012 Niklas Laxström |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** |
13 | 13 | * This class represents the results of parsed source page, that is, the |
14 | 14 | * extracted sections and a template. |
| 15 | + * |
15 | 16 | * @ingroup PageTranslation |
16 | 17 | */ |
17 | 18 | class TPParse { |
Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -4,12 +4,13 @@ |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @author Niklas Laxström |
8 | | - * @copyright Copyright © 2008-2011, Niklas Laxström |
| 8 | + * @copyright Copyright © 2008-2012, Niklas Laxström |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Hooks for page translation. |
| 14 | + * |
14 | 15 | * @ingroup PageTranslation |
15 | 16 | */ |
16 | 17 | class PageTranslationHooks { |
Index: trunk/extensions/Translate/tag/SpecialPageTranslationMovePage.php |
— | — | @@ -4,21 +4,15 @@ |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @author Niklas Laxström |
8 | | - * @copyright Copyright © 2010, Niklas Laxström |
| 8 | + * @copyright Copyright © 2010-2012, Niklas Laxström |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | */ |
11 | 11 | |
12 | | -if ( !defined( 'GAID_FOR_UPDATE' ) ) { |
13 | | - /* Backwards-compatible define for 1.17+ (see r75379) */ |
14 | | - define( 'GAID_FOR_UPDATE', Title::GAID_FOR_UPDATE ); |
15 | | -} |
16 | | - |
17 | 12 | /** |
18 | 13 | * Overrides Special:Movepage to to allow renaming a page translation page and |
19 | 14 | * all related translations and derivative pages. |
20 | 15 | * |
21 | | - * @ingroup SpecialPage |
22 | | - * @ingroup PageTranslation |
| 16 | + * @ingroup SpecialPage PageTranslation |
23 | 17 | */ |
24 | 18 | class SpecialPageTranslationMovePage extends UnlistedSpecialPage { |
25 | 19 | // Basic form parameters both as text and as titles |
— | — | @@ -242,7 +236,7 @@ |
243 | 237 | $form[] = Html::hidden( 'wpEditToken', $this->user->editToken() ); |
244 | 238 | $this->addInputLabel( $form, wfMsg( 'pt-movepage-current' ), 'wpOldTitle', 30, $this->oldText, $readonly ); |
245 | 239 | $this->addInputLabel( $form, wfMsg( 'pt-movepage-new' ), 'wpNewTitle', 30, $this->newText ); |
246 | | - $this->addInputLabel( $form, wfMsg( 'pt-movepage-reason' ), 'reason', 60, $this->reason ); |
| 240 | + $this->addInputLabel( $form, wfMsg( 'pt-movepage-reason' ), 'reason', 45, $this->reason ); |
247 | 241 | $form[] = Xml::checkLabel( wfMsg( 'pt-movepage-subpages' ), 'subpages', 'mw-subpages', $this->moveSubpages ) . $br; |
248 | 242 | $form[] = Xml::submitButton( wfMsg( 'pt-movepage-action-check' ), $subaction ); |
249 | 243 | $form[] = Xml::closeElement( 'form' ); |
— | — | @@ -396,10 +390,10 @@ |
397 | 391 | MoveJob::forceRedirects( true ); |
398 | 392 | |
399 | 393 | $newTpage = TranslatablePage::newFromTitle( $this->newTitle ); |
400 | | - $newTpage->addReadyTag( $this->newTitle->getLatestRevId( GAID_FOR_UPDATE ) ); |
| 394 | + $newTpage->addReadyTag( $this->newTitle->getLatestRevId( Title::GAID_FOR_UPDATE ) ); |
401 | 395 | |
402 | 396 | if ( $newTpage->getMarkedTag() === $oldLatest ) { |
403 | | - $newTpage->addMarkedTag( $this->newTitle->getLatestRevId( GAID_FOR_UPDATE ) ); |
| 397 | + $newTpage->addMarkedTag( $this->newTitle->getLatestRevId( Title::GAID_FOR_UPDATE ) ); |
404 | 398 | } |
405 | 399 | |
406 | 400 | MessageGroups::clearCache(); |
Index: trunk/extensions/Translate/tag/TPException.php |
— | — | @@ -4,12 +4,13 @@ |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @author Niklas Laxström |
8 | | - * @copyright Copyright © 2009-2011 Niklas Laxström |
| 8 | + * @copyright Copyright © 2009-2012 Niklas Laxström |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Class to signal syntax errors in translatable pages. |
| 14 | + * |
14 | 15 | * @ingroup PageTranslation |
15 | 16 | */ |
16 | 17 | class TPException extends MWException { |
Index: trunk/extensions/Translate/tag/TPSection.php |
— | — | @@ -4,12 +4,13 @@ |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @author Niklas Laxström |
8 | | - * @copyright Copyright © 2009-2010 Niklas Laxström |
| 8 | + * @copyright Copyright © 2009-2012 Niklas Laxström |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** |
13 | 13 | * This class represents one individual section in translatable page. |
| 14 | + * |
14 | 15 | * @ingroup PageTranslation |
15 | 16 | */ |
16 | 17 | class TPSection { |
Index: trunk/extensions/Translate/utils/FuzzyBot.php |
— | — | @@ -4,15 +4,14 @@ |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @author Niklas Laxström |
| 8 | + * @copyright Copyright © 2012, Niklas Laxström |
8 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2 or later |
9 | | - * @ |
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** |
13 | 13 | * FuzzyBot - the misunderstood workhorse. |
14 | 14 | * @since 2012-01-02 |
15 | 15 | */ |
16 | | - |
17 | 16 | class FuzzyBot { |
18 | 17 | public static function getUser() { |
19 | 18 | $bot = User::newFromName( self::getName() ); |
Index: trunk/extensions/Translate/utils/MessageHandle.php |
— | — | @@ -1,4 +1,11 @@ |
2 | 2 | <?php |
| 3 | +/** |
| 4 | + * Class that enhances Title with stuff related to message groups |
| 5 | + * @file |
| 6 | + * @author Niklas Laxström |
| 7 | + * @copyright Copyright © 2022-2012 Niklas Laxström |
| 8 | + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
| 9 | + */ |
3 | 10 | |
4 | 11 | /** |
5 | 12 | * Class for pointing to messages, like Title class is for titles. |
Index: trunk/extensions/Translate/utils/TranslationEditPage.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | * |
7 | 7 | * @file |
8 | 8 | * @author Niklas Laxström |
9 | | - * @copyright Copyright © 2009-2010 Niklas Laxström |
| 9 | + * @copyright Copyright © 2009-2012 Niklas Laxström |
10 | 10 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
11 | 11 | */ |
12 | 12 | |
Index: trunk/extensions/Translate/utils/StatsTable.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | * @file |
7 | 7 | * @author Siebrand Mazeland |
8 | 8 | * @author Niklas Laxström |
9 | | - * @copyright Copyright © 2008-2011 Siebrand Mazeland, Niklas Laxström |
| 9 | + * @copyright Copyright © 2008-2012 Siebrand Mazeland, Niklas Laxström |
10 | 10 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
11 | 11 | */ |
12 | 12 | |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | * Use {{Special:LanguageStats/nl/1}} to show for 'nl' and suppres completely |
20 | 20 | * translated groups. |
21 | 21 | * |
22 | | - * @ingroup SpecialPage TranslateSpecialPage Stats |
| 22 | + * @ingroup Stats |
23 | 23 | */ |
24 | 24 | class StatsTable { |
25 | 25 | /// @var Language |
Index: trunk/extensions/Translate/utils/TranslationStats.php |
— | — | @@ -5,12 +5,13 @@ |
6 | 6 | * @file |
7 | 7 | * @author Niklas Laxström |
8 | 8 | * @author Siebrand Mazeland |
9 | | - * @copyright Copyright © 2010, Niklas Laxström, Siebrand Mazeland |
| 9 | + * @copyright Copyright © 2010-2012, Niklas Laxström, Siebrand Mazeland |
10 | 10 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
11 | 11 | */ |
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Contains methods that provide statistics for message groups. |
| 15 | + * |
15 | 16 | * @ingroup Stats |
16 | 17 | */ |
17 | 18 | class TranslationStats { |
Index: trunk/extensions/Translate/utils/MessageGroupStats.php |
— | — | @@ -5,13 +5,15 @@ |
6 | 6 | * @file |
7 | 7 | * @author Wikia http://trac.wikia-code.com/browser/wikia/trunk/extensions/wikia/TranslationStatistics |
8 | 8 | * @author Niklas Laxström |
9 | | - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 3 or later |
| 9 | + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** |
13 | 13 | * This class abstract MessageGroup statistics calculation and storing. |
14 | 14 | * You can access stats easily per language or per group. |
15 | 15 | * Stat array for each item is of format array( total, translate, fuzzy ). |
| 16 | + * |
| 17 | + * @ingroup Stats MessageGroups |
16 | 18 | */ |
17 | 19 | class MessageGroupStats { |
18 | 20 | /// Name of the database table |
Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | * |
7 | 7 | * @file |
8 | 8 | * @author Niklas Laxström |
9 | | - * @copyright Copyright © 2010 Niklas Laxström |
| 9 | + * @copyright Copyright © 2010-2012 Niklas Laxström |
10 | 10 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
11 | 11 | */ |
12 | 12 | |
Index: trunk/extensions/Translate/utils/MessageGroupCache.php |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | * Code for caching the messages of file based message groups. |
5 | 5 | * @file |
6 | 6 | * @author Niklas Laxström |
7 | | - * @copyright Copyright © 2009-2010 Niklas Laxström |
| 7 | + * @copyright Copyright © 2009-2012 Niklas Laxström |
8 | 8 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
9 | 9 | */ |
10 | 10 | |
— | — | @@ -12,6 +12,8 @@ |
13 | 13 | * that the cache is up to date. Parsing the source files can be slow, so |
14 | 14 | * constructing CDB cache makes accessing that data constant speed regardless |
15 | 15 | * of the actual format. |
| 16 | + * |
| 17 | + * @ingroup MessageGroups |
16 | 18 | */ |
17 | 19 | class MessageGroupCache { |
18 | 20 | |
Index: trunk/extensions/Translate/specials/SpecialManageGroups.php |
— | — | @@ -3,11 +3,10 @@ |
4 | 4 | * Implements special page for group management, where file based message |
5 | 5 | * groups are be managed. |
6 | 6 | * |
7 | | - * @ingroup SpecialPage |
8 | 7 | * @file |
9 | 8 | * @author Niklas Laxström |
10 | 9 | * @author Siebrand Mazeland |
11 | | - * @copyright Copyright © 2009-2010, Niklas Laxström, Siebrand Mazeland |
| 10 | + * @copyright Copyright © 2009-2012, Niklas Laxström, Siebrand Mazeland |
12 | 11 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
13 | 12 | */ |
14 | 13 | |
— | — | @@ -16,6 +15,8 @@ |
17 | 16 | * file based message groups can be managed (FileBasedMessageGroup). This page |
18 | 17 | * allows updating of the file cache, import and fuzzy for source language |
19 | 18 | * messages, as well as import/update of messages in other languages. |
| 19 | + * |
| 20 | + * @ingroup SpecialPage TranslateSpecialPage |
20 | 21 | */ |
21 | 22 | class SpecialManageGroups extends SpecialPage { |
22 | 23 | /** |
Index: trunk/extensions/Translate/specials/SpecialSupportedLanguages.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | * @file |
7 | 7 | * @author Niklas Laxström |
8 | 8 | * @author Siebrand Mazeland |
9 | | - * @copyright Copyright © 2011, Niklas Laxström, Siebrand Mazeland |
| 9 | + * @copyright Copyright © 2012, Niklas Laxström, Siebrand Mazeland |
10 | 10 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
11 | 11 | */ |
12 | 12 | |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | * "translators". The subpage "translators" must contain the template |
19 | 19 | * [[:{{ns:template}}:User|User]], taking a user name as parameter. |
20 | 20 | * |
21 | | - * @ingroup SpecialPage TranslateSpecialPage |
| 21 | + * @ingroup SpecialPage TranslateSpecialPage Stats |
22 | 22 | */ |
23 | 23 | class SpecialSupportedLanguages extends SpecialPage { |
24 | 24 | /// Whether to skip and regenerate caches |
Index: trunk/extensions/Translate/specials/SpecialTranslate.php |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | $this->options['group'] = $this->defaults['group']; |
84 | 84 | } |
85 | 85 | |
86 | | - TranslateUtils::addSpecialHelpLink( $wgOut, 'Help:Extension:Translate' ); |
| 86 | + TranslateUtils::addSpecialHelpLink( $wgOut, 'Help:Extension:Translate/Translation_example' ); |
87 | 87 | // Show errors nicely. |
88 | 88 | $wgOut->addHTML( $this->settingsForm( $errors ) ); |
89 | 89 | |