mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Permalinks: Replace hard-coded notification with i18n string
Change-Id: Id68006b67a055c32e2ecccdac94a37e03c0d722e
This commit is contained in:
parent
c0bcceec3d
commit
8405305f2a
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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}}",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue