From: Raimond Spekking Date: Thu, 8 Mar 2007 11:54:03 +0000 (+0000) Subject: Add option for "newbies" to SpecialContributions X-Git-Tag: 1.31.0-rc.0~53859 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=2fe700c389288a648d072ee9eb6439cc81d96e10;p=lhc%2Fweb%2Fwiklou.git Add option for "newbies" to SpecialContributions Better XML code for form --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 0d2f4237a0..dfb2569233 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -198,6 +198,11 @@ function wfSpecialContributions( $par = null ) { global $wgUser, $wgOut, $wgLang, $wgRequest; $target = isset( $par ) ? $par : $wgRequest->getVal( 'target' ); + $radiobox = $wgRequest->getVal( 'newbie' ); + + // check for radiobox + if ( $radiobox == 'contribs-newbie' ) $target = 'newbies'; + if ( !strlen( $target ) ) { $wgOut->addHTML( contributionsForm( '' ) ); return; @@ -375,7 +380,7 @@ function contributionsSub( $nt ) { * @param $options Array: the options to be included. */ function contributionsForm( $options ) { - global $wgScript, $wgTitle; + global $wgScript, $wgTitle, $wgRequest; $options['title'] = $wgTitle->getPrefixedText(); if (!isset($options['target'])) @@ -392,11 +397,14 @@ function contributionsForm( $options ) { $f .= '
' . Xml::element( 'legend', array(), wfMsg( 'sp-contributions-search' ) ) . - Xml::inputLabel( wfMsg( 'sp-contributions-username' ), 'target', 'target', 20 , $options['target']) . ' ' . - wfMsgHtml( 'namespace' ) . ' ' . + Xml::radioLabel( wfMsgExt( 'sp-contributions-newbies', array( 'parseinline' ) ), 'newbie' , 'contribs-newbie' , 'contribs-newbie', 'contribs-newbie' ) . '
' . + Xml::radioLabel( wfMsgExt( 'sp-contributions-username', array( 'parseinline' ) ), 'newbie' , 'contribs-all', 'contribs-all', 'contribs-all' ) . ' ' . + Xml::input( 'target', 20, $options['target']) . ' '. + Xml::label( wfMsg( 'namespace' ), 'namespace' ) . Xml::namespaceSelector( $options['namespace'], '' ) . Xml::submitButton( wfMsg( 'sp-contributions-submit' ) ) . - "
\n"; + '' . + Xml::closeElement( 'form' ); return $f; } diff --git a/languages/messages/MessagesDe.php b/languages/messages/MessagesDe.php index 6c013b3b82..d28c4fef0a 100644 --- a/languages/messages/MessagesDe.php +++ b/languages/messages/MessagesDe.php @@ -720,6 +720,8 @@ Nähere Angaben zum Löschvorgang sowie eine Begründung finden sich im [{{fullu Als Administrator können Sie sie weiterhin einsehen. Nähere Angaben zum Löschvorgang sowie eine Begründung finden sich im [{{fullurl:Special:Log/delete|page={{PAGENAMEE}}}} Lösch-Logbuch].', 'rev-delundel' => 'zeige/verstecke', +'historysize' => '($1 Bytes)', +'historyempty' => '(leer)', 'history-feed-title' => 'Versionsgeschichte', 'history-feed-description' => 'Versionsgeschichte für diese Seite in {{SITENAME}}', @@ -1424,6 +1426,7 @@ Im [[Special:Log/delete|Lösch-Logbuch]] finden Sie eine Übersicht der kürzlic 'sp-contributions-oldest' => 'Älteste', 'sp-contributions-newer' => 'Jüngere $1', 'sp-contributions-older' => 'Ältere $1', +'sp-contributions-newbies' => 'Zeige nur Beiträge neuer Benutzer', 'sp-contributions-newbies-sub' => 'Für Neulinge', 'sp-contributions-blocklog' => 'Sperrlogbuch', 'sp-contributions-search' => 'Suche nach Benutzerbeiträgen', diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index a72792532f..f53026b8cb 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1849,6 +1849,7 @@ Consult the [[Special:Log/delete|deletion log]] for a record of recent deletions 'sp-contributions-oldest' => 'Oldest', 'sp-contributions-newer' => 'Newer $1', 'sp-contributions-older' => 'Older $1', +'sp-contributions-newbies' => 'Show contributions of newbies only', 'sp-contributions-newbies-sub' => 'For newbies', 'sp-contributions-blocklog' => 'Block log', 'sp-contributions-search' => 'Search for contributions', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 0007412298..97ac55adf5 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -541,6 +541,9 @@ $wgMessageStructure = array( 'rev-deleted-text-permission', 'rev-deleted-text-view', 'rev-delundel', + 'historysize', + 'historyempty', + ), 'history-feed' => array( 'history-feed-title', @@ -1183,6 +1186,7 @@ $wgMessageStructure = array( 'sp-contributions-oldest', 'sp-contributions-newer', 'sp-contributions-older', + 'sp-contributions-newbies', 'sp-contributions-newbies-sub', 'sp-contributions-blocklog', 'sp-contributions-search',