From 00e2755eab62564eb7863c2ab1df63e0e9056515 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 10 Jan 2017 12:32:07 -0800 Subject: [PATCH] Provide tailored strings for revision creation Summary: See D17169. Ref T11114. Test Plan: {F2333825} Reviewers: chad Reviewed By: chad Maniphest Tasks: T11114 Differential Revision: https://secure.phabricator.com/D17170 --- .../differential/editor/DifferentialTransactionEditor.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php index eedcd6b7bb..85a44669c8 100644 --- a/src/applications/differential/editor/DifferentialTransactionEditor.php +++ b/src/applications/differential/editor/DifferentialTransactionEditor.php @@ -18,6 +18,14 @@ final class DifferentialTransactionEditor return pht('Differential Revisions'); } + public function getCreateObjectTitle($author, $object) { + return pht('%s created this revision.', $author); + } + + public function getCreateObjectTitleForFeed($author, $object) { + return pht('%s created %s.', $author, $object); + } + public function getDiffUpdateTransaction(array $xactions) { $type_update = DifferentialTransaction::TYPE_UPDATE;