r42435 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42434‎ | r42435 | r42436 >
Date:00:10, 24 October 2008
Author:brion
Status:old
Tags:
Comment:
fix for plural in drafts count message -- wfMsgExt() with 'parsemag' option needed here, since it's a plaintext message
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 - wfMsg( 'drafts-view-notice-link', $numDrafts )
 89+ wfMsgExt( 'drafts-view-notice-link', array( 'parsemag' ), $numDrafts )
9090 );
9191 $wgOut->addHTML( wfMsgHTML( 'drafts-view-notice', $link ) );
9292 }

Status & tagging log