r47543 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47542‎ | r47543 | r47544 >
Date:12:53, 20 February 2009
Author:raymond
Status:ok
Tags:
Comment:
Move <div>...</div> from message to program code for consistency with other stylings.
Other languages will be updated by Translatewiki
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1128,7 +1128,7 @@
11291129 $o->tb_name,
11301130 $rmvtxt);
11311131 }
1132 - $wgOut->addWikiMsg( 'trackbackbox', $tbtext );
 1132+ $wgOut->wrapWikiMsg( "<div id='mw_trackbacks'>$1</div>\n", array( 'trackbackbox', $tbtext ) );
11331133 $this->mTitle->invalidateCache();
11341134 }
11351135
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -3562,9 +3562,8 @@
35633563 'scarytranscludetoolong' => '[URL is too long]',
35643564
35653565 # Trackbacks
3566 -'trackbackbox' => '<div id="mw_trackbacks">Trackbacks for this page:<br />
3567 -$1
3568 -</div>',
 3566+'trackbackbox' => 'Trackbacks for this page:<br />
 3567+$1',
35693568 'trackback' => '; $4$5 : [$2 $1]', # do not translate or duplicate this message to other languages
35703569 'trackbackexcerpt' => '; $4$5 : [$2 $1]: <nowiki>$3</nowiki>', # do not translate or duplicate this message to other languages
35713570 'trackbackremove' => ' ([$1 Delete])',

Status & tagging log