r58438 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58437‎ | r58438 | r58439 >
Date:19:06, 2 November 2009
Author:raymond
Status:ok
Tags:
Comment:
i18n tweak: Use 'colon-separator' instead of hardcoded colon
Modified paths:
  • /trunk/phase3/includes/FileDeleteForm.php (modified) (history)
  • /trunk/phase3/includes/Title.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialUndelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -2880,7 +2880,7 @@
28812881 $comment = wfMsgForContent( '1movedto2_redir', $this->getPrefixedText(), $nt->getPrefixedText() );
28822882
28832883 if ( $reason ) {
2884 - $comment .= ": $reason";
 2884+ $comment .= wfMsgForContent( 'colon-separator' ) . $reason;
28852885 }
28862886
28872887 $now = wfTimestampNow();
Index: trunk/phase3/includes/FileDeleteForm.php
@@ -99,7 +99,7 @@
100100 $log = new LogPage( 'delete' );
101101 $logComment = wfMsgForContent( 'deletedrevision', $oldimage );
102102 if( trim( $reason ) != '' )
103 - $logComment .= ": {$reason}";
 103+ $logComment .= wfMsgForContent( 'colon-separator' ) . $reason;
104104 $log->addEntry( 'delete', $title, $logComment );
105105 }
106106 } else {
Index: trunk/phase3/includes/specials/SpecialUndelete.php
@@ -358,7 +358,7 @@
359359 }
360360
361361 if( trim( $comment ) != '' )
362 - $reason .= ": {$comment}";
 362+ $reason .= wfMsgForContent( 'colon-separator' ) . $comment;
363363 $log->addEntry( 'restore', $this->title, $reason );
364364
365365 return array($textRestored, $filesRestored, $reason);

Status & tagging log