From: Raphaƫl Gertz Date: Wed, 27 Nov 2019 00:21:00 +0000 (+0100) Subject: Remove useless translation X-Git-Tag: 0.1.1~74 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/ee387d422d9fcd0b98198714d84aea7a0957ad84 Remove useless translation Switch to base body Add proper escaping --- diff --git a/Resources/views/mail/body.html.twig b/Resources/views/mail/body.html.twig index fd32b8b..6e580ea 100644 --- a/Resources/views/mail/body.html.twig +++ b/Resources/views/mail/body.html.twig @@ -1,4 +1,4 @@ -{% extends '@RapsysAir/mail/base.html.twig' %} +{% extends '@RapsysAir/base.html.twig' %} {% block stylesheets %} @@ -17,14 +17,14 @@ {% block body %} - - + +
{{ site_title|trans }}

{{ site_title|trans }}

{{ site_title|escape('html_attr') }}

{{ site_title }}

{% block content %}{% endblock %} - + {% endblock %} diff --git a/Resources/views/mail/recover.html.twig b/Resources/views/mail/recover.html.twig index d7ed809..4f9d00d 100644 --- a/Resources/views/mail/recover.html.twig +++ b/Resources/views/mail/recover.html.twig @@ -5,10 +5,10 @@   -

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome back to %site_title%'|trans({'%site_title%': site_title|trans})}) }}

-

{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site_title|trans}) }}

-

{% trans %}To recover your account you can follow this link: {% endtrans %}

-

{{ recover_url }}

+

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome back to %site_title%'|trans({'%site_title%': site_title})|raw}) }}

+

{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site_title}) }}

+

{{ 'To recover your account you can follow this link: '|trans }}

+

{{ recover_url }}

  diff --git a/Resources/views/mail/recover_mail.html.twig b/Resources/views/mail/recover_mail.html.twig index 0cfc299..511b8cc 100644 --- a/Resources/views/mail/recover_mail.html.twig +++ b/Resources/views/mail/recover_mail.html.twig @@ -5,10 +5,10 @@   -

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome back to %site_title%'|trans({'%site_title%': site_title|trans})}) }}

-

{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site_title|trans}) }}

-

{% trans %}Your account password has been changed, to recover your account you can follow this link: {% endtrans %}

-

{{ recover_url }}

+

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome back to %site_title%'|trans({'%site_title%': site_title})|raw}) }}

+

{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site_title}) }}

+

{{ 'Your account password has been changed, to recover your account you can follow this link: '|trans }}

+

{{ recover_url }}

  diff --git a/Resources/views/mail/register.html.twig b/Resources/views/mail/register.html.twig index b5228d2..7497c6e 100644 --- a/Resources/views/mail/register.html.twig +++ b/Resources/views/mail/register.html.twig @@ -5,9 +5,9 @@   -

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome to %site_title%'|trans({'%site_title%': site_title|trans})}) }}

+

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome to %site_title%'|trans({'%site_title%': site_title})|raw}) }}

{{ 'Hi %recipient_name%,'|trans({'%recipient_name%': recipient_name}) }}

-

{{ 'Thanks so much for joining %site_title%, the space reservation program.'|trans({'%site_title%': site_title|trans}) }}

+

{{ 'Thanks so much for joining %site_title%, the space reservation program.'|trans({'%site_title%': site_title}) }}