]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Use pht() for plural
authorvrana <jakubv@fb.com>
Tue, 19 Jun 2012 22:16:52 +0000 (15:16 -0700)
committervrana <jakubv@fb.com>
Tue, 19 Jun 2012 22:16:52 +0000 (15:16 -0700)
scripts/__init_script__.php
src/workflow/ArcanistUnitWorkflow.php

index 38c6e4edff75de4f002db1eb11c29cf3acb83a1b..f22299a4714fbb83b4d05db19e5144eb7b36ee62 100644 (file)
@@ -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.',
index 4dcc44de2f82f94d2f70765ead63140e7645a494..8666e63fdfb042d6cabe2f49694a1689688758d2 100644 (file)
@@ -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) {