converted text domain to string instead of constant
This commit is contained in:
@ -122,22 +122,22 @@ class MailChimp {
|
||||
function throwException($error) {
|
||||
switch($error) {
|
||||
case 'API':
|
||||
$errorMessage = __('Invalid API Key.', MAILPOET);
|
||||
$errorMessage = __('Invalid API Key.', 'mailpoet');
|
||||
break;
|
||||
case 'connection':
|
||||
$errorMessage = __('Could not connect to your MailChimp account.', MAILPOET);
|
||||
$errorMessage = __('Could not connect to your MailChimp account.', 'mailpoet');
|
||||
break;
|
||||
case 'headers':
|
||||
$errorMessage = __('The selected lists do not have matching columns (headers).', MAILPOET);
|
||||
$errorMessage = __('The selected lists do not have matching columns (headers).', 'mailpoet');
|
||||
break;
|
||||
case 'size':
|
||||
$errorMessage = __('The information received from MailChimp is too large for processing. Please limit the number of lists!', MAILPOET);
|
||||
$errorMessage = __('The information received from MailChimp is too large for processing. Please limit the number of lists!', 'mailpoet');
|
||||
break;
|
||||
case 'subscribers':
|
||||
$errorMessage = __('Did not find any active subscribers.', MAILPOET);
|
||||
$errorMessage = __('Did not find any active subscribers.', 'mailpoet');
|
||||
break;
|
||||
case 'lists':
|
||||
$errorMessage = __('Did not find any valid lists.', MAILPOET);
|
||||
$errorMessage = __('Did not find any valid lists.', 'mailpoet');
|
||||
break;
|
||||
}
|
||||
throw new \Exception($errorMessage);
|
||||
|
Reference in New Issue
Block a user