diff --git a/config/packages/translation.yaml b/config/packages/translation.yaml index 490bfc2..1ca9555 100644 --- a/config/packages/translation.yaml +++ b/config/packages/translation.yaml @@ -1,5 +1,5 @@ framework: - default_locale: en + default_locale: fr translator: default_path: '%kernel.project_dir%/translations' providers: diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig index e62106a..83810cb 100644 --- a/templates/security/login.html.twig +++ b/templates/security/login.html.twig @@ -8,6 +8,12 @@

Connexion

Accedez a votre espace.

+ {% for message in app.flashes('success') %} +
+

{{ message }}

+
+ {% endfor %} + {% if error %}

{{ error.messageKey|trans(error.messageData, 'security') }}

diff --git a/tests/Controller/StripeWebhookControllerTest.php b/tests/Controller/StripeWebhookControllerTest.php index 936d765..98280f7 100644 --- a/tests/Controller/StripeWebhookControllerTest.php +++ b/tests/Controller/StripeWebhookControllerTest.php @@ -9,7 +9,6 @@ use App\Service\PayoutPdfService; use App\Service\StripeService; use Doctrine\ORM\EntityManagerInterface; use Stripe\Event; -use Stripe\StripeObject; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class StripeWebhookControllerTest extends WebTestCase diff --git a/translations/security.fr.yaml b/translations/security.fr.yaml new file mode 100644 index 0000000..1bcc3c2 --- /dev/null +++ b/translations/security.fr.yaml @@ -0,0 +1,14 @@ +"Invalid credentials.": "Identifiants invalides." +"Invalid or expired login link.": "Lien de connexion invalide ou expire." +"Too many failed login attempts, please try again in %minutes% minute.": "Trop de tentatives de connexion echouees, veuillez reessayer dans %minutes% minute." +"Too many failed login attempts, please try again in %minutes% minutes.": "Trop de tentatives de connexion echouees, veuillez reessayer dans %minutes% minutes." +"Account is disabled.": "Ce compte est desactive." +"Account is locked.": "Ce compte est verrouille." +"Account has expired.": "Ce compte a expire." +"Credentials have expired.": "Les identifiants ont expire." +"An authentication exception occurred.": "Une erreur d'authentification est survenue." +"Authentication credentials could not be found.": "Les identifiants d'authentification n'ont pas ete trouves." +"Authentication request could not be processed due to a system problem.": "La demande d'authentification n'a pas pu etre traitee en raison d'un probleme systeme." +"CSRF token is invalid.": "Le jeton CSRF est invalide." +"Not privileged to request the resource.": "Acces non autorise a cette ressource." +"Username could not be found.": "Identifiant introuvable."