From: Siebrand Mazeland Date: Sat, 25 Apr 2009 09:02:54 +0000 (+0000) Subject: Allow gender based localisation for 'lastmodifiedatby' X-Git-Tag: 1.31.0-rc.0~42032 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=10500033b7264ac2ec2fdfacfbb72450888e8e81;p=lhc%2Fweb%2Fwiklou.git Allow gender based localisation for 'lastmodifiedatby' --- diff --git a/includes/Credits.php b/includes/Credits.php index ae9377f27f..9137c3fc5d 100644 --- a/includes/Credits.php +++ b/includes/Credits.php @@ -87,7 +87,7 @@ class Credits { $d = ''; $t = ''; } - return wfMsg( 'lastmodifiedatby', $d, $t, self::userLink( $user ) ); + return wfMsgExt( 'lastmodifiedatby', 'parsemag', $d, $t, self::userLink( $user ), $user->getName() ); } /** diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index ee64e0527c..68e1860446 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -2225,6 +2225,7 @@ This message is the variable $3 in the message [[Mediawiki:lastmodifiedatby/{{SU * $1: date * $2: time * $3: if the user has entered his 'real name' in his preferences then this variable is his 'real name'. If the user has not entered his 'real name' in his preferences then this variable is the message [[Mediawiki:siteuser/{{SUBPAGENAME}}]], which includes his username. +* $4: username in plain text. Can be used for GENDER See also [[MediaWiki:Lastmodifiedat/{{SUBPAGENAME}}]].", 'othercontribs' => 'This message is shown when viewing the credits of a page (example: {{fullurl:Main Page|action=credits}}). Note that this action is disabled by default (currently enabled on Betawiki - to use type &action=credits at the end of any URL in the address bar).