From 696bd58a211b21723c21a0ed4b1991210f53b929 Mon Sep 17 00:00:00 2001 From: Prateek Saxena Date: Wed, 12 Oct 2016 12:20:31 +0530 Subject: [PATCH] GallerySlideshow: Add tooltip on toggle thumbnails icon Bug: T140593 Change-Id: Iec5a4bcbce5383bf3b657f6ed4134ff15820b2d6 --- languages/i18n/en.json | 1 + languages/i18n/qqq.json | 1 + resources/Resources.php | 3 +++ resources/src/mediawiki/page/gallery-slideshow.js | 3 ++- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/languages/i18n/en.json b/languages/i18n/en.json index d10749dc1a..7ecb2930a9 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -2918,6 +2918,7 @@ "newimages-showbots": "Show uploads by bots", "newimages-hidepatrolled": "Hide patrolled uploads", "noimages": "Nothing to see.", + "gallery-slideshow-toggle": "Toggle thumbnails", "ilsubmit": "Search", "bydate": "by date", "sp-newimages-showfrom": "Show new files starting from $2, $1", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 96f8c38766..62e43920d4 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -3102,6 +3102,7 @@ "newimages-showbots": "Used as label for a checkbox. When checked, [[Special:NewImages]] will also display uploads by users in the bots group.", "newimages-hidepatrolled": "Used as label for a checkbox. When checked, [[Special:NewImages]] will not display patrolled uploads.\n\nCf. {{msg-mw|tog-hidepatrolled}} and {{msg-mw|apihelp-feedrecentchanges-param-hidepatrolled}}.", "noimages": "This is shown on the special page [[Special:NewImages]], when there aren't any recently uploaded files.", + "gallery-slideshow-toggle": "Tooltip for the icon that toggles thumbnails on a slideshow gallery.", "ilsubmit": "Used as label for input box in the MIMESearch form on [[Special:MIMESearch]].\n\nSee also:\n* {{msg-mw|Mimesearch|page title}}\n* {{msg-mw|Mimetype|label for input box}}\n{{Identical|Search}}", "bydate": "{{Identical|Date}}", "sp-newimages-showfrom": "This is a link on [[Special:NewImages]] which takes you to a gallery of the newest files.\n* $1 is a date (example: ''19 March 2008'')\n* $2 is a time (example: ''12:15'')", diff --git a/resources/Resources.php b/resources/Resources.php index e7c8e490bf..2b7a644bed 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -1725,6 +1725,9 @@ return [ 'oojs-ui-core', 'oojs-ui-widgets', 'oojs-ui.styles.icons-media' + ], + 'messages' => [ + 'gallery-slideshow-toggle' ] ], 'mediawiki.page.ready' => [ diff --git a/resources/src/mediawiki/page/gallery-slideshow.js b/resources/src/mediawiki/page/gallery-slideshow.js index 3b2c86eb72..f2d7b04c46 100644 --- a/resources/src/mediawiki/page/gallery-slideshow.js +++ b/resources/src/mediawiki/page/gallery-slideshow.js @@ -130,7 +130,8 @@ toggle = new OO.ui.ButtonWidget( { framed: false, - icon: 'imageGallery' + icon: 'imageGallery', + title: mw.msg( 'gallery-slideshow-toggle' ) } ).on( 'click', this.toggleThumbnails.bind( this ) ); interfaceElements = new OO.ui.PanelLayout( { -- 2.20.1