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

Change subject: mw.ForeignUpload: Provide an edit summary to help track these 
uploads
......................................................................


mw.ForeignUpload: Provide an edit summary to help track these uploads

The summary is "Cross-wiki upload from xx.wikixedia.org". We don't
know the content language of the foreign wiki, so it's not translateable.

Bug: T115328
Change-Id: I4b36cad20ffe318f9a01126a5b9ed70f5d806b57
---
M resources/src/mediawiki/mediawiki.ForeignUpload.js
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/src/mediawiki/mediawiki.ForeignUpload.js 
b/resources/src/mediawiki/mediawiki.ForeignUpload.js
index 7b3a751..61fb59f 100644
--- a/resources/src/mediawiki/mediawiki.ForeignUpload.js
+++ b/resources/src/mediawiki/mediawiki.ForeignUpload.js
@@ -84,6 +84,12 @@
                // actual API call methods to wait for the apiPromise to resolve
                // before continuing.
                mw.Upload.call( this, null );
+
+               if ( this.target !== 'local' ) {
+                       // Keep these untranslated. We don't know the content 
language of the foreign wiki, best to
+                       // stick to English in the text.
+                       this.setComment( 'Cross-wiki upload from ' + 
location.host );
+               }
        }
 
        OO.inheritClass( ForeignUpload, mw.Upload );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4b36cad20ffe318f9a01126a5b9ed70f5d806b57
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz DziewoƄski <[email protected]>
Gerrit-Reviewer: Edokter <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to