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:
Rami Yushuvaev
2019-08-28 13:49:36 +03:00
committed by Jack Kitterhing
parent 556b9f4ecb
commit 6e3faef6c3

View File

@ -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'),