From 66c5c4c1d65e5d7fb1ece2c86262ca0a262ddd31 Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 8 Nov 2021 15:52:24 +0100 Subject: [PATCH] accompanying period work: translate flash message --- .../Controller/AccompanyingCourseWorkController.php | 4 +--- src/Bundle/ChillPersonBundle/translations/messages.fr.yml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php index 0b56d6af2..cf8e5cab0 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php @@ -125,7 +125,6 @@ class AccompanyingCourseWorkController extends AbstractController { // TODO ACL $em = $this->getDoctrine()->getManager(); - dump($work); $form = $this->createDeleteForm($work->getId()); @@ -145,8 +144,7 @@ class AccompanyingCourseWorkController extends AbstractController $this->addFlash( 'success', - //$translator->trans("The accompanying period work has been successfully removed.") //TODO translation - "The accompanying period work has been successfully removed." + $this->trans->trans("The accompanying period work has been successfully removed.") ); return $this->redirectToRoute('chill_person_accompanying_period_work_list', [ diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index 96cf5a469..0a720af3e 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -406,6 +406,7 @@ Back to household: Revenir au ménage Accompanying Course Actions: Actions d'accompagnements Accompanying Course Action: Action d'accompagnement Are you sure you want to remove the work of the accompanying period %name% ?: Êtes-vous sûr de vouloir supprimer l'action de la période d'accompagnement %name% ? +The accompanying period work has been successfully removed.: L'action d'accompagnement a été supprimée. accompanying_course_work: create: Créer une action Create accompanying course work: Créer une action d'accompagnement