Prtksxna has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/315468

Change subject: GallerySlideshow: Add tooltip on toggle thumbnails icon
......................................................................

GallerySlideshow: Add tooltip on toggle thumbnails icon

Bug: T140593
Change-Id: Iec5a4bcbce5383bf3b657f6ed4134ff15820b2d6
---
M languages/i18n/en.json
M languages/i18n/qqq.json
M resources/Resources.php
M resources/src/mediawiki/page/gallery-slideshow.js
4 files changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/68/315468/1

diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index d10749d..7ecb293 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 96f8c38..62e4392 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 e7c8e49..2b7a644 100644
--- a/resources/Resources.php
+++ b/resources/Resources.php
@@ -1725,6 +1725,9 @@
                        '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 3b2c86e..f2d7b04 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( {

-- 
To view, visit https://gerrit.wikimedia.org/r/315468
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iec5a4bcbce5383bf3b657f6ed4134ff15820b2d6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <psax...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to