Revert "Replace wrong placeholders in translatable strings"

This reverts commit cc76882164.
This commit is contained in:
Ján Mikláš
2021-10-25 13:59:04 +02:00
committed by Rodrigo Primo
parent 2a269edb40
commit 970eb69dc1
30 changed files with 156 additions and 156 deletions

View File

@ -173,9 +173,9 @@ class DynamicSegments extends APIEndpoint {
if (isset($activelyUsedNewslettersSubjects[$segment->getId()])) {
return $this->badRequest([
Error::BAD_REQUEST => str_replace(
'%1$s',
'%$1s',
"'" . join("', '", $activelyUsedNewslettersSubjects[$segment->getId()] ) . "'",
_x('Segment cannot be deleted because its used for %1$s email', 'Alert shown when trying to delete segment, which is assigned to any automatic emails.', 'mailpoet')
_x('Segment cannot be deleted because its used for %$1s email', 'Alert shown when trying to delete segment, which is assigned to any automatic emails.', 'mailpoet')
),
]);
}