From a2b357d9094c780ab97d6673ef9e88f24f4c273a Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Thu, 3 Sep 2020 18:03:28 +1000 Subject: [PATCH] CIVICRM-1555 Change wording on the Opt Out and Unsubscribe pages --- CRM/Mailing/Form/Optout.php | 6 +++--- CRM/Mailing/Form/Unsubscribe.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CRM/Mailing/Form/Optout.php b/CRM/Mailing/Form/Optout.php index 8514612e81..e809d497b7 100644 --- a/CRM/Mailing/Form/Optout.php +++ b/CRM/Mailing/Form/Optout.php @@ -47,7 +47,7 @@ class CRM_Mailing_Form_Optout extends CRM_Core_Form { public function buildQuickForm() { CRM_Utils_System::addHTMLHead(''); - CRM_Utils_System::setTitle(ts('Please Confirm Your Opt Out')); + CRM_Utils_System::setTitle(ts('Opt Out Confirmation')); $this->add('text', 'email_confirm', ts('Verify email address to opt out:')); $this->addRule('email_confirm', ts('Email address is required to opt out.'), 'required'); @@ -89,7 +89,7 @@ class CRM_Mailing_Form_Optout extends CRM_Core_Form { CRM_Mailing_Event_BAO_Unsubscribe::send_unsub_response($queue_id, NULL, TRUE, $job_id); } - $statusMsg = ts('Email: %1 has been successfully opted out', + $statusMsg = ts('%1 opt out confirmed.', [1 => $values['email_confirm']] ); @@ -97,7 +97,7 @@ class CRM_Mailing_Form_Optout extends CRM_Core_Form { } elseif ($result == FALSE) { // Email address not verified - $statusMsg = ts('The email address: %1 you have entered does not match the email associated with this opt out request.', + $statusMsg = ts('%1 is not associated with this opt out request.', [1 => $values['email_confirm']] ); diff --git a/CRM/Mailing/Form/Unsubscribe.php b/CRM/Mailing/Form/Unsubscribe.php index 95a6759659..c63263ba0b 100644 --- a/CRM/Mailing/Form/Unsubscribe.php +++ b/CRM/Mailing/Form/Unsubscribe.php @@ -61,7 +61,7 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form { } } if (!$groupExist) { - $statusMsg = ts('Email: %1 has been successfully unsubscribed from this Mailing List/Group.', + $statusMsg = ts('%1 has been unsubscribed.', [1 => $email] ); CRM_Core_Session::setStatus($statusMsg, '', 'error'); @@ -72,7 +72,7 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form { public function buildQuickForm() { CRM_Utils_System::addHTMLHead(''); - CRM_Utils_System::setTitle(ts('Please Confirm Your Unsubscribe from this Mailing/Group')); + CRM_Utils_System::setTitle(ts('Unsubscribe Confirmation')); $this->add('text', 'email_confirm', ts('Verify email address to unsubscribe:')); $this->addRule('email_confirm', ts('Email address is required to unsubscribe.'), 'required'); @@ -114,7 +114,7 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form { CRM_Mailing_Event_BAO_Unsubscribe::send_unsub_response($queue_id, $groups, FALSE, $job_id); } - $statusMsg = ts('Email: %1 has been successfully unsubscribed from this Mailing List/Group.', + $statusMsg = ts('%1 is unsubscribed.', [1 => $values['email_confirm']] ); @@ -122,7 +122,7 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form { } elseif ($result == FALSE) { // Email address not verified - $statusMsg = ts('The email address: %1 you have entered does not match the email associated with this unsubscribe request.', + $statusMsg = ts('%1 is not associated with this unsubscribe request.', [1 => $values['email_confirm']] ); -- 2.25.1