Add tooltip/accesskey to EditWatchlist
authorKrinkle <krinkle@users.mediawiki.org>
Fri, 6 Jan 2012 18:15:42 +0000 (18:15 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Fri, 6 Jan 2012 18:15:42 +0000 (18:15 +0000)
* Fixes bug 33565

RELEASE-NOTES-1.19
includes/specials/SpecialEditWatchlist.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php

index 2734cd0..5e4e608 100644 (file)
@@ -120,6 +120,7 @@ production.
 * (bug 10574) Add an option to allow all pages to be exported by Special:Export.
 * mediawiki.js Message object constructor is now publicly available as mw.Message.
 * (bug 29309) allow CSS class per tooltip (tipsy)
+* (bug 33565) Add accesskey/tooltip to submit buttons on Special:EditWatchlist.
 
 === Bug fixes in 1.19 ===
 * $wgUploadNavigationUrl should be used for file redlinks if.
index b10310e..4fb659e 100644 (file)
@@ -419,6 +419,8 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                $form = new EditWatchlistNormalHTMLForm( $fields, $this->getContext() );
                $form->setTitle( $this->getTitle() );
                $form->setSubmitTextMsg( 'watchlistedit-normal-submit' );
+               # Used message keys: 'accesskey-watchlistedit-normal-submit', 'tooltip-watchlistedit-normal-submit'
+               $form->setSubmitTooltip('watchlistedit-normal-submit');
                $form->setWrapperLegendMsg( 'watchlistedit-normal-legend' );
                $form->addHeaderText( $this->msg( 'watchlistedit-normal-explain' )->parse() );
                $form->setSubmitCallback( array( $this, 'submitNormal' ) );
@@ -475,6 +477,8 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                $form = new HTMLForm( $fields, $this->getContext() );
                $form->setTitle( $this->getTitle( 'raw' ) );
                $form->setSubmitTextMsg( 'watchlistedit-raw-submit' );
+               # Used message keys: 'accesskey-watchlistedit-raw-submit', 'tooltip-watchlistedit-raw-submit'
+               $form->setSubmitTooltip('watchlistedit-raw-submit');
                $form->setWrapperLegendMsg( 'watchlistedit-raw-legend' );
                $form->addHeaderText( $this->msg( 'watchlistedit-raw-explain' )->parse() );
                $form->setSubmitCallback( array( $this, 'submitRaw' ) );
index a8fd6e2..972626d 100644 (file)
@@ -3490,6 +3490,8 @@ Please try again.',
 'accesskey-blockip-block'           => 's', # do not translate or duplicate this message to other languages
 'accesskey-export'                  => 's', # do not translate or duplicate this message to other languages
 'accesskey-import'                  => 's', # do not translate or duplicate this message to other languages
+'accesskey-watchlistedit-normal-submit'=> 's', # do not translate or duplicate this message to other languages
+'accesskey-watchlistedit-raw-submit'=> 's', # do not translate or duplicate this message to other languages
 
 # Tooltip help for the actions
 'tooltip-pt-userpage'             => 'Your user page',
@@ -3558,6 +3560,8 @@ You can view its source',
 'tooltip-undo'                    => '"Undo" reverts this edit and opens the edit form in preview mode. It allows adding a reason in the summary.',
 'tooltip-preferences-save'        => 'Save preferences',
 'tooltip-summary'                 => 'Enter a short summary',
+'tooltip-watchlistedit-normal-submit' => 'Remove titles',
+'tooltip-watchlistedit-raw-submit' => 'Update watchlist',
 
 # Stylesheets
 'common.css'              => '/* CSS placed here will be applied to all skins */', # only translate this message to other languages if you have to change it
index 1afb35c..d0b9209 100644 (file)
@@ -3138,6 +3138,8 @@ If the length of the translated message is over 60 characters (including spaces)
 'tooltip-diff'                    => 'This is the text (tooltip) that appears when you hover the mouse over the "Show changes" button ({{msg|showdiff}}) on the edit page.',
 'tooltip-compareselectedversions' => 'Tooltip of {{msg|compareselectedversions}} (which is used as button in history pages).',
 'tooltip-watch'                   => '{{Identical|Add this page to your watchlist}}',
+'tooltip-watchlistedit-normal-submit' => 'Tooltip for {{msg|watchlistedit-normal-submit}} (used as button on [[Special:EditWatchlist]]).',
+'tooltip-watchlistedit-raw-submit' => 'Tooltip for {{msg|watchlistedit-raw-submit}} (used as button on [[Special:EditWatchlist/raw]]).',
 'tooltip-rollback'                => 'Tooltip of the rollback link on the history page and the diff view
 {{Identical|Rollback}}
 {{Identical|Revert}}',