1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 13:30:55 +01:00

Use pht() for plural

This commit is contained in:
vrana 2012-06-19 15:04:32 -07:00
parent 4b10707d4d
commit 606ca2831c

View file

@ -142,11 +142,7 @@ final class DifferentialManiphestTasksFieldSpecification
}
if ($invalid) {
if (count($invalid) > 1) {
$what = 'Maniphest Tasks';
} else {
$what = 'Maniphest Task';
}
$what = pht('Maniphest Task(s)', count($invalid));
$invalid = implode(', ', $invalid);
throw new DifferentialFieldParseException(
"Commit message references nonexistent {$what}: {$invalid}.");