Allow gender based localisation for 'lastmodifiedatby'
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Sat, 25 Apr 2009 09:02:54 +0000 (09:02 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Sat, 25 Apr 2009 09:02:54 +0000 (09:02 +0000)
includes/Credits.php
languages/messages/MessagesQqq.php

index ae9377f..9137c3f 100644 (file)
@@ -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() );
        }
 
        /**
index ee64e05..68e1860 100644 (file)
@@ -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 <nowiki>&action=credits</nowiki> at the end of any URL in the address bar).