jenkins-bot has submitted this change and it was merged.

Change subject: Add a text message above the form on Special:GlobalUsage
......................................................................


Add a text message above the form on Special:GlobalUsage

Added a text message above the form describing what the special
page does. Added i18n messages as well

Bug: T109882
Change-Id: I6d4863aadc93a37eac802da5307324ad4d051e48
---
M SpecialGlobalUsage.php
M i18n/en.json
M i18n/qqq.json
3 files changed, 6 insertions(+), 3 deletions(-)

Approvals:
  Gergő Tisza: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/SpecialGlobalUsage.php b/SpecialGlobalUsage.php
index 7d3fb5c..d896bc3 100644
--- a/SpecialGlobalUsage.php
+++ b/SpecialGlobalUsage.php
@@ -30,7 +30,7 @@
                $this->filterLocal = $this->getRequest()->getCheck( 
'filterlocal' );
 
                $this->setHeaders();
-
+               $this->getOutput()->addWikiMsg( 'globalusage-header' );
                $this->showForm();
 
                if ( is_null( $this->target ) ) {
diff --git a/i18n/en.json b/i18n/en.json
index cf08333..b735d47 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -23,5 +23,6 @@
        "apihelp-query+globalusage-param-prop": "Which properties to 
return:\n;url:Adds url.\n;pageid:Adds page ID.\n;namespace:Adds namespace ID.",
        "apihelp-query+globalusage-param-limit": "How many links to return.",
        "apihelp-query+globalusage-param-filterlocal": "Filter local usage of 
the file.",
-       "apihelp-query+globalusage-example-1": "Get usage of 
[[:File:Example.jpg]]"
+       "apihelp-query+globalusage-example-1": "Get usage of 
[[:File:Example.jpg]]",
+       "globalusage-header": "This page shows where a file is used on other 
wikis. You can also find that information at the bottom of the file description 
page."
 }
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 5e9331c..be5b640 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -34,5 +34,7 @@
        "apihelp-query+globalusage-param-prop": 
"{{doc-apihelp-param|query+globalusage|prop}}",
        "apihelp-query+globalusage-param-limit": 
"{{doc-apihelp-param|query+globalusage|limit}}",
        "apihelp-query+globalusage-param-filterlocal": 
"{{doc-apihelp-param|query+globalusage|filterlocal}}",
-       "apihelp-query+globalusage-example-1": 
"{{doc-apihelp-example|query+globalusage}}"
+       "apihelp-query+globalusage-example-1": 
"{{doc-apihelp-example|query+globalusage}}",
+       "globalusage-header": "Text message used in [[Special:GlobalUsage]] 
right above the form describing the purpose of special page."
+
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/233105
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6d4863aadc93a37eac802da5307324ad4d051e48
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/GlobalUsage
Gerrit-Branch: master
Gerrit-Owner: Tinaj1234 <[email protected]>
Gerrit-Reviewer: GergÅ‘ Tisza <[email protected]>
Gerrit-Reviewer: Glaisher <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Steinsplitter <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to