r57802 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57801‎ | r57802 | r57803 >
Date:06:59, 16 October 2009
Author:raymond
Status:ok (Comments)
Tags:
Comment:
Split time and date for better i18n
Translatewiki uses this since months but it was was never done in core?!
Modified paths:
  • /trunk/phase3/includes/HistoryPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/HistoryPage.php
@@ -259,8 +259,11 @@
260260 if( $rev->getComment() == '' ) {
261261 global $wgContLang;
262262 $title = wfMsgForContent( 'history-feed-item-nocomment',
263 - $rev->getUserText(),
264 - $wgContLang->timeanddate( $rev->getTimestamp() ) );
 263+ $rev->getUserText(),
 264+ $wgContLang->timeanddate( $rev->getTimestamp() ),
 265+ $wgContLang->date( $rev->getTimestamp() ),
 266+ $wgContLang->time( $rev->getTimestamp() )
 267+ );
265268 } else {
266269 $title = $rev->getUserText() .
267270 wfMsgForContent( 'colon-separator' ) .

Comments

#Comment by Umherirrender (talk | contribs)   07:59, 16 October 2009

Was done in rev:51309, but lost in rev:55168.

Status & tagging log