public function getNoEffectDescription() { switch ($this->getTransactionType()) { case self::TYPE_ACTIVE: return pht('The product is already in that state.'); } return parent::getNoEffectDescription(); }
public function getNoEffectDescription() { switch ($this->getTransactionType()) { case self::TYPE_PARTICIPANTS: return pht('You can not add a participant who has already been added.'); break; } return parent::getNoEffectDescription(); }
public function getNoEffectDescription() { switch ($this->getTransactionType()) { case self::TYPE_IMAGE_NAME: return pht('The image title was not updated.'); case self::TYPE_IMAGE_DESCRIPTION: return pht('The image description was not updated.'); case self::TYPE_IMAGE_SEQUENCE: return pht('The image sequence was not updated.'); } return parent::getNoEffectDescription(); }
public function getNoEffectDescription() { switch ($this->getTransactionType()) { case self::TYPE_STATUS: return pht('The task already has the selected status.'); case self::TYPE_OWNER: return pht('The task already has the selected owner.'); case self::TYPE_PROJECTS: return pht('The task is already associated with those projects.'); case self::TYPE_PRIORITY: return pht('The task already has the selected priority.'); } return parent::getNoEffectDescription(); }
public function getNoEffectDescription() { switch ($this->getTransactionType()) { case PhabricatorTransactions::TYPE_EDGE: switch ($this->getMetadataValue('edge:type')) { case DifferentialRevisionHasReviewerEdgeType::EDGECONST: return pht('The reviewers you are trying to add are already reviewing ' . 'this revision.'); } break; case self::TYPE_ACTION: switch ($this->getNewValue()) { case DifferentialAction::ACTION_CLOSE: return pht('This revision is already closed.'); case DifferentialAction::ACTION_ABANDON: return pht('This revision has already been abandoned.'); case DifferentialAction::ACTION_RECLAIM: return pht('You can not reclaim this revision because his revision is ' . 'not abandoned.'); case DifferentialAction::ACTION_REOPEN: return pht('You can not reopen this revision because this revision is ' . 'not closed.'); case DifferentialAction::ACTION_RETHINK: return pht('This revision already requires changes.'); case DifferentialAction::ACTION_REQUEST: return pht('Review is already requested for this revision.'); case DifferentialAction::ACTION_RESIGN: return pht('You can not resign from this revision because you are not ' . 'a reviewer.'); case DifferentialAction::ACTION_CLAIM: return pht('You can not commandeer this revision because you already own ' . 'it.'); case DifferentialAction::ACTION_ACCEPT: return pht('You have already accepted this revision.'); case DifferentialAction::ACTION_REJECT: return pht('You have already requested changes to this revision.'); } break; } return parent::getNoEffectDescription(); }