mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Use pht() for plural
This commit is contained in:
parent
450433dbae
commit
b2bb06ad0c
2 changed files with 4 additions and 3 deletions
|
@ -63,6 +63,8 @@ PhutilTranslator::getInstance()
|
||||||
|
|
||||||
'line(s)' => array('line', 'lines'),
|
'line(s)' => array('line', 'lines'),
|
||||||
|
|
||||||
|
'%d test(s)' => array('%d test', '%d tests'),
|
||||||
|
|
||||||
'%d assertion(s) passed.' => array(
|
'%d assertion(s) passed.' => array(
|
||||||
'%d assertion passed.',
|
'%d assertion passed.',
|
||||||
'%d assertions passed.',
|
'%d assertions passed.',
|
||||||
|
|
|
@ -193,10 +193,9 @@ EOTEXT
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($postponed_count) {
|
if ($postponed_count) {
|
||||||
echo sprintf("%s %d %s\n",
|
echo sprintf("%s %s\n",
|
||||||
$status_codes[ArcanistUnitTestResult::RESULT_POSTPONED],
|
$status_codes[ArcanistUnitTestResult::RESULT_POSTPONED],
|
||||||
$postponed_count,
|
pht('%d test(s)', $postponed_count));
|
||||||
($postponed_count > 1)?'tests':'test');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($coverage) {
|
if ($coverage) {
|
||||||
|
|
Loading…
Reference in a new issue