Index: trunk/extensions/ArticleComments/ArticleComments.php |
— | — | @@ -377,7 +377,7 @@ |
378 | 378 | if ( !empty( $messages ) ) { |
379 | 379 | $wgOut->setPageTitle( wfMsg( 'article-comments-submission-failed' ) ); |
380 | 380 | $wikiText = "<div class='errorbox'>\n"; |
381 | | - $wikiText .= wfMsg( 'article-comments-failure-reasons' ) . "\n\n"; |
| 381 | + $wikiText .= wfMsgExt( 'article-comments-failure-reasons', 'parsemag', count( $messages ) ) . "\n\n"; |
382 | 382 | foreach ( $messages as $message ) { |
383 | 383 | $wikiText .= "* $message\n"; |
384 | 384 | } |
— | — | @@ -395,7 +395,8 @@ |
396 | 396 | if ( $wgUser->isBlockedFrom( $talkTitle ) ) { |
397 | 397 | $wgOut->setPageTitle( wfMsg( 'article-comments-submission-failed' ) ); |
398 | 398 | $wikiText = "<div class='errorbox'>\n"; |
399 | | - $wikiText .= wfMsg( 'article-comments-failure-reasons' ) . "\n\n"; |
| 399 | + # 1 error only but message is used above for n errors too |
| 400 | + $wikiText .= wfMsgExt( 'article-comments-failure-reasons', 'parsemag', 1 ) . "\n\n"; |
400 | 401 | $wikiText .= '* ' . wfMsg( 'article-comments-user-is-blocked', $talkTitle->getPrefixedText() ) . "\n"; |
401 | 402 | $wgOut->addWikiText( $wikiText . "</div>" ); |
402 | 403 | return; |
Index: trunk/extensions/ArticleComments/ArticleComments.i18n.php |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | 'article-comments-invalid-field' => 'The $1 provided <nowiki>[$2]</nowiki> is invalid.', |
24 | 24 | 'article-comments-required-field' => '$1 field is required.', |
25 | 25 | 'article-comments-submission-failed' => 'Comment submission failed', |
26 | | - 'article-comments-failure-reasons' => 'Sorry, your comment submission failed for the following reason(s):', |
| 26 | + 'article-comments-failure-reasons' => 'Sorry, your comment submission failed for the following {{PLURAL:$1|reason|reasons}}:', |
27 | 27 | 'article-comments-no-comments' => 'Sorry, the page "[[$1]]" is not accepting comments at this time.', |
28 | 28 | 'article-comments-talk-page-starter' => "<noinclude>Comments on [[$1]]\n<comments />\n----- __NOEDITSECTION__</noinclude>\n", |
29 | 29 | 'article-comments-commenter-said' => '$1 said ...', |