From 1ab85aae83efd29e870d497a1ea0b84b1e7edc98 Mon Sep 17 00:00:00 2001 From: Jackmcbarn Date: Mon, 12 May 2014 14:11:48 -0400 Subject: [PATCH] Include edit summary in permalink Update the revision-info and revision-info-current messages to include the edit summary of the revision being viewed via the permalink. Change-Id: Ie19adfa5e780f2cfeeaba0f117d9007fc3cecd7e --- includes/Article.php | 2 +- languages/i18n/en.json | 2 +- languages/i18n/qqq.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 3bb1563f7a..4663099a0c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1366,7 +1366,7 @@ class Article implements Page { $outputPage = $this->getContext()->getOutput(); $outputPage->addSubtitle( "
" . wfMessage( $infomsg, $td )->rawParams( $userlinks )->params( $revision->getID(), $tddate, - $tdtime, $revision->getUser() )->parse() . "
" ); + $tdtime, $revision->getUser(), Linker::revComment( $revision, true, true ) )->parse() . "" ); $lnk = $current ? wfMessage( 'currentrevisionlink' )->escaped() diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 1c617f7c82..534b859bf2 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -737,7 +737,7 @@ "currentrev": "Latest revision", "currentrev-asof": "Latest revision as of $1", "revisionasof": "Revision as of $1", - "revision-info": "Revision as of $1 by $2", + "revision-info": "Revision as of $1 by {{GENDER:$6|$2}}$7", "revision-info-current": "-", "revision-nav": "($1) $2{{int:pipe-separator}}$3 ($4){{int:pipe-separator}}$5 ($6)", "previousrevision": "← Older revision", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 1e6cc0fa66..edf0a80a2b 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -897,8 +897,8 @@ "currentrev": "Used in Diff Preview page. The diff is between {{msg-mw|currentrev}} and {{msg-mw|yourtext}}.\n{{Identical|Current revision}}", "currentrev-asof": "Used on a difference page when comparing the current versions of a page with each other.\n\nSee {{msg-mw|Revisionasof}} for the message for non-current version.\n\nParameters:\n* $1 - a date and time\n* $2 - (Optional) a date\n* $3 - (Optional) a time", "revisionasof": "Used on a difference page when comparing different versions of a page or when viewing an non-current version of a page.\n\nSee {{msg-mw|Currentrev-asof}} for the message for the current version.\n\nParameters:\n* $1 - the date/time at which the revision was created. e.g. \"''Revision as of 14:44, 24 January 2008''\".\n* $2 - (Optional) the date at which the revision was created\n* $3 - (Optional) the time at which the revision was created", - "revision-info": "Appears just below the page title when an old version of the page is being viewed.\n\nParameters:\n* $1 - date and time of revision\n* $2 - a series of links: to author of the revision, his talk page, etc.\n* $3 - (Optional) revision ID\n* $4 - (Optional) date of revision\n* $5 - (Optional) time of revision\n* $6 - (Optional) author of revision, for GENDER use", - "revision-info-current": "{{notranslate}}\n* $1: date and time of revision\n* $2: a series of links: to author of the revision, his talk page, etc. \n* (optional) $3: revision ID\n* (optional) $4: date of revision\n* (optional) $5: time of revision\n* (optional) $6: author of revision, for GENDER use", + "revision-info": "Appears just below the page title when an old version of the page is being viewed.\n\nParameters:\n* $1 - date and time of revision\n* $2 - a series of links: to author of the revision, his talk page, etc.\n* $3 - (Optional) revision ID\n* $4 - (Optional) date of revision\n* $5 - (Optional) time of revision\n* $6 - (Optional) author of revision, for GENDER use\n* $7 - edit summary of revision (with leading space and in parentheses)", + "revision-info-current": "{{notranslate}}\n* $1: date and time of revision\n* $2: a series of links: to author of the revision, his talk page, etc. \n* (optional) $3: revision ID\n* (optional) $4: date of revision\n* (optional) $5: time of revision\n* (optional) $6: author of revision, for GENDER use\n* $7 - edit summary of revision (with leading space and in parentheses)", "revision-nav": "{{notranslate}}\nRefers to {{msg-mw|Pipe-separator}}.\n\nParameters:\n* $1 - prev diff. link text is {{msg-mw|Diff}}\n* $2 - prev link. link text is {{msg-mw|Previousrevision}}\n* $3 - link. link text is {{msg-mw|Currentrevisionlink}}\n* $4 - cur diff. link text is {{msg-mw|Diff}}\n* $5 - next link. link text is {{msg-mw|Nextrevision}}\n* $6 - next diff. link text is {{msg-mw|Diff}}", "previousrevision": "See also:\n* {{msg-mw|Nextrevision}}", "nextrevision": "See also:\n* {{msg-mw|Previousrevision}}", -- 2.20.1