From: JKingsnorth Date: Thu, 5 Nov 2015 16:17:20 +0000 (+0000) Subject: CRM-17512 Improve event sellout messages X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a3fdddaaf716351e129fd082fc51fd1345012065;p=civicrm-core.git CRM-17512 Improve event sellout messages --- diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index 44a4a6dccd..0b65d1010f 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -1409,11 +1409,11 @@ WHERE v.option_group_id = g.id } elseif (($optMax - $opDbCount) == 1) { $errors[$soldOutPnum[$optId]]["price_{$fieldId}"] - = ts('Sorry, currently only a single seat is available for this option.', array(1 => ($optMax - $opDbCount))); + = ts('Sorry, currently only a single space is available for this option.', array(1 => ($optMax - $opDbCount))); } else { $errors[$soldOutPnum[$optId]]["price_{$fieldId}"] - = ts('Sorry, currently only %1 seats are available for this option.', array(1 => ($optMax - $opDbCount))); + = ts('Sorry, currently only %1 spaces are available for this option.', array(1 => ($optMax - $opDbCount))); } } } diff --git a/CRM/Event/Form/Registration/AdditionalParticipant.php b/CRM/Event/Form/Registration/AdditionalParticipant.php index 7d161b4aa8..0f9190decb 100644 --- a/CRM/Event/Form/Registration/AdditionalParticipant.php +++ b/CRM/Event/Form/Registration/AdditionalParticipant.php @@ -476,7 +476,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R if (!$self->_allowConfirmation && empty($self->_values['event']['has_waitlist']) && $totalParticipants > $self->_availableRegistrations ) { - $errors['_qf_default'] = ts('It looks like event has only %2 seats available and you are trying to register %1 participants, so could you please select price options accordingly.', array( + $errors['_qf_default'] = ts('Sorry, it looks like this event only has %2 spaces available, and you are trying to register %1 participants. Please change your selections accordingly.', array( 1 => $totalParticipants, 2 => $self->_availableRegistrations, ));