added textdomain to __() calls

This commit is contained in:
Jonathan Labreuille
2016-09-26 19:35:53 +02:00
parent 120af4170b
commit ba6198f956
58 changed files with 369 additions and 371 deletions

View File

@@ -122,22 +122,22 @@ class MailChimp {
function throwException($error) {
switch($error) {
case 'API':
$errorMessage = __('Invalid API Key.');
$errorMessage = __('Invalid API Key.', Env::$plugin_name);
break;
case 'connection':
$errorMessage = __('Could not connect to your MailChimp account.');
$errorMessage = __('Could not connect to your MailChimp account.', Env::$plugin_name);
break;
case 'headers':
$errorMessage = __('The selected lists do not have matching columns (headers).');
$errorMessage = __('The selected lists do not have matching columns (headers, Env::$plugin_name).');
break;
case 'size':
$errorMessage = __('The information received from MailChimp is too large for processing. Please limit the number of lists!');
$errorMessage = __('The information received from MailChimp is too large for processing. Please limit the number of lists!', Env::$plugin_name);
break;
case 'subscribers':
$errorMessage = __('Did not find any active subscribers.');
$errorMessage = __('Did not find any active subscribers.', Env::$plugin_name);
break;
case 'lists':
$errorMessage = __('Did not find any valid lists.');
$errorMessage = __('Did not find any valid lists.', Env::$plugin_name);
break;
}
throw new \Exception($errorMessage);