i18n: Avoid using HTML tags in translation strings
Replace `<i>%s</i>` with a simple `%s`. Move the HTML tags outside the strings, to `sprintf()` parameter.
This commit is contained in:
committed by
Jack Kitterhing
parent
556b9f4ecb
commit
6e3faef6c3
@ -92,7 +92,7 @@ class MailPoetMapper {
|
||||
private function getUnauthorizedEmailMessage($sender, $newsletter) {
|
||||
$email = $sender ? $sender['from_email'] : null;
|
||||
$message = '<p>';
|
||||
$message .= sprintf(WPFunctions::get()->__('The MailPoet Sending Service did not send your latest email because the address <i>%s</i> is not yet authorized.', 'mailpoet'), $email ?: WPFunctions::get()->__('Unknown address'));
|
||||
$message .= sprintf(WPFunctions::get()->__('The MailPoet Sending Service did not send your latest email because the address %s is not yet authorized.', 'mailpoet'), $email ?: '<i>' . WPFunctions::get()->__('Unknown address') . '</i>' );
|
||||
$message .= '</p><p>';
|
||||
$message .= Helpers::replaceLinkTags(
|
||||
WPFunctions::get()->__('[link]Authorize your email in your account now.[/link]', 'mailpoet'),
|
||||
|
Reference in New Issue
Block a user