From 9f12b3620829e656eecb7285bb7e85fb0d6b3653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Such=C3=A1nek?= Date: Sat, 16 Oct 2021 11:48:15 +0000 Subject: [PATCH] Register omitted tracking categories Both categories are emitted from the StripState class but are not displayed on Special:TrackingCategories. Bug: T212072 Change-Id: I4431ec08a22f9c7f143fa7e6e4d72c4a092b2828 --- includes/TrackingCategories.php | 2 ++ languages/i18n/en.json | 2 ++ languages/i18n/qqq.json | 2 ++ 3 files changed, 6 insertions(+) diff --git a/includes/TrackingCategories.php b/includes/TrackingCategories.php index f1f86904c60..e06f3e55e00 100644 --- a/includes/TrackingCategories.php +++ b/includes/TrackingCategories.php @@ -74,6 +74,8 @@ class TrackingCategories { 'restricted-displaytitle-ignored', 'template-equals-category', 'template-loop-category', + 'unstrip-depth-category', + 'unstrip-size-category', ]; /** diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 048b405bec6..b712d43b5f7 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -829,8 +829,10 @@ "parser-unstrip-loop-warning": "Unstrip loop detected", "unstrip-depth-warning": "Unstrip depth limit exceeded ($1)", "unstrip-depth-category": "Pages where the unstrip depth limit is exceeded", + "unstrip-depth-category-desc": "The page exceeds the unstrip depth limit.", "unstrip-size-warning": "Unstrip size limit exceeded ($1)", "unstrip-size-category": "Pages where the unstrip size limit is exceeded", + "unstrip-size-category-desc": "The page exceeds the unstrip size limit.", "converter-manual-rule-error": "Error detected in manual language conversion rule", "undo-success": "The edit can be undone.\nPlease check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.", "undo-failure": "The edit could not be undone due to conflicting intermediate edits.", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index b0571b582a2..5760a049f73 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1057,8 +1057,10 @@ "parser-unstrip-loop-warning": "{{Doc-important|Do not translate function name unstrip.}}\nThis error is shown when a parser extension tag such as
 includes a reference to itself in its own output.\n\nThe reference must be to the exact same invocation of the tag at the same location in the source, merely writing 
will not do it.\n\nThis is usually impossible and unlikely to happen by accident, so translation is not essential.\n\n\"Unstrip\" refers to the internal function of the parser, called \"unstrip\", which recursively puts the output of parser functions in the place of the parser function call and which would enter an infinite loop in the situation above.\n\nSee also:\n*{{msg-mw|Limitreport-unstrip-depth}}\n*{{msg-mw|Limitreport-unstrip-size}}\n*{{msg-mw|Unstrip-depth-category}}\n*{{msg-mw|Unstrip-depth-warning}}\n*{{msg-mw|Unstrip-size-category}}\n*{{msg-mw|Unstrip-size-warning}}", "unstrip-depth-warning": "{{doc-important|Do not translate function name unstrip.}}\nThis message is shown when the recursion limit for nested parser extension tags is exceeded.\n\nThis warning may be encountered due to input text like ....\n\nParameters:\n* $1 - the depth limit\n\n\"Unstrip\" refers to the internal function of the parser, called 'unstrip', which recursively puts the output of parser functions in the place of the parser function call.\n\nSee also:\n*{{msg-mw|Limitreport-unstrip-depth}}\n*{{msg-mw|Limitreport-unstrip-size}}\n*{{msg-mw|Parser-unstrip-loop-warning}}\n*{{msg-mw|Unstrip-depth-category}}\n*{{msg-mw|Unstrip-size-category}}\n*{{msg-mw|Unstrip-size-warning}}", "unstrip-depth-category": "{{Doc-important|Do not translate function name unstrip.}}\nThis message is used as the category name of a [[mw:Help:Tracking categories|tracking category]] in which pages are placed automatically if the unstrip recursion depth limit is exceeded.\n\n\"Unstrip\" refers to the internal function of the parser, called \"unstrip\", which recursively puts the output of parser functions in the place of the parser function call.\n\nSee also:\n*{{msg-mw|Limitreport-unstrip-depth}}\n*{{msg-mw|Limitreport-unstrip-size}}\n*{{msg-mw|Parser-unstrip-loop-warning}}\n*{{msg-mw|Unstrip-depth-warning}}\n*{{msg-mw|Unstrip-size-category}}\n*{{msg-mw|Unstrip-size-warning}}", + "unstrip-depth-category-desc": "{{Doc-important|Do not translate function name unstrip.}}\nThis message is used on [[Special:TrackingCategories]] as the description of the unstrip recursion depth limit exceeded category.\n\n\"Unstrip\" refers to the internal function of the parser, called \"unstrip\", which recursively puts the output of parser functions in the place of the parser function call.\n\nSee also:\n*{{msg-mw|Unstrip-depth-category}}\n*{{msg-mw|Unstrip-depth-warning}}\n*{{msg-mw|Unstrip-size-category-desc}}", "unstrip-size-warning": "{{doc-important|Do not translate function name unstrip.}}\nThis message is shown when the maximum expansion size for nested parser extension tags is exceeded.\n\nParameters:\n* $1 - the size limit\n\n\"Unstrip\" refers to the internal function of the parser, called 'unstrip', which recursively puts the output of parser functions in the place of the parser function call.\n\nSee also:\n*{{msg-mw|Limitreport-unstrip-depth}}\n*{{msg-mw|Limitreport-unstrip-size}}\n*{{msg-mw|Parser-unstrip-loop-warning}}\n*{{msg-mw|Unstrip-depth-category}}\n*{{msg-mw|Unstrip-depth-warning}}\n*{{msg-mw|Unstrip-size-category}}", "unstrip-size-category": "{{Doc-important|Do not translate function name unstrip.}}\nThis message is used as the category name of a [[mw:Help:Tracking categories|tracking category]] in which pages are placed automatically if the unstrip expansion size limit is exceeded.\n\n\"Unstrip\" refers to the internal function of the parser, called \"unstrip\", which recursively puts the output of parser functions in the place of the parser function call.\n\nSee also:\n*{{msg-mw|Limitreport-unstrip-depth}}\n*{{msg-mw|Limitreport-unstrip-size}}\n*{{msg-mw|Parser-unstrip-loop-warning}}\n*{{msg-mw|Unstrip-depth-category}}\n*{{msg-mw|Unstrip-depth-warning}}\n*{{msg-mw|Unstrip-size-warning}}", + "unstrip-size-category-desc": "{{Doc-important|Do not translate function name unstrip.}}\nThis message is used on [[Special:TrackingCategories]] as the description of the unstrip expansion size limit exceeded category.\n\n\"Unstrip\" refers to the internal function of the parser, called \"unstrip\", which recursively puts the output of parser functions in the place of the parser function call.\n\nSee also:\n*{{msg-mw|Unstrip-size-category}}\n*{{msg-mw|Unstrip-size-warning}}\n*{{msg-mw|Unstrip-depth-category-desc}}", "converter-manual-rule-error": "Used as error message when a manual conversion rule for the [[mw:Language_converter|language converter]] has errors. For example it's not using the correct syntax, or not supplying text in all variants.", "undo-success": "Text on special page to confirm edit revert. You arrive on this page by clicking on the \"undo\" link on a revision history special page.\n\n{{Identical|Undo}}", "undo-failure": "Message appears if an attempt to revert an edit by clicking the \"undo\" link on the page history fails.\n\nSee also:\n* {{msg-mw|Undo-norev}}\n* {{msg-mw|Undo-nochange}}\n{{Identical|Undo}}",