From f8b5c24efd68f459748d0f677dc38ae87a1c6f81 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Wed, 23 Jul 2025 23:28:16 +0200 Subject: [PATCH] translate editevent 55% --- covas_mobile/lib/l10n/app_en.arb | 3 ++- covas_mobile/lib/l10n/app_fr.arb | 4 ++-- covas_mobile/lib/pages/EditEvent.dart | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/covas_mobile/lib/l10n/app_en.arb b/covas_mobile/lib/l10n/app_en.arb index 1f2224d..7776bf1 100644 --- a/covas_mobile/lib/l10n/app_en.arb +++ b/covas_mobile/lib/l10n/app_en.arb @@ -66,5 +66,6 @@ "no_picture_published": "No picture published", "event_update": "Event updated", "location": "Location", -"add_event": "Add or Update a event" +"add_event": "Add or Update a event", +"edit_image": "Edit pictures" } \ No newline at end of file diff --git a/covas_mobile/lib/l10n/app_fr.arb b/covas_mobile/lib/l10n/app_fr.arb index 9074e35..2bfe4b6 100644 --- a/covas_mobile/lib/l10n/app_fr.arb +++ b/covas_mobile/lib/l10n/app_fr.arb @@ -66,6 +66,6 @@ "no_picture_published": "Image non publiée", "event_update": "Évènement modifié", "location": "Lieu", -"add_event": "Ajouter ou modifier un évènement" - +"add_event": "Ajouter ou modifier un évènement", +"edit_image": "Changer la photo" } \ No newline at end of file diff --git a/covas_mobile/lib/pages/EditEvent.dart b/covas_mobile/lib/pages/EditEvent.dart index 578b50c..e8aef4a 100644 --- a/covas_mobile/lib/pages/EditEvent.dart +++ b/covas_mobile/lib/pages/EditEvent.dart @@ -548,7 +548,8 @@ class _EditEventState extends State child: ElevatedButton.icon( onPressed: popCamera, icon: Icon(Icons.edit, size: 16), // Edit icon - label: Text("Edit Image"), // Button text + label: Text(AppLocalizations.of(context)?.edit_image ?? + "Edit pictures"), // Button text style: ElevatedButton.styleFrom( backgroundColor: Colors.blue, // Button color foregroundColor: Colors.white, // Text color