converted text domain to string instead of constant

This commit is contained in:
Jonathan Labreuille
2016-09-30 09:58:26 +02:00
parent 42202f676a
commit 7fbf84db1f
57 changed files with 365 additions and 366 deletions

View File

@ -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);