]> Raphaël G. Git Repositories - userbundle/commitdiff
Add site and title to translated strings
authorRaphaël Gertz <git@rapsys.eu>
Sat, 2 Nov 2024 03:14:53 +0000 (04:14 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 2 Nov 2024 03:14:53 +0000 (04:14 +0100)
Improve default subjects

DependencyInjection/Configuration.php

index 41c6df886736701497061edfcdd9b370716da253..12088ae82bac8f9b33d67152b518cdde4e9cdba6 100644 (file)
@@ -77,7 +77,7 @@ class Configuration implements ConfigurationInterface {
                                        'context' => []
                                ]
                        ],
                                        'context' => []
                                ]
                        ],
-                       'translate' => [ 'title' ],
+                       'translate' => [ 'site', 'title' ],
                        'contact' => [
                                'address' => 'contact@example.com',
                                'name' => 'John Doe'
                        'contact' => [
                                'address' => 'contact@example.com',
                                'name' => 'John Doe'
@@ -117,7 +117,7 @@ class Configuration implements ConfigurationInterface {
                                        'context' => [ 'title' => 'Recover' ]
                                ],
                                'mail' => [
                                        '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' => []
                                        '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' => [
                                        'context' => [ 'title' => 'Register' ]
                                ],
                                'mail' => [
-                                       'subject' => 'Welcome!',
+                                       'subject' => 'Welcome to %%site%%!',
                                        'html' => '@RapsysUser/mail/register.html.twig',
                                        'text' => '@RapsysUser/mail/register.text.twig',
                                        'context' => []
                                        'html' => '@RapsysUser/mail/register.html.twig',
                                        'text' => '@RapsysUser/mail/register.text.twig',
                                        'context' => []