Mattflaschen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/191242
Change subject: Add custom title text for Yes and No Thank confirmations
......................................................................
Add custom title text for Yes and No Thank confirmations
Bug: T89572
Change-Id: I54bfaf7852182c2b22bd897fe55480c2b0e7f1ab
---
M Thanks.php
M i18n/en.json
M i18n/qqq.json
M modules/ext.thanks.revthank.js
4 files changed, 11 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Thanks
refs/changes/42/191242/1
diff --git a/Thanks.php b/Thanks.php
index 465311b..cdd2382 100644
--- a/Thanks.php
+++ b/Thanks.php
@@ -96,6 +96,8 @@
'thanks-error-invalidrevision',
'thanks-error-ratelimited',
'thanks-confirmation2',
+ 'thanks-thank-tooltip-no',
+ 'thanks-thank-tooltip-yes',
'ok',
'cancel',
),
diff --git a/i18n/en.json b/i18n/en.json
index 60edf48..4deacf3 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -13,6 +13,8 @@
"thanks-error-invalidrevision": "Revision ID is not valid.",
"thanks-error-ratelimited": "{{GENDER:$1|You}}'ve exceeded your rate
limit. Please wait some time and try again.",
"thanks-thank-tooltip": "{{GENDER:$1|Send}} a thank you notification to
this {{GENDER:$2|user}}",
+ "thanks-thank-tooltip-no": "{{GENDER:$1|Cancel}} the thank you
notification",
+ "thanks-thank-tooltip-yes": "{{GENDER:$1|Send}} the thank you
notification",
"thanks-confirmation2": "{{GENDER:$1|Send}} thanks for this edit?",
"thanks-thanked-notice": "$1 received your thanks for
{{GENDER:$2|his|her|their}} edit.",
"thanks": "Send thanks",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 20fab65..2df1b1b 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -18,6 +18,8 @@
"thanks-error-invalidrevision": "Error message that is displayed when
the revision ID is not valid",
"thanks-error-ratelimited": "Error message that is displayed when user
exceeds rate limit. Parameters:\n* $1 - gender",
"thanks-thank-tooltip": "Tooltip that appears when a user hovers over
the \"thank\" link. Parameters:\n* $1 - The user sending the thanks. Can be
used for GENDER support.\n* $2 - The user receiving the thanks. Can be used
for GENDER support",
+ "thanks-thank-tooltip-no": "Tooltip that appears when a user hovers
over the \"No\" confirmation link (which cancels the thank action).
Parameters:\n* $1 - The user sending the thanks. Can be used for GENDER
support.",
+ "thanks-thank-tooltip-yes": "Tooltip that appears when a user hovers
over the \"Yes\" confirmation link (which confirms the thank action).
Parameters:\n* $1 - The user sending the thanks. Can be used for GENDER
support.",
"thanks-confirmation2": "A confirmation message to make sure the user
actually wants to send thanks to another user.\n\nParameters:\n* $1 - The user
sending the thanks. Can be used for GENDER.\nSee also:\n*
{{msg-mw|Thanks-confirmation-special}}",
"thanks-thanked-notice": "{{doc-singularthey}}\nPop-up message that is
displayed after a user has thanked another user for their
edit.\n\nParameters:\n* $1 - the username of the user that was thanked\n* $2 -
the gender of the user that was thanked\nSee also:\n*
{{msg-mw|Flow-thanks-thanked-notice}}",
"thanks": "{{doc-special|Thanks|unlisted=1}}\nThe special page contains
the form to thank for the edit.",
diff --git a/modules/ext.thanks.revthank.js b/modules/ext.thanks.revthank.js
index 51287b8..6b98086 100644
--- a/modules/ext.thanks.revthank.js
+++ b/modules/ext.thanks.revthank.js
@@ -56,7 +56,11 @@
$( function() {
if ( mw.config.get( 'thanks-confirmation-required' ) ) {
$( 'a.mw-thanks-thank-link' ).confirmable( {
- i18n: { confirm: mw.msg(
'thanks-confirmation2', mw.user ) },
+ i18n: {
+ confirm: mw.msg(
'thanks-confirmation2', mw.user ),
+ noTitle: mw.msg(
'thanks-thank-tooltip-no', mw.user ),
+ yesTitle: mw.msg(
'thanks-thank-tooltip-yes', mw.user )
+ },
handler: function ( e ) {
var $thankLink = $( this );
e.preventDefault();
--
To view, visit https://gerrit.wikimedia.org/r/191242
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I54bfaf7852182c2b22bd897fe55480c2b0e7f1ab
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Thanks
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits