r53515 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53514‎ | r53515 | r53516 >
Date:02:14, 20 July 2009
Author:purodha
Status:ok
Tags:
Comment:
Allow date/time separation in the data following MediaWiki:prefs-registration
Modified paths:
  • /trunk/phase3/includes/Preferences.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Preferences.php
@@ -143,7 +143,10 @@
144144 array(
145145 'type' => 'info',
146146 'label-message' => 'prefs-registration',
147 - 'default' => $wgLang->timeanddate( $user->getRegistration(), true ),
 147+ 'default' => wfMsgExt( 'prefs-registration-date-time', 'parsemag',
 148+ $wgLang->timeanddate( $user->getRegistration(), true ),
 149+ $wgLang->date( $user->getRegistration(), true ),
 150+ $wgLang->time( $user->getRegistration(), true ) ),
148151 'section' => 'personal/info',
149152 );
150153 }
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -1755,6 +1755,7 @@
17561756 'uid' => 'User ID:',
17571757 'prefs-memberingroups' => 'Member of {{PLURAL:$1|group|groups}}:',
17581758 'prefs-registration' => 'Registration time:',
 1759+'prefs-registration-date-time' => '$1',
17591760 'yourrealname' => 'Real name:',
17601761 'yourlanguage' => 'Language:',
17611762 'yourvariant' => 'Variant:', # only translate this message to other languages if you have to change it

Follow-up revisions

RevisionCommit summaryAuthorDate
r53519complement r53515purodha02:27, 20 July 2009
r53533Follow-up r53515: register 'prefs-registration-date-time' and mark it optional.siebrand06:08, 20 July 2009

Status & tagging log