Index: trunk/extensions/uniwiki/FormatChanges/FormatChanges.i18n.php |
— | — | @@ -12,8 +12,8 @@ |
13 | 13 | $messages['en'] = array( |
14 | 14 | 'formatchanges-desc' => 'Reformats the [[Special:RecentChanges|recent changes]]', |
15 | 15 | 'formatchanges-anonymous' => 'Anonymous', |
16 | | - 'formatchanges-createdby' => 'created by', |
17 | | - 'formatchanges-editedby' => 'edited by', |
| 16 | + 'formatchanges-createdby' => '$1 - created by $2 ($3)', |
| 17 | + 'formatchanges-editedby' => '$1 - edited by $2 ($3)', |
18 | 18 | ); |
19 | 19 | |
20 | 20 | /** Message documentation (Message documentation) |
— | — | @@ -21,6 +21,12 @@ |
22 | 22 | */ |
23 | 23 | $messages['qqq'] = array( |
24 | 24 | 'formatchanges-desc' => 'Short description of the extension, shown in [[Special:Version]]. Do not translate or change links.', |
| 25 | + 'formatchanges-createdby' => '* $1 is a link to a page with the page title as link description |
| 26 | +* $2 is a link to a user page with the user name as link description |
| 27 | +* $3 is the time at which the page was created', |
| 28 | + 'formatchanges-editedby' => '* $1 is a link to a page with the page title as link description |
| 29 | +* $2 is a link to a user page with the user name as link description |
| 30 | +* $3 is the time at which the page was changed', |
25 | 31 | ); |
26 | 32 | |
27 | 33 | /** Arabic (العربية) |
Index: trunk/extensions/uniwiki/FormatChanges/FormatChanges.php |
— | — | @@ -71,8 +71,12 @@ |
72 | 72 | $user_link = ( $rc_user > 0 ) ? $this->skin->userLink( $rc_user, $rc_user_text ) : wfMsg( 'formatchanges-anonymous' ); |
73 | 73 | } |
74 | 74 | $timestamp = $wgLang->time( $rc->mAttribs['rc_timestamp'], true, true ); |
75 | | - $action = ( $rc_type == RC_NEW ) ? wfMsg( 'formatchanges-createdby' ) : wfMsg( 'formatchanges-editedby' ); |
76 | | - $line .= $page_link . " - " . $action . " " . $user_link . " (" . $timestamp . ")"; |
| 75 | + |
| 76 | + if ( $rc_type == RC_NEW ) { |
| 77 | + $line = wfMsgHtml( 'formatchanges-createdby', $page_link, $user_link, $timestamp ); |
| 78 | + } else { |
| 79 | + $line = wfMsgHtml( 'formatchanges-editedby', $page_link, $user_link, $timestamp ); |
| 80 | + } |
77 | 81 | $line .= "</li>"; |
78 | 82 | } |
79 | 83 | |