r48163 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48162‎ | r48163 | r48164 >
Date:16:43, 8 March 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Add GENDER support for 'review_user_reviews'
Modified paths:
  • /trunk/extensions/Review/Review.i18n.php (modified) (history)
  • /trunk/extensions/Review/Review.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Review/Review.i18n.php
@@ -35,7 +35,7 @@
3636 'review_version_reviews_link' => "<small>(version reviews)</small>",
3737 'review_concerns_page' => "This review is about the page \"$1\".",
3838 'review_concerns_user' => "This is about reviews by user \"$1\".",
39 - 'review_user_reviews' => "<small>(reviews by this user)</small>",
 39+ 'review_user_reviews' => "<small>(reviews by this user)</small>", # This message supports {{GENDER}}
4040 'review_user_page_list' => "The user reviewed the following pages:",
4141 'review_user_details_link' => "(details)",
4242 'review_do_merge' => "Merge my reviews of other revisions of this page into this one",
Index: trunk/extensions/Review/Review.php
@@ -581,9 +581,11 @@
582582 }
583583 $ret .= $skin->makeLinkObj ( $user->getUserPage() , $user->getName() ) ;
584584 $ret .= "<br />" ;
585 - $ret .= $skin->makeLinkObj ( $wgTitle ,
586 - wfMsgForContent('review_user_reviews') ,
587 - "mode=view_user_reviews&{$user_reviews}" ) ;
 585+ $ret .= $skin->makeLinkObj (
 586+ $wgTitle ,
 587+ wfMsgExt( 'review_user_reviews', array( 'content', 'parsemag' ), $user->getName() ),
 588+ "mode=view_user_reviews&{$user_reviews}"
 589+ );
588590 } else {
589591 # Individual revision
590592 $page_id = $title->getArticleID() ;

Status & tagging log