From 36b915d742bd765c0495ff015430710444e1b5d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sat, 2 Nov 2024 04:14:53 +0100 Subject: [PATCH] Add site and title to translated strings Improve default subjects --- DependencyInjection/Configuration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 41c6df8..12088ae 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -77,7 +77,7 @@ class Configuration implements ConfigurationInterface { 'context' => [] ] ], - 'translate' => [ 'title' ], + 'translate' => [ 'site', 'title' ], 'contact' => [ 'address' => 'contact@example.com', 'name' => 'John Doe' @@ -117,7 +117,7 @@ class Configuration implements ConfigurationInterface { 'context' => [ 'title' => 'Recover' ] ], 'mail' => [ - 'subject' => 'Welcome back!', + 'subject' => 'Welcome back to %%site%%!', 'html' => '@RapsysUser/mail/recover.html.twig', 'text' => '@RapsysUser/mail/recover.text.twig', 'context' => [] @@ -133,7 +133,7 @@ class Configuration implements ConfigurationInterface { 'context' => [ 'title' => 'Register' ] ], 'mail' => [ - 'subject' => 'Welcome!', + 'subject' => 'Welcome to %%site%%!', 'html' => '@RapsysUser/mail/register.html.twig', 'text' => '@RapsysUser/mail/register.text.twig', 'context' => [] -- 2.41.1