mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +01:00
When a diff has 12,345 lines, render "12,345 lines" instead of "12 lines"
Summary: This `%d` should be a `%s`, since the `PhutilNumber` value may get formatted according to locale settings. Test Plan: will make @zeeg Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley, zeeg Differential Revision: https://secure.phabricator.com/D8814
This commit is contained in:
parent
9889892e5b
commit
71ef48b3e5
2 changed files with 4 additions and 4 deletions
|
@ -1070,7 +1070,7 @@ final class DifferentialTransactionEditor
|
||||||
switch ($strongest->getTransactionType()) {
|
switch ($strongest->getTransactionType()) {
|
||||||
case DifferentialTransaction::TYPE_UPDATE:
|
case DifferentialTransaction::TYPE_UPDATE:
|
||||||
$count = new PhutilNumber($object->getLineCount());
|
$count = new PhutilNumber($object->getLineCount());
|
||||||
$action = pht('%s, %d line(s)', $action, $count);
|
$action = pht('%s, %s line(s)', $action, $count);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -856,9 +856,9 @@ abstract class PhabricatorBaseEnglishTranslation
|
||||||
'%d older changes are hidden.',
|
'%d older changes are hidden.',
|
||||||
),
|
),
|
||||||
|
|
||||||
'%s, %d line(s)' => array(
|
'%s, %s line(s)' => array(
|
||||||
'%s, %d line',
|
'%s, %s line',
|
||||||
'%s, %d lines',
|
'%s, %s lines',
|
||||||
),
|
),
|
||||||
|
|
||||||
'%s pushed %d commit(s) to %s.' => array(
|
'%s pushed %d commit(s) to %s.' => array(
|
||||||
|
|
Loading…
Reference in a new issue