From: Raphaƫl Gertz Date: Sat, 2 Nov 2024 03:14:53 +0000 (+0100) Subject: Add site and title to translated strings X-Git-Tag: 0.5.2~4 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/36b915d742bd765c0495ff015430710444e1b5d5?hp=10322ae4af3fb083421e618c6c8f4b8dc0575126 Add site and title to translated strings Improve default subjects --- 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' => []