mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Add editor-mode changetags
Bug: T242184 Change-Id: Ib307e44ec883b01e0705c889f97e16326519f4c2
This commit is contained in:
parent
0f67d1862e
commit
2fcc23ae61
12
i18n/en.json
12
i18n/en.json
|
@ -14,10 +14,14 @@
|
|||
"tag-discussiontools": "DiscussionTools edit",
|
||||
"tag-discussiontools-description": "Edit made using DiscussionTools",
|
||||
"tag-discussiontools-edit": "edited comment",
|
||||
"tag-discussiontools-edit-description": "User edited an existing comment",
|
||||
"tag-discussiontools-newsection": "added section",
|
||||
"tag-discussiontools-newsection-description": "User added a new section to the page",
|
||||
"tag-discussiontools-edit-description": "User edited an existing comment with DiscussionTools",
|
||||
"tag-discussiontools-newtopic": "added topic",
|
||||
"tag-discussiontools-newtopic-description": "User added a new topic to the page with DiscussionTools",
|
||||
"tag-discussiontools-reply": "replied",
|
||||
"tag-discussiontools-reply-description": "User replied to an existing comment"
|
||||
"tag-discussiontools-reply-description": "User replied to an existing comment with DiscussionTools",
|
||||
"tag-discussiontools-source": "DiscussionTools: source",
|
||||
"tag-discussiontools-source-description": "DiscussionTools was in source mode",
|
||||
"tag-discussiontools-visual": "DiscussionTools: visual",
|
||||
"tag-discussiontools-visual-description": "DiscussionTools was in VisualEditor mode"
|
||||
|
||||
}
|
||||
|
|
|
@ -19,8 +19,12 @@
|
|||
"tag-discussiontools-description": "Long description of the discussiontools tag ({{msg-mw|Tag-discussiontools}}).\n\nShown on [[Special:Tags]].\n\nSee also:\n* {{msg-mw|Tag-discussiontools}}",
|
||||
"tag-discussiontools-edit": "Short description of the discussiontools-edit tag.\n\nShown on lists of changes (history, recentchanges, etc.) for each edit to an existing comment made using DiscussionTools.\n\nThis message is always shown directly after {{msg-mw|tag-discussiontools}} and a comma.\n\nSee also:\n* {{msg-mw|Tag-discussiontools-edit-description}}\n* {{Related|tag-discussiontools}}",
|
||||
"tag-discussiontools-edit-description": "Long description of the discussiontools-edit tag ({{msg-mw|Tag-discussiontools-edit}}).\n\nShown on [[Special:Tags]].\n\nSee also:\n* {{msg-mw|Tag-discussiontools-edit}}\n* {{Related|tag-discussiontools-description}}",
|
||||
"tag-discussiontools-newsection": "Short description of the discussiontools-newsection tag.\n\nShown on lists of changes (history, recentchanges, etc.) for each edit made using DiscussionTools to create a new section of a talk page.\n\nThis message is always shown directly after {{msg-mw|tag-discussiontools}} and a comma.\n\nSee also:\n* {{msg-mw|Tag-discussiontools-newsection-description}}\n* {{Related|tag-discussiontools}}",
|
||||
"tag-discussiontools-newsection-description": "Long description of the discussiontools-newsection tag ({{msg-mw|Tag-discussiontools-newsection}}).\n\nShown on [[Special:Tags]].\n\nSee also:\n* {{msg-mw|Tag-discussiontools-newsection}}\n* {{Related|tag-discussiontools-description}}",
|
||||
"tag-discussiontools-newtopic": "Short description of the discussiontools-newtopic tag.\n\nShown on lists of changes (history, recentchanges, etc.) for each edit made using DiscussionTools to create a new section of a talk page.\n\nThis message is always shown directly after {{msg-mw|tag-discussiontools}} and a comma.\n\nSee also:\n* {{msg-mw|Tag-discussiontools-newtopic-description}}\n* {{Related|tag-discussiontools}}",
|
||||
"tag-discussiontools-newtopic-description": "Long description of the discussiontools-newtopic tag ({{msg-mw|Tag-discussiontools-newtopic}}).\n\nShown on [[Special:Tags]].\n\nSee also:\n* {{msg-mw|Tag-discussiontools-newtopic}}\n* {{Related|tag-discussiontools-description}}",
|
||||
"tag-discussiontools-reply": "Short description of the discussiontools-reply tag.\n\nShown on lists of changes (history, recentchanges, etc.) for each edit made using DiscussionTools to reply to an existing comment.\n\nThis message is always shown directly after {{msg-mw|tag-discussiontools}} and a comma.\n\nSee also:\n* {{msg-mw|Tag-discussiontools-reply-description}}\n* {{Related|tag-discussiontools}}",
|
||||
"tag-discussiontools-reply-description": "Long description of the discussiontools-reply tag ({{msg-mw|Tag-discussiontools-reply}}).\n\nShown on [[Special:Tags]].\n\nSee also:\n* {{msg-mw|Tag-discussiontools-reply}}\n* {{Related|tag-discussiontools-description}}"
|
||||
"tag-discussiontools-reply-description": "Long description of the discussiontools-reply tag ({{msg-mw|Tag-discussiontools-reply}}).\n\nShown on [[Special:Tags]].\n\nSee also:\n* {{msg-mw|Tag-discussiontools-reply}}\n* {{Related|tag-discussiontools-description}}",
|
||||
"tag-discussiontools-source": "Short description of the discussiontools-source tag.\n\nShown on lists of changes (history, recentchanges, etc.) for each edit made using DiscussionTools in source mode.\n\nThis message is always shown directly after {{msg-mw|tag-discussiontools-reply}} etc. and a comma.\n\nSee also:\n* {{msg-mw|Tag-discussiontools-source-description}}\n* {{Related|tag-discussiontools}}",
|
||||
"tag-discussiontools-source-description": "Long description of the discussiontools-source tag ({{msg-mw|Tag-discussiontools-source}}).\n\nShown on [[Special:Tags]].\n\nSee also:\n* {{msg-mw|Tag-discussiontools-source}}\n* {{Related|tag-discussiontools}}",
|
||||
"tag-discussiontools-visual": "Short description of the discussiontools-visual tag.\n\nShown on lists of changes (history, recentchanges, etc.) for each edit made using DiscussionTools in visual mode.\n\nThis message is always shown directly after {{msg-mw|tag-discussiontools-reply}} etc. and a comma.\n\nSee also:\n* {{msg-mw|Tag-discussiontools-visual-description}}\n* {{Related|tag-discussiontools}}",
|
||||
"tag-discussiontools-visual-description": "Long description of the discussiontools-visual tag ({{msg-mw|Tag-discussiontools-visual}}).\n\nShown on [[Special:Tags]].\n\nSee also:\n* {{msg-mw|Tag-discussiontools-visual}}\n* {{Related|tag-discussiontools}}"
|
||||
}
|
||||
|
|
|
@ -67,8 +67,12 @@ class DiscussionToolsHooks {
|
|||
*/
|
||||
public static function onListDefinedTags( &$tags ) {
|
||||
$tags[] = 'discussiontools';
|
||||
// Features:
|
||||
$tags[] = 'discussiontools-reply';
|
||||
$tags[] = 'discussiontools-edit';
|
||||
$tags[] = 'discussiontools-newsection';
|
||||
// Input methods:
|
||||
$tags[] = 'discussiontools-source';
|
||||
$tags[] = 'discussiontools-visual';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,7 +108,8 @@ function postReply( widget, parsoidData ) {
|
|||
starttimestamp: pageData.startTimeStamp,
|
||||
etag: pageData.etag,
|
||||
token: pageData.token,
|
||||
tags: [ 'discussiontools', 'discussiontools-reply' ]
|
||||
// This appears redundant currently, but as editing / new-topics get added, we'll expand it
|
||||
tags: [ 'discussiontools', 'discussiontools-reply', 'discussiontools-' + widget.mode ]
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue