Page MenuHomePhabricator

specialcontributions_title.patch

Authored By
bzimport
Nov 21 2014, 10:14 PM
Size
3 KB
Referenced Files
None
Subscribers
None

specialcontributions_title.patch

Index: maintenance/language/messages.inc
===================================================================
--- maintenance/language/messages.inc (revision 38699)
+++ maintenance/language/messages.inc (working copy)
@@ -1511,6 +1511,7 @@
),
'contributions' => array(
'contributions',
+ 'contributions-title',
'mycontris',
'contribsub2',
'nocontribs',
@@ -1521,6 +1522,7 @@
'sp-contributions' => array(
'sp-contributions-newbies',
'sp-contributions-newbies-sub',
+ 'sp-contributions-newbies-title',
'sp-contributions-blocklog',
'sp-contributions-search',
'sp-contributions-username',
Index: includes/specials/SpecialContributions.php
===================================================================
--- includes/specials/SpecialContributions.php (revision 38699)
+++ includes/specials/SpecialContributions.php (working copy)
@@ -223,8 +223,10 @@
if ( $target != 'newbies' ) {
$target = $nt->getText();
$wgOut->setSubtitle( contributionsSub( $nt, $id ) );
+ $wgOut->setHTMLTitle( wfMsg( 'pagetitle', wfMsg( 'contributions-title', $target ) ) );
} else {
$wgOut->setSubtitle( wfMsgHtml( 'sp-contributions-newbies-sub') );
+ $wgOut->setHTMLTitle( wfMsg( 'pagetitle', wfMsg( 'sp-contributions-newbies-title' ) ) );
}
if ( ( $ns = $wgRequest->getVal( 'namespace', null ) ) !== null && $ns !== '' ) {
Index: languages/messages/MessagesEn.php
===================================================================
--- languages/messages/MessagesEn.php (revision 38699)
+++ languages/messages/MessagesEn.php (working copy)
@@ -2286,23 +2286,25 @@
'blanknamespace' => '(Main)',
# Contributions
-'contributions' => 'User contributions',
-'mycontris' => 'My contributions',
-'contribsub2' => 'For $1 ($2)',
-'nocontribs' => 'No changes were found matching these criteria.',
-'uctop' => '(top)',
-'month' => 'From month (and earlier):',
-'year' => 'From year (and earlier):',
+'contributions' => 'User contributions',
+'contributions-title' => 'User contributions for $1',
+'mycontris' => 'My contributions',
+'contribsub2' => 'For $1 ($2)',
+'nocontribs' => 'No changes were found matching these criteria.',
+'uctop' => '(top)',
+'month' => 'From month (and earlier):',
+'year' => 'From year (and earlier):',
-'sp-contributions-newbies' => 'Show contributions of new accounts only',
-'sp-contributions-newbies-sub' => 'For new accounts',
-'sp-contributions-blocklog' => 'Block log',
-'sp-contributions-search' => 'Search for contributions',
-'sp-contributions-username' => 'IP Address or username:',
-'sp-contributions-submit' => 'Search',
-'sp-contributions-explain' => '', # only translate this message to other languages if you have to change it
-'sp-contributions-footer' => '-', # do not translate or duplicate this message to other languages
-'sp-contributions-footer-anon' => '-', # do not translate or duplicate this message to other languages
+'sp-contributions-newbies' => 'Show contributions of new accounts only',
+'sp-contributions-newbies-sub' => 'For new accounts',
+'sp-contributions-newbies-title' => 'User contributions for new accounts',
+'sp-contributions-blocklog' => 'Block log',
+'sp-contributions-search' => 'Search for contributions',
+'sp-contributions-username' => 'IP Address or username:',
+'sp-contributions-submit' => 'Search',
+'sp-contributions-explain' => '', # only translate this message to other languages if you have to change it
+'sp-contributions-footer' => '-', # do not translate or duplicate this message to other languages
+'sp-contributions-footer-anon' => '-', # do not translate or duplicate this message to other languages
# What links here
'whatlinkshere' => 'What links here',

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4557
Default Alt Text
specialcontributions_title.patch (3 KB)

Event Timeline