Use PhutilNumber in translations
Summary: It's a little bit confusing that you couldn't use %d but kind of expected taken that the number will be formatted so it's not a number anymore. Test Plan: /paste/ Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4764
This commit is contained in:
@@ -807,10 +807,9 @@ final class DiffusionBrowseFileController extends DiffusionController {
|
||||
|
||||
$size = strlen($data);
|
||||
$properties->addTextContent(
|
||||
pht('This is a binary file. It is %2$s byte(s) in length.',
|
||||
$size,
|
||||
PhutilTranslator::getInstance()->formatNumber($size))
|
||||
);
|
||||
pht(
|
||||
'This is a binary file. It is %s byte(s) in length.',
|
||||
new PhutilNumber($size)));
|
||||
|
||||
$actions = id(new PhabricatorActionListView())
|
||||
->setUser($this->getRequest()->getUser())
|
||||
|
||||
Reference in New Issue
Block a user