Removes escape character in translations

This commit is contained in:
Vlad
2017-09-11 19:23:16 -04:00
parent e9c55260c8
commit 9305beace3
2 changed files with 3 additions and 6 deletions

View File

@ -3,8 +3,6 @@
namespace MailPoet\Config;
class PluginActivatedHook {
/** @var DeferredAdminNotices */
private $deferred_admin_notices;
public function __construct(DeferredAdminNotices $deferred_admin_notices) {
@ -13,8 +11,7 @@ class PluginActivatedHook {
public function action($plugin, $network_wide) {
if($plugin === plugin_basename(Env::$file) && $network_wide) {
$this->deferred_admin_notices->addNetworkAdminNotice(__('We noticed that you\'re using an unsupported environment. While MailPoet might work within a MultiSite environment, we dont support it.', 'mailpoet'));
$this->deferred_admin_notices->addNetworkAdminNotice(__("We noticed that you're using an unsupported environment. While MailPoet might work within a MultiSite environment, we dont support it.", 'mailpoet'));
}
}
}

View File

@ -40,7 +40,7 @@ class ServicesChecker {
$date_time = new DateTime();
$date = $date_time->formatDate(strtotime($mss_key['data']['expire_at']));
$error = Helpers::replaceLinkTags(
__('Your newsletters are awesome! Don\'t forget to [link]upgrade your MailPoet email plan[/link] by %s to keep sending them to your subscribers.', 'mailpoet'),
__("Your newsletters are awesome! Don't forget to [link]upgrade your MailPoet email plan[/link] by %s to keep sending them to your subscribers.", 'mailpoet'),
'https://account.mailpoet.com?s=' . Subscriber::getTotalSubscribers(),
array('target' => '_blank')
);
@ -93,7 +93,7 @@ class ServicesChecker {
$date_time = new DateTime();
$date = $date_time->formatDate(strtotime($premium_key['data']['expire_at']));
$error = Helpers::replaceLinkTags(
__('Your License Key is expiring! Don\'t forget to [link]renew your license[/link] by %s to keep enjoying automatic updates and Premium support.', 'mailpoet'),
__("Your License Key is expiring! Don't forget to [link]renew your license[/link] by %s to keep enjoying automatic updates and Premium support.", 'mailpoet'),
'https://account.mailpoet.com',
array('target' => '_blank')
);