From 4f2e6e1861291951e2e21d6a616aaf2037be860b Mon Sep 17 00:00:00 2001 From: Krinkle Date: Fri, 6 Jan 2012 18:15:42 +0000 Subject: [PATCH] Add tooltip/accesskey to EditWatchlist * Fixes bug 33565 --- RELEASE-NOTES-1.19 | 1 + includes/specials/SpecialEditWatchlist.php | 4 ++++ languages/messages/MessagesEn.php | 4 ++++ languages/messages/MessagesQqq.php | 2 ++ 4 files changed, 11 insertions(+) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index 2734cd0621..5e4e608ae8 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -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. diff --git a/includes/specials/SpecialEditWatchlist.php b/includes/specials/SpecialEditWatchlist.php index b10310e16b..4fb659e2c2 100644 --- a/includes/specials/SpecialEditWatchlist.php +++ b/includes/specials/SpecialEditWatchlist.php @@ -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' ) ); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index a8fd6e22af..972626d078 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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 diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index 1afb35c8aa..d0b9209118 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -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}}', -- 2.20.1