mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
Display proper number in too large diff
Summary: Also avoid trailing space in translation. Test Plan: Displayed diff with 7000 files. Reviewers: chad, epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4705
This commit is contained in:
parent
8ac1afc81a
commit
a9fb828635
1 changed files with 7 additions and 4 deletions
|
@ -176,14 +176,17 @@ final class DifferentialRevisionViewController extends DifferentialController {
|
|||
$limit = 100;
|
||||
$large = $request->getStr('large');
|
||||
if (count($changesets) > $limit && !$large) {
|
||||
$count = number_format(count($changesets));
|
||||
$count = count($changesets);
|
||||
$warning = new AphrontErrorView();
|
||||
$warning->setTitle('Very Large Diff');
|
||||
$warning->setSeverity(AphrontErrorView::SEVERITY_WARNING);
|
||||
$warning->appendChild(
|
||||
'<p>'.pht('This diff is very large and affects %d files. Load '.
|
||||
'each file individually. ', $count).
|
||||
"<strong>".
|
||||
pht(
|
||||
'This diff is very large and affects %2$s files. Load each file '.
|
||||
'individually.',
|
||||
$count,
|
||||
PhutilTranslator::getInstance()->formatNumber($count)).
|
||||
" <strong>".
|
||||
phutil_render_tag(
|
||||
'a',
|
||||
array(
|
||||
|
|
Loading…
Reference in a new issue