mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +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 (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}.");
|
||||
|
|
Loading…
Reference in a new issue