Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15452926
D15534.id37452.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D15534.id37452.diff
View Options
diff --git a/src/applications/badges/storage/PhabricatorBadgesTransaction.php b/src/applications/badges/storage/PhabricatorBadgesTransaction.php
--- a/src/applications/badges/storage/PhabricatorBadgesTransaction.php
+++ b/src/applications/badges/storage/PhabricatorBadgesTransaction.php
@@ -191,6 +191,28 @@
$this->renderHandleLink($object_phid));
}
break;
+ case self::TYPE_AWARD:
+ if (!is_array($new)) {
+ $new = array();
+ }
+ $handles = $this->renderHandleList($new);
+ return pht(
+ '%s awarded %s to %s recipient(s): %s.',
+ $this->renderHandleLink($author_phid),
+ $this->renderHandleLink($object_phid),
+ new PhutilNumber(count($new)),
+ $handles);
+ case self::TYPE_REVOKE:
+ if (!is_array($new)) {
+ $new = array();
+ }
+ $handles = $this->renderHandleList($new);
+ return pht(
+ '%s revoked %s from %s recipient(s): %s.',
+ $this->renderHandleLink($author_phid),
+ $this->renderHandleLink($object_phid),
+ new PhutilNumber(count($new)),
+ $handles);
}
return parent::getTitleForFeed();
diff --git a/src/infrastructure/internationalization/translation/PhabricatorUSEnglishTranslation.php b/src/infrastructure/internationalization/translation/PhabricatorUSEnglishTranslation.php
--- a/src/infrastructure/internationalization/translation/PhabricatorUSEnglishTranslation.php
+++ b/src/infrastructure/internationalization/translation/PhabricatorUSEnglishTranslation.php
@@ -1542,6 +1542,20 @@
'%s revoked this badge from recipients: %3$s.',
),
),
+
+ '%s awarded %s to %s recipient(s): %s.' => array(
+ array(
+ '%s awarded %s to recipient: %4$s.',
+ '%s awarded %s to recipients: %4$s.',
+ ),
+ ),
+
+ '%s revoked %s from %s recipient(s): %s.' => array(
+ array(
+ '%s revoked %s from recipient: %4$s.',
+ '%s revoked %s from recipients: %4$s.',
+ ),
+ ),
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 30, 8:11 AM (1 w, 15 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7422194
Default Alt Text
D15534.id37452.diff (2 KB)
Attached To
Mode
D15534: Create feed transaction stories for awarding/revoking badges
Attached
Detach File
Event Timeline
Log In to Comment