From b2bb06ad0ca9a360b85d45105b5038d9f2c091db Mon Sep 17 00:00:00 2001 From: vrana Date: Tue, 19 Jun 2012 15:16:52 -0700 Subject: [PATCH] Use pht() for plural --- scripts/__init_script__.php | 2 ++ src/workflow/ArcanistUnitWorkflow.php | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/__init_script__.php b/scripts/__init_script__.php index 38c6e4ed..f22299a4 100644 --- a/scripts/__init_script__.php +++ b/scripts/__init_script__.php @@ -63,6 +63,8 @@ PhutilTranslator::getInstance() 'line(s)' => array('line', 'lines'), + '%d test(s)' => array('%d test', '%d tests'), + '%d assertion(s) passed.' => array( '%d assertion passed.', '%d assertions passed.', diff --git a/src/workflow/ArcanistUnitWorkflow.php b/src/workflow/ArcanistUnitWorkflow.php index 4dcc44de..8666e63f 100644 --- a/src/workflow/ArcanistUnitWorkflow.php +++ b/src/workflow/ArcanistUnitWorkflow.php @@ -193,10 +193,9 @@ EOTEXT } } if ($postponed_count) { - echo sprintf("%s %d %s\n", + echo sprintf("%s %s\n", $status_codes[ArcanistUnitTestResult::RESULT_POSTPONED], - $postponed_count, - ($postponed_count > 1)?'tests':'test'); + pht('%d test(s)', $postponed_count)); } if ($coverage) { -- 2.43.0