mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Use pht() for plural
This commit is contained in:
parent
4b10707d4d
commit
606ca2831c
1 changed files with 1 additions and 5 deletions
|
@ -142,11 +142,7 @@ final class DifferentialManiphestTasksFieldSpecification
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($invalid) {
|
if ($invalid) {
|
||||||
if (count($invalid) > 1) {
|
$what = pht('Maniphest Task(s)', count($invalid));
|
||||||
$what = 'Maniphest Tasks';
|
|
||||||
} else {
|
|
||||||
$what = 'Maniphest Task';
|
|
||||||
}
|
|
||||||
$invalid = implode(', ', $invalid);
|
$invalid = implode(', ', $invalid);
|
||||||
throw new DifferentialFieldParseException(
|
throw new DifferentialFieldParseException(
|
||||||
"Commit message references nonexistent {$what}: {$invalid}.");
|
"Commit message references nonexistent {$what}: {$invalid}.");
|
||||||
|
|
Loading…
Reference in a new issue