r49739 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49738‎ | r49739 | r49740 >
Date:21:36, 22 April 2009
Author:raymond
Status:deferred
Tags:
Comment:
* Enable PLURAL for 'mv_stream_delete_warrning'
* Remove unused message 'mv_stream_delete_warning'
Spotted by EugeneZelenko at translatewiki.net
Modified paths:
  • /trunk/extensions/MetavidWiki/includes/articlepages/MV_StreamPage.php (modified) (history)
  • /trunk/extensions/MetavidWiki/languages/MV_Messages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/includes/articlepages/MV_StreamPage.php
@@ -103,18 +103,17 @@
104104 $page = 'stream page';
105105 $wgOut->addHTML( $page );
106106 $wgOut->returnToMain( false );
107 -
 107+
108108 $wgOut->output();
109109 }
110110 function delete() {
111111 global $wgOut, $wgRequest, $wgUser;
112112 if ( !$wgRequest->wasPosted() ) {
113 - $wgOut->addHTML( wfMsg( 'mv_stream_delete_warrning',
 113+ $wgOut->addHTML( wfMsgExt( 'mv_stream_delete_warrning', 'parsemag',
114114 MV_Index::countMVDInRange( $this->mvTitle->getStreamId() ) ) );
115115 }
116116 // update text button to delete stream rather than delete stream
117117 parent::delete();
118118 }
119 -
120 - }
121 -?>
 119+}
 120+
Index: trunk/extensions/MetavidWiki/languages/MV_Messages.php
@@ -241,7 +241,7 @@
242242 'mv_error_stream_insert' => 'failed to insert stream',
243243 'mv_redirect_and_delete_reason' => 'removed redirect page',
244244 'mv_remove_reason' => 'Reason for deletion:',
245 - 'mv_stream_delete_warrning' => '<b>Removing this stream will also remove $1 pieces of associative metadata</b><br />',
 245+ 'mv_stream_delete_warrning' => "'''Removing this stream will also remove $1 {{PLURAL:$1|piece|pieces}} of associative metadata'''<br />",
246246
247247 # stream type
248248 'mv_label_stream_type' => 'Stream type',
@@ -249,7 +249,6 @@
250250 'mv_metavid_live' => 'Set up live stream',
251251 'mv_upload_file' => 'Upload file',
252252 'mv_external_file' => 'External file',
253 - 'mv_stream_delete_warning' => 'Deleting this stream will additionally remove $1 pages of metadata',
254253
255254 # tools
256255 'mv_tool_search' => 'Search',

Status & tagging log