From ed25488cff8b0ceee3502da8dd0e1e77cc99c69a Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 21 Aug 2015 10:28:28 +0200 Subject: [PATCH] monitoring: Use translatePlural for the success message in the DeleteDowntimesCommandForm --- .../forms/Command/Object/DeleteDowntimesCommandForm.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/application/forms/Command/Object/DeleteDowntimesCommandForm.php b/modules/monitoring/application/forms/Command/Object/DeleteDowntimesCommandForm.php index b5f7d8c08..4d310373d 100644 --- a/modules/monitoring/application/forms/Command/Object/DeleteDowntimesCommandForm.php +++ b/modules/monitoring/application/forms/Command/Object/DeleteDowntimesCommandForm.php @@ -57,15 +57,18 @@ class DeleteDowntimesCommandForm extends CommandForm { foreach ($this->downtimes as $downtime) { $delDowntime = new DeleteDowntimeCommand(); - $delDowntime->setDowntimeId($downtime->id); - $delDowntime->setIsService(isset($downtime->service_description)); + $delDowntime + ->setDowntimeId($downtime->id) + ->setIsService(isset($downtime->service_description)); $this->getTransport($this->request)->send($delDowntime); } $redirect = $this->getElement('redirect')->getValue(); if (! empty($redirect)) { $this->setRedirectUrl($redirect); } - Notification::success($this->translate('Deleting downtime.')); + Notification::success( + $this->translatePlural('Deleting downtime..', 'Deleting downtimes..', count($this->downtimes)) + ); return true; }