Index: trunk/extensions/ArticleComments/ArticleComments.php |
— | — | @@ -22,6 +22,8 @@ |
23 | 23 | * <comments /> |
24 | 24 | * Note: Typically this would be placed at the end of the article text. |
25 | 25 | * Version Notes: |
| 26 | + * version 0.6.1: |
| 27 | + * Added internationalisation for special page names. |
26 | 28 | * version 0.6: |
27 | 29 | * Added comments inside <comment> tags instead of article-comments-new-comment message. |
28 | 30 | * version 0.5.1: |
— | — | @@ -85,13 +87,15 @@ |
86 | 88 | 'path' => __FILE__, |
87 | 89 | 'name' => 'ArticleComments', |
88 | 90 | 'author' => array( 'Jim R. Wilson', 'Platonides' ), |
89 | | - 'version' => '0.6', |
| 91 | + 'version' => '0.6.1', |
90 | 92 | 'url' => 'https://www.mediawiki.org/wiki/Extension:ArticleComments', |
91 | 93 | 'descriptionmsg' => 'article-comments-desc', |
92 | 94 | ); |
93 | 95 | |
94 | 96 | # Add extension internationalization messages |
95 | | -$wgExtensionMessagesFiles['ArticleComments'] = dirname( __FILE__ ) . '/ArticleComments.i18n.php'; |
| 97 | +$dir = dirname( __FILE__ ) . '/'; |
| 98 | +$wgExtensionMessagesFiles['ArticleComments'] = $dir . 'ArticleComments.i18n.php'; |
| 99 | +$wgExtensionMessagesFiles['ArticleCommentsAlias'] = $dir . 'ArticleComments.alias.php'; |
96 | 100 | |
97 | 101 | # Attach hooks |
98 | 102 | $wgHooks['ParserFirstCallInit'][] = 'wfArticleCommentsParserSetup'; |
— | — | @@ -118,6 +122,8 @@ |
119 | 123 | # Sets up special page to handle comment submission |
120 | 124 | $wgSpecialPages['ProcessComment'] = 'SpecialProcessComment'; |
121 | 125 | |
| 126 | +// @todo FIXME: Put hooks and class in separate files and use autoloader. |
| 127 | + |
122 | 128 | # Sets up the ArticleComments Parser hook for <comments /> |
123 | 129 | function wfArticleCommentsParserSetup( &$parser ) { |
124 | 130 | $parser->setHook( 'comments', 'wfArticleCommentsParserHook' ); |
Index: trunk/extensions/ArticleComments/ArticleComments.alias.php |
— | — | @@ -0,0 +1,14 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for extension ArticleComments |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$specialPageAliases = array(); |
| 11 | + |
| 12 | +/** English (English) */ |
| 13 | +$specialPageAliases['en'] = array( |
| 14 | + 'ProcessComment' => array( 'ProcessComment' ), |
| 15 | +); |
Property changes on: trunk/extensions/ArticleComments/ArticleComments.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 16 | + native |
Added: svn:keywords |
2 | 17 | + Id |
Index: trunk/extensions/ArticleComments/ArticleComments.i18n.php |
— | — | @@ -67,6 +67,7 @@ |
68 | 68 | 'article-comments-commenter-said' => '$1 is a value filled into a form field by a commenter. It is not necessarily related to any wiki user name.', |
69 | 69 | 'article-comments-summary' => '$1 is a value filled into a form field by a commenter. It is not necessarily related to any wiki user name.', |
70 | 70 | 'article-comments-comment-bad-mode' => '{{doc-important|Do not translate the words "plain", "normal" and "wiki".}}', |
| 71 | + 'processcomment' => 'Special page title and link description on Special:SpecialPages.', |
71 | 72 | ); |
72 | 73 | |
73 | 74 | /** Afrikaans (Afrikaans) |