diff --git a/i18n/en.json b/i18n/en.json index 42985b0d9..d931bb425 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -214,6 +214,7 @@ "abusefilter-edit-warn-edit": "Create/Edit selected message", "abusefilter-edit-tag-tag": "[[Special:Tags|Tags]] to apply:", "abusefilter-edit-tag-placeholder": "Add tags (one by one or comma separated)", + "abusefilter-edit-tag-hidden-placeholder": "Add tags (comma separated)", "abusefilter-edit-block-anon-durations": "Block duration for anonymous users:", "abusefilter-edit-block-user-durations": "Block duration for registered users:", "abusefilter-block-anon": "Block anonymous users", diff --git a/i18n/qqq.json b/i18n/qqq.json index a1a748b53..4dbd0ba99 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -247,6 +247,7 @@ "abusefilter-edit-warn-edit": "Button text for actions relating to a warning message for an abuse filter.\n\nSee also:\n* {{msg-mw|Abusefilter-edit-warn-actions}}\n* {{msg-mw|Abusefilter-edit-warn-preview}}", "abusefilter-edit-tag-tag": "Field label for a field in which tags can be added for a revision in case the abuse filter applies.", "abusefilter-edit-tag-placeholder": "Placeholder for a field where the user may insert tags.", + "abusefilter-edit-tag-hidden-placeholder": "Placeholder for a field where the user may insert tags.", "abusefilter-edit-block-anon-durations": "Field label for select element allowing to select block duration for anonymous users", "abusefilter-edit-block-user-durations": "Field label for select element allowing to select block duration for registered users", "abusefilter-block-anon": "Specification for type of block. 'Block' is a verb.\n{{Identical|Block}}", diff --git a/includes/Views/AbuseFilterViewEdit.php b/includes/Views/AbuseFilterViewEdit.php index 7a8cd45fe..a265210b3 100644 --- a/includes/Views/AbuseFilterViewEdit.php +++ b/includes/Views/AbuseFilterViewEdit.php @@ -743,7 +743,8 @@ class AbuseFilterViewEdit extends AbuseFilterView { new OOUI\MultilineTextInputWidget( [ 'name' => 'wpFilterTags', 'value' => implode( ',', $tags ), - 'rows' => 5 + 'rows' => 5, + 'placeholder' => $this->msg( 'abusefilter-edit-tag-hidden-placeholder' )->text() ] + $readOnlyAttrib ), [