From 10500033b7264ac2ec2fdfacfbb72450888e8e81 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 25 Apr 2009 09:02:54 +0000 Subject: [PATCH] Allow gender based localisation for 'lastmodifiedatby' --- includes/Credits.php | 2 +- languages/messages/MessagesQqq.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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). -- 2.20.1