Index: trunk/extensions/ArticleComments/ArticleComments.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | * 1. Drop this script (ArticleComments.php) in $IP/extensions |
18 | 18 | * Note: $IP is your MediaWiki install dir. |
19 | 19 | * 2. Enable the extension by adding this line to your LocalSettings.php: |
20 | | - * require_once('extensions/ArticleComments.php'); |
| 20 | + * require_once( "$IP/extensions/ArticleComments/ArticleComments.php" ); |
21 | 21 | * Usage: |
22 | 22 | * Once installed, you may utilize ArticleComments by adding the following flag in the article text: |
23 | 23 | * <comments /> |
— | — | @@ -76,10 +76,11 @@ |
77 | 77 | |
78 | 78 | # Credits |
79 | 79 | $wgExtensionCredits['other'][] = array( |
| 80 | + 'path' => __FILE__, |
80 | 81 | 'name' => 'ArticleComments', |
81 | | - 'author' => 'Jim R. Wilson - wilson.jim.r <at> gmail.com', |
| 82 | + 'author' => 'Jim R. Wilson - wilson.jim.r <at> gmail.com', |
82 | 83 | 'url' => 'http://jimbojw.com/wiki/index.php?title=ArticleComments', |
83 | | - 'description' => 'Enables comment sections on article pages.', |
| 84 | + 'descriptionmsg' => 'article-comments-desc', |
84 | 85 | 'version' => '0.5' |
85 | 86 | ); |
86 | 87 | |
— | — | @@ -112,6 +113,7 @@ |
113 | 114 | # Sets up special page to handle comment submission |
114 | 115 | $wgExtensionFunctions[] = 'setupSpecialProcessComment'; |
115 | 116 | |
| 117 | +// FIXME: Use of SpecialPage::addPage is deprecated. |
116 | 118 | function setupSpecialProcessComment() { |
117 | 119 | SpecialPage::addPage( new SpecialPage( 'ProcessComment', '', true, 'specialProcessComment', false ) ); |
118 | 120 | } |
Index: trunk/extensions/ArticleComments/ArticleComments.i18n.php |
— | — | @@ -9,6 +9,7 @@ |
10 | 10 | $messages = array(); |
11 | 11 | |
12 | 12 | $messages['en'] = array( |
| 13 | + 'article-comments-desc' => 'Enables comment sections on article pages', |
13 | 14 | 'article-comments-title-string' => 'title', |
14 | 15 | 'article-comments-name-string' => 'Name', |
15 | 16 | 'article-comments-name-field' => 'Name (required):', |
— | — | @@ -20,7 +21,7 @@ |
21 | 22 | 'article-comments-leave-comment-link' => 'Leave a comment ...', |
22 | 23 | 'article-comments-invalid-field' => 'The $1 provided <nowiki>[$2]</nowiki> is invalid.', |
23 | 24 | 'article-comments-required-field' => '$1 field is required.', |
24 | | - 'article-comments-submission-failed' => 'Comment Submission Failed', |
| 25 | + 'article-comments-submission-failed' => 'Comment submission failed', |
25 | 26 | 'article-comments-failure-reasons' => 'Sorry, your comment submission failed for the following reason(s):', |
26 | 27 | 'article-comments-no-comments' => 'Sorry, the article "[[$1]]" is not accepting comments at this time.', |
27 | 28 | 'article-comments-talk-page-starter' => "<noinclude>Comments on [[$1]]\n<comments />\n----- __NOEDITSECTION__</noinclude>\n", |
— | — | @@ -33,7 +34,7 @@ |
34 | 35 | 'article-comments-user-is-blocked' => 'Your user account is currently blocked from editing [[$1]].', |
35 | 36 | 'article-comments-new-comment' => "\n== \$1 ==\n\n<div class='commentBlock'>\n\$2\n\n--\$3 \$4\n</div>\n", |
36 | 37 | 'article-comments-no-spam' => 'At least one of the submitted fields was flagged as spam.', |
37 | | - 'processcomment' => 'Process Article Comment', |
| 38 | + 'processcomment' => 'Process qrticle comment', |
38 | 39 | ); |
39 | 40 | |
40 | 41 | $messages['qqq'] = array( |