Fix plural strings
[civicrm-core.git] / CRM / Event / Form / Task / Delete.php
index a2c11055d4e7e127263c65daa6ffb9d14f95e552..7dfc462beb749704ca0e03e538362fd36652c1b1 100644 (file)
@@ -123,18 +123,13 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task {
       $deletedParticipants += $additionalCount;
     }
 
-    $status = array(
-      ts('Participant(s) Deleted: %1 (Total Selected: %2)', array(
-          1 => $deletedParticipants,
-          2 => count($this->_participantIds),
-        )),
-    );
-    if (!empty($participantLinks)) {
-      $status[] = ts('The following participants no longer have an event fee recorded. You can edit their registration and record a replacement contribution by clicking the links below:') . '<br/>' . $participantLinks;
-    }
-    foreach ($status as $text) {
-      CRM_Core_Session::setStatus($text, '', 'info');
+    $status = ts('%count participant deleted.', array('plural' => '%count participants deleted.', 'count' => $deletedParticipants));
+
+    if ($participantLinks) {
+      $status .= '<p>' . ts('The following participants no longer have an event fee recorded. You can edit their registration and record a replacement contribution by clicking the links below:')
+        . '</p>' . $participantLinks;
     }
+    CRM_Core_Session::setStatus($status, ts('Removed'), 'info');
   }
 
 }