* (bug 31818) 'usercreated' message now supports GENDER
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 31 Oct 2011 16:33:56 +0000 (16:33 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 31 Oct 2011 16:33:56 +0000 (16:33 +0000)
RELEASE-NOTES-1.19
includes/specials/SpecialListusers.php
languages/messages/MessagesEn.php

index bd0b485..867285c 100644 (file)
@@ -122,6 +122,7 @@ production.
 * (bug 29912) Unit tests break if parsertest tables are still present
 * (bug 19186) Special:UserLogin's title on Special:SpecialPages now says
   "create account" when the user cannot create an account
+* (bug 31818) 'usercreated' message now supports GENDER
 
 === API changes in 1.19 ===
 * (bug 19838) siprop=interwikimap can now use the interwiki cache.
index 8a60c38..a4890a1 100644 (file)
@@ -161,8 +161,7 @@ class UsersPager extends AlphabeticPager {
                if( $row->creation ) {
                        $d = $lang->date( wfTimestamp( TS_MW, $row->creation ), true );
                        $t = $lang->time( wfTimestamp( TS_MW, $row->creation ), true );
-                       $created = ' (' . wfMsg( 'usercreated', $d, $t ) . ')';
-                       $created = htmlspecialchars( $created );
+                       $created = ' (' . wfMsgExt( 'usercreated', array( 'parsemag', 'escape' ), $d, $t, $row->user_name ) . ')';
                }
 
                wfRunHooks( 'SpecialListusersFormatRow', array( &$item, $row ) );
index 71f223a..e0230a7 100644 (file)
@@ -2540,7 +2540,7 @@ It now redirects to [[$2]].',
 'listusers-editsonly'             => 'Show only users with edits',
 'listusers-creationsort'          => 'Sort by creation date',
 'usereditcount'                   => '$1 {{PLURAL:$1|edit|edits}}',
-'usercreated'                     => 'Created on $1 at $2',
+'usercreated'                     => '{{GENDER:$3|Created}} on $1 at $2',
 'newpages'                        => 'New pages',
 'newpages-summary'                => '', # do not translate or duplicate this message to other languages
 'newpages-username'               => 'Username:',