@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.

Fix Paste translation

Summary: This syntax is extremely stupid, I'll probably rewrite it later.

Test Plan:
pht('%s Line(s)', number_format(1000));

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4272

vrana 1c2e7e5d 8f0bab73

+8 -4
+5 -1
src/applications/paste/controller/PhabricatorPasteListController.php
··· 93 93 $source_code); 94 94 95 95 $line_count = count(explode("\n", $paste->getContent())); 96 + $line_count = pht( 97 + '%2$s Line(s)', 98 + $line_count, 99 + PhutilTranslator::getInstance()->formatNumber($line_count)); 96 100 97 101 $item = id(new PhabricatorObjectItemView()) 98 102 ->setHeader($paste->getFullName()) 99 103 ->setHref('/P'.$paste->getID()) 100 104 ->setObject($paste) 101 105 ->addAttribute(pht('Created %s by %s', $created, $author)) 102 - ->addIcon('none', pht('%s Line(s)', number_format($line_count))) 106 + ->addIcon('none', $line_count) 103 107 ->appendChild($source_code); 104 108 105 109 $lang_name = $paste->getLanguage();
+3 -3
src/infrastructure/internationalization/PhabricatorBaseEnglishTranslation.php
··· 193 193 ), 194 194 ), 195 195 196 - '%s Line(s)' => array( 197 - '%s Line', 198 - '%s Lines', 196 + '%2$s Line(s)' => array( 197 + '%2$s Line', 198 + '%2$s Lines', 199 199 ), 200 200 201 201 "Indexing %d object(s) of type %s." => array(