mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 06:14:25 +02:00
monitoring: Use translatePlural for the success message in the DeleteCommentsCommandForm
This commit is contained in:
parent
ed25488cff
commit
b092d081b9
@ -57,7 +57,8 @@ class DeleteCommentsCommandForm extends CommandForm
|
|||||||
{
|
{
|
||||||
foreach ($this->comments as $comment) {
|
foreach ($this->comments as $comment) {
|
||||||
$cmd = new DeleteCommentCommand();
|
$cmd = new DeleteCommentCommand();
|
||||||
$cmd->setCommentId($comment->id)
|
$cmd
|
||||||
|
->setCommentId($comment->id)
|
||||||
->setIsService(isset($comment->service_description));
|
->setIsService(isset($comment->service_description));
|
||||||
$this->getTransport($this->request)->send($cmd);
|
$this->getTransport($this->request)->send($cmd);
|
||||||
}
|
}
|
||||||
@ -65,7 +66,9 @@ class DeleteCommentsCommandForm extends CommandForm
|
|||||||
if (! empty($redirect)) {
|
if (! empty($redirect)) {
|
||||||
$this->setRedirectUrl($redirect);
|
$this->setRedirectUrl($redirect);
|
||||||
}
|
}
|
||||||
Notification::success($this->translate('Deleting comment..'));
|
Notification::success(
|
||||||
|
$this->translatePlural('Deleting comment..', 'Deleting comments..', count($this->comments))
|
||||||
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user