r46193 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46192‎ | r46193 | r46194 >
Date:11:29, 25 January 2009
Author:siebrand
Status:ok
Tags:
Comment:
Split date and time in 'usercreated'
Modified paths:
  • /trunk/phase3/includes/specials/SpecialListusers.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialListusers.php
@@ -142,8 +142,9 @@
143143 $created = '';
144144 # Some rows may be NULL
145145 if( $row->creation ) {
146 - $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->creation ), true );
147 - $created = ' (' . wfMsgHtml( 'usercreated', $d ) . ')';
 146+ $d = $wgLang->date( wfTimestamp( TS_MW, $row->creation ), true );
 147+ $t = $wgLang->time( wfTimestamp( TS_MW, $row->creation ), true );
 148+ $created = ' (' . wfMsgHtml( 'usercreated', $d, $t ) . ')';
148149 }
149150
150151 wfRunHooks( 'SpecialListusersFormatRow', array( &$item, $row ) );
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -2133,7 +2133,7 @@
21342134 'listusers-editsonly' => 'Show only users with edits',
21352135 'listusers-creationsort' => 'Sort by creation date',
21362136 'usereditcount' => '$1 {{PLURAL:$1|edit|edits}}',
2137 -'usercreated' => 'Created on $1',
 2137+'usercreated' => 'Created on $1 at $2',
21382138 'newpages' => 'New pages',
21392139 'newpages-summary' => '', # do not translate or duplicate this message to other languages
21402140 'newpages-username' => 'Username:',

Status & tagging log