Differential D14073 Diff 34742 src/applications/subscriptions/herald/PhabricatorSubscriptionsHeraldAction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/subscriptions/herald/PhabricatorSubscriptionsHeraldAction.php
| Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | abstract class PhabricatorSubscriptionsHeraldAction | ||||
| } | } | ||||
| protected function renderActionEffectDescription($type, $data) { | protected function renderActionEffectDescription($type, $data) { | ||||
| switch ($type) { | switch ($type) { | ||||
| case self::DO_PREVIOUSLY_UNSUBSCRIBED: | case self::DO_PREVIOUSLY_UNSUBSCRIBED: | ||||
| return pht( | return pht( | ||||
| 'Declined to resubscribe %s target(s) because they previously '. | 'Declined to resubscribe %s target(s) because they previously '. | ||||
| 'unsubscribed: %s.', | 'unsubscribed: %s.', | ||||
| new PhutilNumber(count($data)), | phutil_count($data), | ||||
| $this->renderHandleList($data)); | $this->renderHandleList($data)); | ||||
| case self::DO_AUTOSUBSCRIBED: | case self::DO_AUTOSUBSCRIBED: | ||||
| return pht( | return pht( | ||||
| '%s automatically subscribed target(s) were not affected: %s.', | '%s automatically subscribed target(s) were not affected: %s.', | ||||
| new PhutilNumber(count($data)), | phutil_count($data), | ||||
| $this->renderHandleList($data)); | $this->renderHandleList($data)); | ||||
| case self::DO_SUBSCRIBED: | case self::DO_SUBSCRIBED: | ||||
| return pht( | return pht( | ||||
| 'Added %s subscriber(s): %s.', | 'Added %s subscriber(s): %s.', | ||||
| new PhutilNumber(count($data)), | phutil_count($data), | ||||
| $this->renderHandleList($data)); | $this->renderHandleList($data)); | ||||
| case self::DO_UNSUBSCRIBED: | case self::DO_UNSUBSCRIBED: | ||||
| return pht( | return pht( | ||||
| 'Removed %s subscriber(s): %s.', | 'Removed %s subscriber(s): %s.', | ||||
| new PhutilNumber(count($data)), | phutil_count($data), | ||||
| $this->renderHandleList($data)); | $this->renderHandleList($data)); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||