Add a comment for translators for an error during resending
[MAILPOET-6241]
This commit is contained in:
committed by
alex-mpoet
parent
9876538c14
commit
65728f6315
@ -128,6 +128,7 @@ class SendingTaskSubscribers extends APIEndpoint {
|
|||||||
|
|
||||||
if ($newsletter->canBeSetActive() && $newsletter->getStatus() !== NewsletterEntity::STATUS_ACTIVE) {
|
if ($newsletter->canBeSetActive() && $newsletter->getStatus() !== NewsletterEntity::STATUS_ACTIVE) {
|
||||||
return $this->errorResponse([
|
return $this->errorResponse([
|
||||||
|
// translators: This error occurs when resending a failed email message to a recipient and the associated email definition (e.g., a welcome email, an automation email) is inactive.
|
||||||
APIError::BAD_REQUEST => __('Failed to resend! The email is not active. Please activate it first.', 'mailpoet'),
|
APIError::BAD_REQUEST => __('Failed to resend! The email is not active. Please activate it first.', 'mailpoet'),
|
||||||
], [], Response::STATUS_BAD_REQUEST);
|
], [], Response::STATUS_BAD_REQUEST);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user