r48162 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48161‎ | r48162 | r48163 >
Date:16:17, 8 March 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Add GENDER support for 'g-created-by'
Modified paths:
  • /trunk/extensions/SocialProfile/UserGifts/SpecialGiftManager.php (modified) (history)
  • /trunk/extensions/SocialProfile/UserGifts/UserGifts.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserGifts/UserGifts.i18n.php
@@ -32,7 +32,7 @@
3333 'g-cancel' => 'Cancel',
3434 'g-count' => '$1 has $2 {{PLURAL:$2|gift|gifts}}.',
3535 'g-create-gift' => 'Create gift',
36 - 'g-created-by' => 'created by',
 36+ 'g-created-by' => 'created by', # this message supports {{GENDER}}
3737 'g-current-image' => 'Current image',
3838 'g-delete-message' => 'Are your sure you want to delete the gift "$1"?
3939 This will also delete it from users who may have received it.',
Index: trunk/extensions/SocialProfile/UserGifts/SpecialGiftManager.php
@@ -165,7 +165,7 @@
166166 if( $gift_id ){
167167 $creator = Title::makeTitle( NS_USER, $gift['creator_user_name'] );
168168 $form .= '<tr>
169 - <td class="view-form">'.wfMsg('g-created-by').'</td><td><a href="' . $creator->escapeFullURL() . '">' . $gift['creator_user_name'] . '</a></td>
 169+ <td class="view-form">'.wfMsgExt('g-created-by', 'parsemag', $gift['creator_user_name'] ).'</td><td><a href="' . $creator->escapeFullURL() . '">' . $gift['creator_user_name'] . '</a></td>
170170 </tr>';
171171 }
172172 global $wgUploadPath;

Status & tagging log