r51309 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51308‎ | r51309 | r51310 >
Date:21:22, 1 June 2009
Author:purodha
Status:ok
Tags:
Comment:
Message 'history-feed-item-nocomment' - date and time separated as of request by user "Der Umherirrende" at
http://translatewiki.net/w/i.php?title=Support&oldid=1243738#split_date_and_time
Modified paths:
  • /trunk/phase3/includes/PageHistory.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesQqq.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/PageHistory.php
@@ -560,9 +560,12 @@
561561
562562 if( $rev->getComment() == '' ) {
563563 global $wgContLang;
 564+ $ts = $rev->getTimestamp();
564565 $title = wfMsgForContent( 'history-feed-item-nocomment',
565 - $rev->getUserText(),
566 - $wgContLang->timeanddate( $rev->getTimestamp() ) );
 566+ $rev->getUserText(),
 567+ $wgContLang->timeanddate( $ts ),
 568+ $wgContLang->date( $ts ),
 569+ $wgContLang->time( $ts ) );
567570 } else {
568571 $title = $rev->getUserText() . wfMsgForContent( 'colon-separator' ) . FeedItem::stripComment( $rev->getComment() );
569572 }
Index: trunk/phase3/languages/messages/MessagesQqq.php
@@ -738,11 +738,11 @@
739739
740740 # Revision feed
741741 'history-feed-item-nocomment' => "Title for each revision when viewing the RSS/Atom feed for a page history:
 742+* '''$1''' - user name,
 743+* '''$2''' - date/time,
 744+* '''$3''' - date,
 745+* '''$4''' - time.",
742746
743 -'''$1''' - user name
744 -
745 -'''$2''' - date/time",
746 -
747747 # Revision deletion
748748 'rev-delundel' => 'Link in page history for oversight',
749749 'revisiondelete' => '{{RevisionDelete}}

Status & tagging log