From: vrana Date: Tue, 19 Jun 2012 22:16:52 +0000 (-0700) Subject: Use pht() for plural X-Git-Tag: conduit-6~243 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b2bb06ad0ca9a360b85d45105b5038d9f2c091db;p=arcanist.git Use pht() for plural --- 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) {