From a197edc25ddaf1146349e5742bcb6c50cf725d13 Mon Sep 17 00:00:00 2001 From: Arne Heizmann Date: Wed, 11 Aug 2004 23:21:50 +0000 Subject: [PATCH] Currently, if you go to [[Special:Contributions/newbies]], underneath the page title it will say "For". This patch makes its say "for newbies". --- includes/SpecialContributions.php | 10 ++++------ languages/Language.php | 15 ++++++++------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 278d7f4838..a745bd7222 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -15,7 +15,7 @@ function wfSpecialContributions( $par = "" ) $wgOut->errorpage( "notargettitle", "notargettext" ); return; } - + # FIXME: Change from numeric offsets to date offsets list( $limit, $offset ) = wfCheckLimits( 50, "" ); $offlimit = $limit + $offset; @@ -43,14 +43,12 @@ function wfSpecialContributions( $par = "" ) $talk = $nt->getTalkPage(); if( $talk ) $ul .= " (" . $sk->makeLinkObj( $talk, $wgLang->getNsText(Namespace::getTalk(0)) ) . ")"; - else - $ul .= "brrrp"; if ( $target == 'newbies' ) { # View the contributions of all recently created accounts $max = $dbr->selectField( 'user', 'max(user_id)', false, $fname ); $userCond = ">" . ($max - $max / 100); - $ul = ""; + $ul = wfMsg ( 'newbies' ); $id = 0; } @@ -125,7 +123,7 @@ function wfSpecialContributions( $par = "" ) $me = $obj1->cur_minor_edit; $isnew = $obj1->cur_is_new; $usertext = $obj1->cur_user_text; - + $obj1 = $dbr->fetchObject( $res1 ); $topmark = true; --$nCur; @@ -146,7 +144,7 @@ function wfSpecialContributions( $par = "" ) ucListEdit( $sk, $ns, $t, $ts, $topmark, $comment, ( $me > 0), $isnew, $usertext ); } $wgOut->addHTML( "\n" ); - + # Validations $val = new Validation ; $val = $val->countUserValidations ( $id ) ; diff --git a/languages/Language.php b/languages/Language.php index e5ac933099..5145cd2e46 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1151,13 +1151,14 @@ See [[{{ns:4}}:Deletion_log]] for a record of recent deletions and restorations. # Contributions # -'contributions' => 'User contributions', -'mycontris' => 'My contributions', -'contribsub' => "For $1", -'nocontribs' => 'No changes were found matching these criteria.', -'ucnote' => "Below are this user's last $1 changes in the last $2 days.", -'uclinks' => "View the last $1 changes; view the last $2 days.", -'uctop' => ' (top)' , +'contributions' => 'User contributions', +'mycontris' => 'My contributions', +'contribsub' => "For $1", +'nocontribs' => 'No changes were found matching these criteria.', +'ucnote' => "Below are this user's last $1 changes in the last $2 days.", +'uclinks' => "View the last $1 changes; view the last $2 days.", +'uctop' => ' (top)' , +'newbies' => 'newbies', # What links here # -- 2.20.1