mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Updating xaction titles for Phurl updates
Summary: Ref T8992, Cleaning up and clarifying xaction titles for Phurl creation/updating. Test Plan: Create a Phurl, update information, make sure xaction in the timeline makes sense. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin Maniphest Tasks: T8992 Differential Revision: https://secure.phabricator.com/D14414
This commit is contained in:
parent
e2c0df4fb4
commit
9132b565d5
1 changed files with 40 additions and 15 deletions
|
@ -81,17 +81,35 @@ final class PhabricatorPhurlURLTransaction
|
|||
$new);
|
||||
}
|
||||
case self::TYPE_URL:
|
||||
return pht(
|
||||
'%s changed the destination of the URL from %s to %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$old,
|
||||
$new);
|
||||
if ($old === null) {
|
||||
return pht(
|
||||
'%s set the destination of the URL to %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$new);
|
||||
} else {
|
||||
return pht(
|
||||
'%s changed the destination of the URL from %s to %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$old,
|
||||
$new);
|
||||
}
|
||||
case self::TYPE_ALIAS:
|
||||
return pht(
|
||||
'%s changed the alias of the URL from %s to %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$old,
|
||||
$new);
|
||||
if ($old === null) {
|
||||
return pht(
|
||||
'%s set the alias of the URL to %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$new);
|
||||
} else if ($new === null) {
|
||||
return pht(
|
||||
'%s removed the alias of the URL.',
|
||||
$this->renderHandleLink($author_phid));
|
||||
} else {
|
||||
return pht(
|
||||
'%s changed the alias of the URL from %s to %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$old,
|
||||
$new);
|
||||
}
|
||||
case self::TYPE_DESCRIPTION:
|
||||
return pht(
|
||||
"%s updated the URL's description.",
|
||||
|
@ -128,12 +146,13 @@ final class PhabricatorPhurlURLTransaction
|
|||
case self::TYPE_URL:
|
||||
if ($old === null) {
|
||||
return pht(
|
||||
'%s created %s.',
|
||||
'%s set the destination of %s to %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$this->renderHandleLink($object_phid));
|
||||
$this->renderHandleLink($object_phid),
|
||||
$new);
|
||||
} else {
|
||||
return pht(
|
||||
'%s changed the destination of %s from %s to %s',
|
||||
'%s changed the destination of %s from %s to %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$this->renderHandleLink($object_phid),
|
||||
$old,
|
||||
|
@ -142,12 +161,18 @@ final class PhabricatorPhurlURLTransaction
|
|||
case self::TYPE_ALIAS:
|
||||
if ($old === null) {
|
||||
return pht(
|
||||
'%s created %s.',
|
||||
'%s set the alias of %s to %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$this->renderHandleLink($object_phid),
|
||||
$new);
|
||||
} else if ($new === null) {
|
||||
return pht(
|
||||
'%s removed the alias of %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$this->renderHandleLink($object_phid));
|
||||
} else {
|
||||
return pht(
|
||||
'%s changed the alias of %s from %s to %s',
|
||||
'%s changed the alias of %s from %s to %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$this->renderHandleLink($object_phid),
|
||||
$old,
|
||||
|
|
Loading…
Reference in a new issue