diff --git a/extension.json b/extension.json index c3558b7f3..4f34c66ab 100644 --- a/extension.json +++ b/extension.json @@ -135,6 +135,7 @@ "discussiontools-newtopicssubscription-notify-unsubscribed-title", "discussiontools-pagetitle-newtopic", "discussiontools-pagetitle-reply", + "discussiontools-permalink-comment-copied", "discussiontools-replylink", "discussiontools-replywidget-loading", "discussiontools-replywidget-watchthis", diff --git a/i18n/en.json b/i18n/en.json index 170def136..5ed8a2300 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -87,6 +87,7 @@ "discussiontools-pageframe-latestcomment-notopic": "Latest comment: $1 by $2", "discussiontools-pagetitle-newtopic": "Starting new topic on $1", "discussiontools-pagetitle-reply": "Replying on $1", + "discussiontools-permalink-comment-copied": "Link to comment copied to clipboard.", "discussiontools-postedit-confirmation-published": "Your comment was published.", "discussiontools-postedit-confirmation-topicadded": "Your topic was added.", "discussiontools-preference-autotopicsub": "Automatically subscribe to topics", diff --git a/i18n/qqq.json b/i18n/qqq.json index 7c2369587..2a561f846 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -101,6 +101,7 @@ "discussiontools-pageframe-latestcomment-notopic": "Label showing when the most recent comment was posted on a page, but in a section with no topic heading. Parameters:\n* $1 – When the comment was posted, e.g. '1 hour ago'. This text is a link to the comment.\n* $2 – The user who posted the comment. This is not a link, and can be used for GENDER: markup.\n\nSee also: {{mw-msg|discussiontools-pageframe-latestcomment}}", "discussiontools-pagetitle-newtopic": "Shown as page title when starting a new topic on a talk page. Parameters:\n* $1 - the name of the page the user is starting a new topic on. e.g. \"Starting new topic on Talk:Main Page\"\n{{Related|discussiontools-pagetitle-reply}}", "discussiontools-pagetitle-reply": "Shown as page title when composing a reply on a talk page. Parameters:\n* $1 - the name of the page the user is replying on. e.g. \"Replying on Talk:Main Page\"\n{{Related|discussiontools-pagetitle-newtopic}}", + "discussiontools-permalink-comment-copied": "Notification text shown when a link to a specific comment has been successfully copied to the clipboard.", "discussiontools-postedit-confirmation-published": "{{gender}}\nSuccess message shown after a user publishes a comment on a page. Parameters:\n* $1 - the current user, for GENDER support\n\nSee also: {{msg-mw|postedit-confirmation-published}}", "discussiontools-postedit-confirmation-topicadded": "{{gender}}\nSuccess message shown after a user adds a new topic on a page. Parameters:\n* $1 - the current user, for GENDER support\n\nSee also: {{msg-mw|postedit-confirmation-published}}", "discussiontools-preference-autotopicsub": "Used in [[Special:Preferences]].\n\nUsed as label for checkbox to enable automatic topic subscription.\n\nThe help text for this checkbox is: {{msg-mw|discussiontools-preference-autotopicsub-help}}", diff --git a/modules/ReplyLinksController.js b/modules/ReplyLinksController.js index 1f76607b3..c613275cf 100644 --- a/modules/ReplyLinksController.js +++ b/modules/ReplyLinksController.js @@ -71,7 +71,7 @@ function ReplyLinksController( $pageContainer ) { copied = false; } if ( copied ) { - mw.notify( 'Link to comment copied to clipboard.' ); + mw.notify( mw.msg( 'discussiontools-permalink-comment-copied' ) ); } $tmpInput.remove(); // Restore scroll position