getSelfServiceEligibility: fix string translation
authorMathieu Lutfy <mathieu@symbiotic.coop>
Mon, 11 Apr 2022 17:58:26 +0000 (13:58 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Mon, 11 Apr 2022 17:58:26 +0000 (13:58 -0400)
CRM/Event/BAO/Participant.php

index ec9a4eb7af7b23c1a4f276d21b77e1601dcad34b..bc50f8b9eee9f3e392a91fbd5d771821a2a3589c 100644 (file)
@@ -1869,7 +1869,7 @@ WHERE    civicrm_participant.contact_id = {$contactID} AND
     //verify participant status is still Registered
     if ($details['status'] != 'Registered') {
       $details['eligible'] = FALSE;
-      $details['ineligible_message'] = "You cannot transfer or cancel your registration for " . $eventTitle . ' as you are not currently registered for this event.';
+      $details['ineligible_message'] = ts('You cannot transfer or cancel your registration for %1 as you are not currently registered for this event.', [1 => $eventTitle]);
       return $details;
     }
     // Determine if it's too late to self-service cancel/transfer.