r51473 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51472‎ | r51473 | r51474 >
Date:18:49, 4 June 2009
Author:jan
Status:deferred
Tags:
Comment:
Add Username as $1 to poll-score-created
Modified paths:
  • /trunk/extensions/Poll/Poll.i18n.php (modified) (history)
  • /trunk/extensions/Poll/Poll_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Poll/Poll_body.php
@@ -152,7 +152,7 @@
153153 if($alternative_6 != "") { $wgOut->addHtml( '<tr><td>'.Xml::radio('vote', '6').' '.$alternative_6.'</td></tr>' ); }
154154 $wgOut->addHtml( '<tr><td>'.Xml::submitButton(wfMsg( 'poll-submit' )).''.Xml::hidden('type', 'vote').'</td><td><a href="'.$wgTitle->getFullURL( 'action=score&id='.$vid ).'">'.wfMsg( 'poll-title-score' ).'</a></td></tr>' );
155155 $wgOut->addHtml( '<tr><td>' );
156 - $wgOut->addWikiText( '<small>'.wfMsg( 'poll-score-created' ).''.$creater.']]</small>' );
 156+ $wgOut->addWikiText( '<small>'.wfMsg( 'poll-score-created', $creater ).'</small>' );
157157 $wgOut->addHtml( '</td></tr>' );
158158 $wgOut->addHtml( Xml::closeElement( 'table' ) );
159159 if( ($poll_admin == true) OR ($creater == $user) ) {
@@ -204,7 +204,7 @@
205205 if($alternative_5 != "") { $wgOut->addHtml( '<tr><td>'.$alternative_5.'</td><td>'.$query_num_5.'</td></tr>' ); }
206206 if($alternative_6 != "") { $wgOut->addHtml( '<tr><td>'.$alternative_6.'</td><td>'.$query_num_6.'</td></tr>' ); }
207207 $wgOut->addHtml( '<tr><td>' );
208 - $wgOut->addWikiText( '<small>'.wfMsg( 'poll-score-created' ).''.$creater.']]</small>' );
 208+ $wgOut->addWikiText( '<small>'.wfMsg( 'poll-score-created', $creater ).'</small>' );
209209 $wgOut->addHtml( '</td></tr>' );
210210 $wgOut->addHtml( Xml::closeElement( 'table' ) );
211211 $wgOut->addHtml( '<a href="'.$wgTitle->getFullURL('action=list').'">'.wfMsg('poll-back').'</a>' );
Index: trunk/extensions/Poll/Poll.i18n.php
@@ -55,7 +55,7 @@
5656 'poll-log-change' => '$1 changed poll "$2"',
5757 'poll-log-delete' => '$1 deleted poll "$2"',
5858 'poll-logentry' => 'Polls changed',
59 - 'poll-score-created' => 'created from [[User:',
 59+ 'poll-score-created' => 'created from [[User:$1]]',
6060 'poll-administration' => 'Administration:',
6161 'poll-no-dis' => 'No Description!',
6262 );
@@ -107,7 +107,7 @@
108108 'poll-log-change' => '$1 hat "$2" geändert!',
109109 'poll-log-delete' => '$1 hat "$2" gelöscht!',
110110 'poll-logentry' => 'Änderung an den Umfragen wurde vorgenommen',
111 - 'poll-score-created' => 'erstellt von [[Benutzer:',
 111+ 'poll-score-created' => 'erstellt von [[Benutzer:$1]]',
112112 'poll-administration' => 'Administration:',
113113 'poll-no-dis' => 'Keine Beschreibung vorhanden!',
114114 );

Status & tagging log