r49860 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49859‎ | r49860 | r49861 >
Date:09:02, 25 April 2009
Author:siebrand
Status:ok
Tags:
Comment:
Allow gender based localisation for 'lastmodifiedatby'
Modified paths:
  • /trunk/phase3/includes/Credits.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesQqq.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Credits.php
@@ -87,7 +87,7 @@
8888 $d = '';
8989 $t = '';
9090 }
91 - return wfMsg( 'lastmodifiedatby', $d, $t, self::userLink( $user ) );
 91+ return wfMsgExt( 'lastmodifiedatby', 'parsemag', $d, $t, self::userLink( $user ), $user->getName() );
9292 }
9393
9494 /**
Index: trunk/phase3/languages/messages/MessagesQqq.php
@@ -2225,6 +2225,7 @@
22262226 * $1: date
22272227 * $2: time
22282228 * $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.
 2229+* $4: username in plain text. Can be used for GENDER
22292230
22302231 See also [[MediaWiki:Lastmodifiedat/{{SUBPAGENAME}}]].",
22312232 '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).

Status & tagging log