Unicornisaurous has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/258665

Change subject: Add username to title on Special:Uploads
......................................................................

Add username to title on Special:Uploads

Bug: T120864
Change-Id: I04d9a91dbb977f51f7e63e2ae387fa0076cc5505
---
M i18n/en.json
M i18n/qqq.json
M includes/specials/SpecialUploads.php
3 files changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/65/258665/1

diff --git a/i18n/en.json b/i18n/en.json
index 90dfa82..b57d64a 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -85,6 +85,7 @@
        "mobile-frontend-donate-image-nouploads": "No uploads.",
        "mobile-frontend-donate-image-signup-action": "Sign up to share your 
media with the world.",
        "mobile-frontend-donate-image-title": "Uploads",
+       "mobile-frontend-donate-image-title-username": "Uploads $1",
        "mobile-frontend-donate-photo-first-upload-success": "Success! Thanks 
for your first contribution!",
        "mobile-frontend-donate-photo-upload-success": "Success! Your image can 
now be used on {{SITENAME}}!",
        "mobile-frontend-drawer-cancel": "Cancel",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index c223075..52f159f 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -81,6 +81,7 @@
        "mobile-frontend-donate-image-nouploads": "Message that shows on 
uploads page when a user that is not the existing user has not uploaded any 
images.",
        "mobile-frontend-donate-image-signup-action": "Call to action to signup 
to donate images.",
        "mobile-frontend-donate-image-title": 
"{{doc-special|Uploads|unlisted=1}}\n{{Identical|Upload}}",
+       "mobile-frontend-donate-image-title-username": 
"{{doc-special|Uploads|unlisted=1}}\n{{Identical|Upload}}\nParameters:\n* $1 - 
username",
        "mobile-frontend-donate-photo-first-upload-success": "On upload page - 
notification shown after a successful upload when it is the first upload by 
that user",
        "mobile-frontend-donate-photo-upload-success": "On upload page - 
notification shown after a successful upload",
        "mobile-frontend-drawer-cancel": "Not visible, but the text label for 
the cancel button inside a navigation overlay\n{{Identical|Cancel}}",
diff --git a/includes/specials/SpecialUploads.php 
b/includes/specials/SpecialUploads.php
index 02253f6..b8b39ed 100644
--- a/includes/specials/SpecialUploads.php
+++ b/includes/specials/SpecialUploads.php
@@ -32,7 +32,7 @@
                                'wgMFPhotoUploadEndpoint',
                                $this->getMFConfig()->get( 
'MFPhotoUploadEndpoint' )
                        );
-                       $output->setPageTitle( $this->msg( 
'mobile-frontend-donate-image-title' ) );
+                       $output->setPageTitle( $this->msg( 
'mobile-frontend-donate-image-title-username', $par )->parse() );
 
                        if ( $par !== '' && $par !== null ) {
                                $user = User::newFromName( $par );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I04d9a91dbb977f51f7e63e2ae387fa0076cc5505
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Unicornisaurous <[email protected]>

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

Reply via email to