1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 03:50:54 +01:00

Fix some format strings

Summary: These format strings use `%d` instead of `%s`.

Test Plan: Eyeball it.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12996
This commit is contained in:
Joshua Spence 2015-05-25 21:28:49 +10:00
parent d6817d00ca
commit 1b12249b2c
3 changed files with 5 additions and 6 deletions

View file

@ -906,11 +906,10 @@ final class DifferentialChangesetParser {
$shield = $renderer->renderShield(
pht('This file was completely deleted.'));
} else if ($this->changeset->getAffectedLineCount() > 2500) {
$lines = number_format($this->changeset->getAffectedLineCount());
$shield = $renderer->renderShield(
pht(
'This file has a very large number of changes (%s lines).',
$lines));
new PhutilNumber($this->changeset->getAffectedLineCount())));
}
}

View file

@ -240,10 +240,10 @@ final class DiffusionCommitController extends DiffusionController {
$change_panel = new PHUIObjectBoxView();
$header = new PHUIHeaderView();
$header->setHeader(pht('Changes (%d', number_format($count)));
$header->setHeader(pht('Changes (%s)', new PhutilNumber($count)));
$change_panel->setID('toc');
if ($count > self::CHANGES_LIMIT && !$show_all_details) {
if ($count > self::CHANGES_LIMIT && !$show_all_details) {
$icon = id(new PHUIIconView())
->setIconFont('fa-files-o');

View file

@ -241,8 +241,8 @@ final class PhabricatorRepositoryManagementReparseWorkflow
'**NOTE**: This script will queue tasks to reparse the data. Once the '.
'tasks have been queued, you need to run Taskmaster daemons to '.
'execute them.'."\n\n".
"QUEUEING TASKS (%d Commits):",
number_format(count($commits))));
"QUEUEING TASKS (%s Commits):",
new PhutilNumber(count($commits))));
}
$progress = new PhutilConsoleProgressBar();