From: Alexandre Emsenhuber Date: Mon, 31 Oct 2011 16:33:56 +0000 (+0000) Subject: * (bug 31818) 'usercreated' message now supports GENDER X-Git-Tag: 1.31.0-rc.0~26811 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=8cf9e2fd99db80fe9e3c0918dba55ca0b8cd6124;p=lhc%2Fweb%2Fwiklou.git * (bug 31818) 'usercreated' message now supports GENDER --- diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index bd0b485533..867285c443 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -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. diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index 8a60c38f5a..a4890a1481 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -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 ) ); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 71f223a03d..e0230a74f9 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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:',