jenkins-bot has submitted this change and it was merged. Change subject: Fix user link for IPs ......................................................................
Fix user link for IPs Change-Id: I87cc101301378d787bc772cfb38ab647bda321cf --- M BlueSkyTemplate.php M i18n/en.json M i18n/qqq.json 3 files changed, 4 insertions(+), 3 deletions(-) Approvals: Isarra: Looks good to me, approved jenkins-bot: Verified diff --git a/BlueSkyTemplate.php b/BlueSkyTemplate.php index 5f87232..990962f 100644 --- a/BlueSkyTemplate.php +++ b/BlueSkyTemplate.php @@ -1133,7 +1133,8 @@ // Pick the correct message depending on if the current user can access the revision's last author's name or not (hey, it could be RevisionDeleted, as Revision::getUserText()'s documentation states) if ( $author ) { - $html = $this->getMsg( 'bluesky-page-edited-user' )->params( [ $formattedTS, $author ] ); + $userLink = Linker::userLink( $revision->getUser(), $revision->getUserText() ); + $html = $this->getMsg( 'bluesky-page-edited-user' )->params( $formattedTS )->rawParams( $userLink ); } else { $html = $this->getMsg( 'bluesky-page-edited' )->params( [ $formattedTS ] ); } diff --git a/i18n/en.json b/i18n/en.json index 5d07fac..fcc7190 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -20,7 +20,7 @@ "bluesky-page": "Page tools", "bluesky-admin": "Admin", "bluesky-page-edited": "Page last edited {{int:ago|$1}}", - "bluesky-page-edited-user": "Page last edited {{int:ago|$1}} by [[User:$2|$2]]", + "bluesky-page-edited-user": "Page last edited {{int:ago|$1}} by $2", "duration-months": "$1 {{PLURAL:$1|month|months}}", "bluesky-toc-sections": "Sections", "bluesky-breadcrumb-pointer": "ยป", diff --git a/i18n/qqq.json b/i18n/qqq.json index cd13c4f..654ae07 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -17,7 +17,7 @@ "bluesky-page": "Page tools header", "bluesky-admin": "Admin tools dropdown header", "bluesky-page-edited": "Last edited note in article header\n\nParameters:\n* $1 - formatted timestamp", - "bluesky-page-edited-user": "Last edited note in article header, with user\n\nParameters:\n* $1 - formatted timestamp\n* $2 - username", + "bluesky-page-edited-user": "Last edited note in article header, with user\n\nParameters:\n* $1 - formatted timestamp\n* $2 link to user", "duration-months": "Appended to a number of months in the last edited <span> ago notice", "bluesky-toc-sections": "ToC sections label for header", "bluesky-breadcrumb-pointer": "{{notranslate}}\n\n Just flip it or something for rtl languages?", -- To view, visit https://gerrit.wikimedia.org/r/314222 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I87cc101301378d787bc772cfb38ab647bda321cf Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/BlueSky Gerrit-Branch: master Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Isarra <zhoris...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits