From 9614c8478007e6502e2d3384f979af11636d600e Mon Sep 17 00:00:00 2001 From: Isabelle Hurbain-Palatin Date: Mon, 28 Oct 2024 18:41:07 +0100 Subject: [PATCH] Add a tracking category for cite errors that trigger a visual diff We're adding support for Cite error messages in Parsoid. Some of these error messages do not render in the same way between the legacy parser and Parsoid; this category aims at tracking them. Bug: T378386 Change-Id: If1935acc6d23ee5e63c94f037762638e77b38831 --- extension.json | 1 + i18n/en.json | 2 ++ i18n/qqq.json | 2 ++ 3 files changed, 5 insertions(+) diff --git a/extension.json b/extension.json index ae58d4f0a..19dd2a8b0 100644 --- a/extension.json +++ b/extension.json @@ -358,6 +358,7 @@ "Cite\\Tests\\": "tests/phpunit/" }, "TrackingCategories": [ + "cite-tracking-category-cite-diffing-error", "cite-tracking-category-cite-error", "cite-tracking-category-ref-extends" ], diff --git a/i18n/en.json b/i18n/en.json index cc99fc3ff..383d0f61a 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -39,6 +39,8 @@ "cite_error_empty_references_define": "<ref> tag with name \"$1\" defined in <references> group \"$2\" has no content.", "cite-tracking-category-cite-error": "Pages with reference errors", "cite-tracking-category-cite-error-desc": "Pages in this category have errors in the usage of references tags.", + "cite-tracking-category-cite-diffing-error": "Pages with reference errors that trigger visual diffs", + "cite-tracking-category-cite-diffing-error-desc": "Pages in this category have errors in the usage of references tags, and these errors are not rendered in the same way in the legacy parser and in Parsoid.", "cite-tracking-category-ref-extends": "Pages that use extended references", "cite-tracking-category-ref-extends-desc": "Pages in this category use the \"extends\" attribute of the <ref> tag.", "cite-reference-previews-reference": "Reference", diff --git a/i18n/qqq.json b/i18n/qqq.json index 4f676f064..705f18f1e 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -44,6 +44,8 @@ "cite_error_empty_references_define": "Error message shown when there is a <ref> inside <references>, but it does not have any content, e.g.\n
\n\n\n\n
\nParameters:\n* $1 - the name of the erroneous <ref> (in the above example, “foo”)", "cite-tracking-category-cite-error": "{{tracking category name}}\nTracking category name.", "cite-tracking-category-cite-error-desc": "Tracking category description.", + "cite-tracking-category-cite-diffing-error": "{{tracking category name}}\nTracking category name for pages with reference errors that trigger visual diffs.", + "cite-tracking-category-cite-diffing-error-desc": "Tracking category description for pages with reference errors that trigger visual diffs.", "cite-tracking-category-ref-extends": "{{tracking category name}}\nThe [[:mw:Special:MyLanguage/Help:Tracking categories|tracking category]] to add to the article if it uses <ref> tags with an extends attribute.", "cite-tracking-category-ref-extends-desc": "Description of the extends feature tracking category. (See {{msg-mw|Cite-tracking-category-ref-extends}}.)", "cite-reference-previews-reference": "Default heading for popups that show previews of references as provided by the Cite extension's tags (also known as footnotes).\n{{Identical|Reference}}",