r42430 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42429‎ | r42430 | r42431 >
Date:23:07, 23 October 2008
Author:tparscal
Status:old (Comments)
Tags:
Comment:
Took advantage of the plural functionality in the message preprocessor.
Modified paths:
  • /trunk/extensions/Drafts/Drafts.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Drafts/Drafts.hooks.php
@@ -85,7 +85,7 @@
8686 'href' => $wgTitle->getFullURL( 'action=edit' ),
8787 'onclick' => htmlspecialchars( "if( !wgAjaxSaveDraft.insync ) return confirm('" . Xml::escapeJsString( wfMsgHTML( 'drafts-view-warn' ) ) . "')" )
8888 ),
89 - $numDrafts > 1 ? wfMsg( 'drafts-view-notice-plural', $numDrafts ) : wfMsg( 'drafts-view-notice-single', $numDrafts )
 89+ wfMsg( 'drafts-view-notice-link', $numDrafts )
9090 );
9191 $wgOut->addHTML( wfMsgHTML( 'drafts-view-notice', $link ) );
9292 }

Comments

#Comment by Brion VIBBER (talk | contribs)   00:11, 24 October 2008

Added a 'parsemag' option (with wfMsgExt()) in r42435 to make the plural take proper effect

Status & tagging log