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

Change subject: Add a message to Special:GlobalUsage containing the file name
......................................................................


Add a message to Special:GlobalUsage containing the file name

Request at commons to be able to link to external tools.

Change-Id: I586ed784b35395db3cec633bfb61928e6b548b4d
---
M SpecialGlobalUsage.php
M i18n/en.json
M i18n/qqq.json
3 files changed, 7 insertions(+), 2 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  Steinsplitter: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/SpecialGlobalUsage.php b/SpecialGlobalUsage.php
index d896bc3..75c0506 100644
--- a/SpecialGlobalUsage.php
+++ b/SpecialGlobalUsage.php
@@ -31,6 +31,9 @@
 
                $this->setHeaders();
                $this->getOutput()->addWikiMsg( 'globalusage-header' );
+               if ( !is_null( $this->target ) ) {
+                       $this->getOutput()->addWikiMsg( 
'globalusage-header-image', $this->target->getText() );
+               }
                $this->showForm();
 
                if ( is_null( $this->target ) ) {
diff --git a/i18n/en.json b/i18n/en.json
index b735d47..3e8f8b4 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -24,5 +24,6 @@
        "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]]",
-       "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."
+       "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.",
+       "globalusage-header-image": ""
 }
diff --git a/i18n/qqq.json b/i18n/qqq.json
index c564e74..4e30b0d 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -35,5 +35,6 @@
        "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}}",
-       "globalusage-header": "Text message used in [[Special:GlobalUsage]] 
right above the form describing the purpose of special page."
+       "globalusage-header": "Text message used in [[Special:GlobalUsage]] 
right above the form describing the purpose of special page.",
+       "globalusage-header-image": "{{notranslate}}. Extra header for on-wiki 
customization. $1 - File being looked for."
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I586ed784b35395db3cec633bfb61928e6b548b4d
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/GlobalUsage
Gerrit-Branch: master
Gerrit-Owner: Brian Wolff <bawolff...@gmail.com>
Gerrit-Reviewer: Bartosz Dziewoński <matma....@gmail.com>
Gerrit-Reviewer: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: Steinsplitter <steinsplit...@wikipedia.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to