r75353 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75352‎ | r75353 | r75354 >
Date:14:23, 25 October 2010
Author:raymond
Status:ok
Tags:
Comment:
Modified paths:
  • /trunk/extensions/ArticleComments/ArticleComments.i18n.php (modified) (history)
  • /trunk/extensions/ArticleComments/ArticleComments.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleComments/ArticleComments.php
@@ -377,7 +377,7 @@
378378 if ( !empty( $messages ) ) {
379379 $wgOut->setPageTitle( wfMsg( 'article-comments-submission-failed' ) );
380380 $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";
382382 foreach ( $messages as $message ) {
383383 $wikiText .= "* $message\n";
384384 }
@@ -395,7 +395,8 @@
396396 if ( $wgUser->isBlockedFrom( $talkTitle ) ) {
397397 $wgOut->setPageTitle( wfMsg( 'article-comments-submission-failed' ) );
398398 $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";
400401 $wikiText .= '* ' . wfMsg( 'article-comments-user-is-blocked', $talkTitle->getPrefixedText() ) . "\n";
401402 $wgOut->addWikiText( $wikiText . "</div>" );
402403 return;
Index: trunk/extensions/ArticleComments/ArticleComments.i18n.php
@@ -22,7 +22,7 @@
2323 'article-comments-invalid-field' => 'The $1 provided <nowiki>[$2]</nowiki> is invalid.',
2424 'article-comments-required-field' => '$1 field is required.',
2525 '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}}:',
2727 'article-comments-no-comments' => 'Sorry, the page "[[$1]]" is not accepting comments at this time.',
2828 'article-comments-talk-page-starter' => "<noinclude>Comments on [[$1]]\n<comments />\n----- __NOEDITSECTION__</noinclude>\n",
2929 'article-comments-commenter-said' => '$1 said ...',

Status & tagging log