mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-01 03:26:28 +00:00
1d43a024f9
We were rendering the preview in a completely different way from how we would add the real reply, and the results would be different sometimes, particularly for multi-line comments with messed-up markup. Render it server-side instead, in a very similar way to real replies (generating a DOM list node and transforming it through Parsoid), although without the whole context of the page to improve performance. We can remove a lot of client-side code that was used solely for this. This will allow the preview to accurately display the signatures when we change how they are added (T278442), without us having to implement those changes again from scratch for the preview. Change-Id: I53341f4d4075c25b67ec3b3032bff9b8a880dcd3
33 lines
2.9 KiB
JSON
33 lines
2.9 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": []
|
|
},
|
|
"apierror-discussiontools-commentid-notfound": "Comment with the ID '$1' not found.",
|
|
"apierror-discussiontools-commentname-ambiguous": "Multiple comments with the name '$1' found, <var>commentid</var> is required.",
|
|
"apierror-discussiontools-commentname-notfound": "Comment with the name '$1' not found.",
|
|
"apierror-discussiontools-formtoken-used": "Comment already posted. Reload the page to see it.",
|
|
"apierror-discussiontools-subscription-failed-add": "Could not subscribe to this topic.",
|
|
"apierror-discussiontools-subscription-failed-remove": "Could not unsubscribe from this topic.",
|
|
"apihelp-discussiontoolscompare-summary": "Get information about comment changes between two page revisions.",
|
|
"apihelp-discussiontoolsedit-param-commentid": "ID of the comment to reply to. Only used when <var>paction</var> is <var>addcomment</var>. Overrides <var>commentname</var>.",
|
|
"apihelp-discussiontoolsedit-param-commentname": "Name of the comment to reply to. Only used when <var>paction</var> is <var>addcomment</var>.",
|
|
"apihelp-discussiontoolsedit-param-formtoken": "An optional unique ID generated in the client to prevent double-posting.",
|
|
"apihelp-discussiontoolsedit-param-html": "Content to post, as HTML. Cannot be used together with <var>wikitext</var>.",
|
|
"apihelp-discussiontoolsedit-param-sectiontitle": "{{int:apihelp-edit-param-sectiontitle}} Only used when <var>paction</var> is <var>addtopic</var>.",
|
|
"apihelp-discussiontoolsedit-param-wikitext": "Content to post, as wikitext. Cannot be used together with <var>html</var>.",
|
|
"apihelp-discussiontoolsedit-paramvalue-paction-addcomment": "Add a new comment as a reply to an existing comment.",
|
|
"apihelp-discussiontoolsedit-paramvalue-paction-addtopic": "Add a new discussion section and the first comment in it.",
|
|
"apihelp-discussiontoolsedit-summary": "Post a message on a discussion page.",
|
|
"apihelp-discussiontoolsgetsubscriptions-param-commentname": "Names of the topics to check",
|
|
"apihelp-discussiontoolsgetsubscriptions-summary": "Get the subscription statuses of given topics.",
|
|
"apihelp-discussiontoolspageinfo-param-oldid": "The revision number to use (defaults to latest revision).",
|
|
"apihelp-discussiontoolspageinfo-summary": "Returns metadata required to initialize the discussion tools.",
|
|
"apihelp-discussiontoolspreview-param-type": "Type of message to preview",
|
|
"apihelp-discussiontoolspreview-param-wikitext": "Content to preview, as wikitext.",
|
|
"apihelp-discussiontoolspreview-summary": "Preview a message on a discussion page.",
|
|
"apihelp-discussiontoolssubscribe-param-commentname": "Name of the topic to subscribe to (or unsubscribe from)",
|
|
"apihelp-discussiontoolssubscribe-param-page": "A page on which the topic appears",
|
|
"apihelp-discussiontoolssubscribe-param-subscribe": "True to subscribe, false to unsubscribe",
|
|
"apihelp-discussiontoolssubscribe-summary": "Subscribe (or unsubscribe) to receive notifications about a topic."
|
|
}
|