Update CRM/Mailing/BAO/Mailing.php
authorJon <1796012+MegaphoneJon@users.noreply.github.com>
Wed, 16 Jun 2021 14:09:32 +0000 (10:09 -0400)
committerGitHub <noreply@github.com>
Wed, 16 Jun 2021 14:09:32 +0000 (10:09 -0400)
Co-authored-by: demeritcowboy <demeritcowboy@hotmail.com>
CRM/Mailing/BAO/Mailing.php

index 7cb36cdede94f227eced7c91c234bffd6dfe220e..2e53e4a388f2fc7b9445eed7694f4c53ab51cb95 100644 (file)
@@ -399,7 +399,7 @@ class CRM_Mailing_BAO_Mailing extends CRM_Mailing_DAO_Mailing {
    */
   public static function getLocationFilterAndOrderBy($email_selection_method, $location_type_id) {
     if ($email_selection_method !== 'automatic' && !$location_type_id) {
-      throw new \CRM_Core_Exception('You set an email Selection Method without specifying a Location Type.  Please go back and change your recipient settings (using the wrench icon next to "Recipients".');
+      throw new \CRM_Core_Exception(ts('You have selected an email Selection Method without specifying a Location Type. Please go back and change your recipient settings (using the wrench icon next to "Recipients").'));
     }
     $email = CRM_Core_DAO_Email::getTableName();
     // Note: When determining the ORDER that results are returned, it's