@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Rearrange some code so that the i18n extractor can see that the params are numeric

Summary: Part of T15862

Test Plan: Read the code? May need more testing

Reviewers: O1 Blessed Committers, aklapper

Reviewed By: O1 Blessed Committers, aklapper

Subscribers: aklapper, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D26558

Pppery 7d2df6c3 785052ad

+3 -3
+1 -1
src/applications/calendar/notifications/PhabricatorCalendarEventNotificationView.php
··· 48 48 $epoch = $this->getEpoch(); 49 49 $now = PhabricatorTime::getNow(); 50 50 $minutes = (int)ceil(($epoch - $now) / 60); 51 - return new PhutilNumber($minutes); 51 + return $minutes; 52 52 } 53 53 54 54 public function getDisplayTime() {
+1 -1
src/applications/calendar/notifications/PhabricatorCalendarNotificationEngine.php
··· 268 268 pht( 269 269 '%s is starting in %s minute(s), at %s.', 270 270 $event->getEvent()->getName(), 271 - $event->getDisplayMinutes(), 271 + new PhutilNumber($event->getDisplayMinutes()), 272 272 $event->getDisplayTimeWithTimezone())); 273 273 274 274 $body->addLinkSection(
+1 -1
src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php
··· 140 140 return null; 141 141 } 142 142 143 - return pht('%d line(s)', $line_count); 143 + return pht('%d line(s)', new PhutilNumber($line_count)); 144 144 } 145 145 146 146 public function renderCoverage() {