Skip to content

Commit

Permalink
change word life-threatening to severe on attendee allergy question
Browse files Browse the repository at this point in the history
  • Loading branch information
timiwahalahti authored and iandunn committed Jul 24, 2023
1 parent ff68919 commit 84aae33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Class Allergy_Field.
*
* Add a non-optional attendee field indicating if they have a life-threatening allergy.
* Add a non-optional attendee field indicating if they have a severe allergy.
*
* @package WordCamp\CampTix_Tweaks
*/
Expand All @@ -27,9 +27,9 @@ class Allergy_Field extends CampTix_Addon {
* Hook into WordPress and Camptix.
*/
public function camptix_init() {
$this->label = __( 'Life-threatening allergy', 'wordcamporg' );
$this->label = __( 'Severe allergy', 'wordcamporg' );

$this->question = __( 'Do you have a life-threatening allergy that would affect your experience at WordCamp?', 'wordcamporg' );
$this->question = __( 'Do you have a severe allergy that would affect your experience at WordCamp?', 'wordcamporg' );

$this->options = array(
'yes' => _x( 'Yes (we will contact you)', 'ticket registration option', 'wordcamporg' ),
Expand Down Expand Up @@ -330,11 +330,11 @@ protected function maybe_send_notification_email( $value, $attendee ) {
foreach ( $recipients as $recipient ) {
$subject = sprintf(
/* translators: Email subject line. The %s placeholder is the name of a WordCamp. */
wp_strip_all_tags( __( 'An attendee who has a life-threatening allergy has registered for %s', 'wordcamporg' ) ),
wp_strip_all_tags( __( 'An attendee who has a severe allergy has registered for %s', 'wordcamporg' ) ),
$wordcamp_name
);

$message_line_1 = wp_strip_all_tags( __( 'The following attendee has indicated that they have a life-threatening allergy. Please note that this information is confidential.', 'wordcamporg' ) );
$message_line_1 = wp_strip_all_tags( __( 'The following attendee has indicated that they have a severe allergy. Please note that this information is confidential.', 'wordcamporg' ) );

$message_line_2 = wp_strip_all_tags( __( 'Please follow the procedure outlined in the WordCamp Organizer Handbook to ensure the health and safety of this event\'s attendees.', 'wordcamporg' ) );

Expand All @@ -350,7 +350,7 @@ protected function maybe_send_notification_email( $value, $attendee ) {
}

/**
* Action: Fires when a notification is sent about a WordCamp attendee with a life-threatening allergy.
* Action: Fires when a notification is sent about a WordCamp attendee with a severe allergy.
*
* @param array $details Contains information about the WordCamp and the attendee.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ function load_custom_addons() {
* @return string
*/
function modify_default_fields_list( $default_fields ) {
return __( 'Top three fields: First name, last name, e-mail address.<br />Bottom four fields: Attendee list opt-out, life-threatening allergy, accessibility needs, Code of Conduct agreement.', 'wordcamporg' );
return __( 'Top three fields: First name, last name, e-mail address.<br />Bottom four fields: Attendee list opt-out, severe allergy, accessibility needs, Code of Conduct agreement.', 'wordcamporg' );
}

/**
Expand Down

0 comments on commit 84aae33

Please sign in to comment.