From db8d980e6a32c966035ba386f4f6a5d1079ec18d Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Mon, 23 Nov 2020 17:03:40 -0500 Subject: [PATCH] Event Full: fix translation regression --- CRM/Event/Form/Registration/Register.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 5d39b2a126..423f635d8d 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -1187,7 +1187,12 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $registerUrl .= '&pcpId=' . $form->_pcpId; } $registrationType = (CRM_Event_PseudoConstant::getKey('CRM_Event_BAO_Participant', 'participant_status_id', 'On waitlist') == $participant->status_id) ? 'waitlisted' : 'registered'; - $status = ts("It looks like you are already %1 for this event. If you want to change your registration, or you feel that you've received this message in error, please contact the site administrator.", [1 => $registrationType]); + if ($registrationType == 'waitlisted') { + $status = ts("It looks like you are already waitlisted for this event. If you want to change your registration, or you feel that you've received this message in error, please contact the site administrator."); + } + else { + $status = ts("It looks like you are already registered for this event. If you want to change your registration, or you feel that you've received this message in error, please contact the site administrator."); + } $status .= ' ' . ts('You can also register another participant.', [1 => $registerUrl]); CRM_Core_Session::singleton()->setStatus($status, ts('Oops.'), 'alert'); $url = CRM_Utils_System::url('civicrm/event/info', -- 2.25.1