From 5cf190aca7314c33c1b703c662a4936abf406498 Mon Sep 17 00:00:00 2001 From: fbenoist68 Date: Fri, 9 Aug 2024 10:11:16 +0200 Subject: [PATCH] refactor: add translation for gallery copying error --- assets/lang/en.json | 3 ++- assets/lang/fr.json | 3 ++- lib/ui/visit/visit_photo_typology_detail.dart | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/lang/en.json b/assets/lang/en.json index 68757fc..1bb3ef5 100644 --- a/assets/lang/en.json +++ b/assets/lang/en.json @@ -66,5 +66,6 @@ "i18n_label_error":"Error", "i18n_label_app_version":"App Version", "i18n_label_synchronization_error": "Synchronization error", - "i18n_label_synchronization_complete": "Synchronization complete" + "i18n_label_synchronization_complete": "Synchronization complete", + "i18n_label_error_while_copying": "Error while copying" } \ No newline at end of file diff --git a/assets/lang/fr.json b/assets/lang/fr.json index f962f74..dd4efb0 100644 --- a/assets/lang/fr.json +++ b/assets/lang/fr.json @@ -66,5 +66,6 @@ "i18n_label_error":"Erreur", "i18n_label_app_version":"App Version", "i18n_label_synchronization_error": "Erreur de synchronisation", - "i18n_label_synchronization_complete": "Synchronisation terminée" + "i18n_label_synchronization_complete": "Synchronisation terminée", + "i18n_label_error_while_copying": "Erreur lors de la copie" } \ No newline at end of file diff --git a/lib/ui/visit/visit_photo_typology_detail.dart b/lib/ui/visit/visit_photo_typology_detail.dart index f19cc82..6a29241 100644 --- a/lib/ui/visit/visit_photo_typology_detail.dart +++ b/lib/ui/visit/visit_photo_typology_detail.dart @@ -220,7 +220,7 @@ class _VisitPhotoTypologyDetailPageState 'Erreur copier dans galerie', 0); Fluttertoast.showToast( - msg: 'Error while copying!', + msg: AppLocalizations.of(context)!.translate('i18n_label_error_while_copying'), toastLength: Toast.LENGTH_LONG); } },