From: Raphaƫl Gertz Date: Mon, 28 Dec 2020 08:14:18 +0000 (+0100) Subject: Change copy and site flat keys to keytree X-Git-Tag: 0.1.7~7 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/91aff369a60d88afc7d4f74114daf56a7d0bf1e7?ds=sidebyside Change copy and site flat keys to keytree Prevent double translation --- diff --git a/Resources/views/mail/body.html.twig b/Resources/views/mail/body.html.twig index 6e580ea..89d8435 100644 --- a/Resources/views/mail/body.html.twig +++ b/Resources/views/mail/body.html.twig @@ -17,14 +17,14 @@ {% block body %} - - + +
{{ site_title|escape('html_attr') }}

{{ site_title }}

{{ site.title|escape('html_attr') }}

{{ site.title }}

{% block content %}{% endblock %} - + {% endblock %} diff --git a/Resources/views/mail/contact.text.twig b/Resources/views/mail/contact.text.twig index dda3abd..16f6419 100644 --- a/Resources/views/mail/contact.text.twig +++ b/Resources/views/mail/contact.text.twig @@ -6,4 +6,4 @@ -- -{{ copy_long }} - {{ copy_short }} +{{ copy.long }} - {{ copy.short }} diff --git a/Resources/views/mail/recover.html.twig b/Resources/views/mail/recover.html.twig index 4f9d00d..c473b40 100644 --- a/Resources/views/mail/recover.html.twig +++ b/Resources/views/mail/recover.html.twig @@ -5,8 +5,8 @@   -

{{ '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}) }}

+

{{ 'Subject: %subject%'|trans({'%subject%': subject})|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.text.twig b/Resources/views/mail/recover.text.twig index 794d375..c6ef6df 100644 --- a/Resources/views/mail/recover.text.twig +++ b/Resources/views/mail/recover.text.twig @@ -2,10 +2,10 @@ {% for i in range(1, subject|length) %}={% endfor %} -*{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site_title|trans}) }}* +*{{ '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: %recover_url%'|trans({'%recover_url%': recover_url}) }} -- -{{ copy_long }} - {{ copy_short }} +{{ copy.long }} - {{ copy.short }} diff --git a/Resources/views/mail/recover_mail.html.twig b/Resources/views/mail/recover_mail.html.twig index 511b8cc..3bdcb90 100644 --- a/Resources/views/mail/recover_mail.html.twig +++ b/Resources/views/mail/recover_mail.html.twig @@ -5,8 +5,8 @@   -

{{ '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}) }}

+

{{ '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/recover_mail.text.twig b/Resources/views/mail/recover_mail.text.twig index 5a44050..6acbc4a 100644 --- a/Resources/views/mail/recover_mail.text.twig +++ b/Resources/views/mail/recover_mail.text.twig @@ -2,10 +2,10 @@ {% for i in range(1, subject|length) %}={% endfor %} -*{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site_title|trans}) }}* +*{{ 'Thanks so much for rejoining %site.title%, the space reservation program.'|trans({'%site.title%': site.title|trans}) }}* {{ 'Your account password has been changed, to recover your account you can follow this link: %recover_url%'|trans({'%recover_url%': recover_url}) }} -- -{{ copy_long }} - {{ copy_short }} +{{ copy.long }} - {{ copy.short }} diff --git a/Resources/views/mail/register.html.twig b/Resources/views/mail/register.html.twig index 7497c6e..c01c1a7 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})|raw}) }}

+

{{ '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}) }}

+

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

  diff --git a/Resources/views/mail/register.text.twig b/Resources/views/mail/register.text.twig index b91e442..347ac5a 100644 --- a/Resources/views/mail/register.text.twig +++ b/Resources/views/mail/register.text.twig @@ -2,8 +2,8 @@ {% for i in range(1, subject|length) %}={% endfor %} -*{{ '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|trans}) }}* -- -{{ copy_long }} - {{ copy_short }} +{{ copy.long }} - {{ copy.short }}