Add a comment for translators for an error during resending

[MAILPOET-6241]
This commit is contained in:
Rostislav Wolny
2024-12-30 10:12:55 +01:00
committed by alex-mpoet
parent 9876538c14
commit 65728f6315

View File

@ -128,6 +128,7 @@ class SendingTaskSubscribers extends APIEndpoint {
if ($newsletter->canBeSetActive() && $newsletter->getStatus() !== NewsletterEntity::STATUS_ACTIVE) {
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'),
], [], Response::STATUS_BAD_REQUEST);
}