diff --git a/covas_mobile/lib/l10n/app_en.arb b/covas_mobile/lib/l10n/app_en.arb index 80bc49c..04f7294 100644 --- a/covas_mobile/lib/l10n/app_en.arb +++ b/covas_mobile/lib/l10n/app_en.arb @@ -52,8 +52,8 @@ "no_data_geo": "No geographical data", "response_status_update": "response status code update", "error_token": "Token error", -"error_format": "Data format error given by AI" - - - +"error_format": "Data format error given by AI", +"display_picture": "Display the Picture", +"analyze_image": "Image Analyze in progress", +"loading_progress": "Loading progress" } \ 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 f220697..228edb4 100644 --- a/covas_mobile/lib/l10n/app_fr.arb +++ b/covas_mobile/lib/l10n/app_fr.arb @@ -52,6 +52,9 @@ "no_data_geo": "Aucune donnée géographique", "response_status_update": "Code du statut de réponse de la modification", "error_token": "Erreur de token", -"error_format": "Erreur de format de donnée fourni par l'IA" +"error_format": "Erreur de format de donnée fourni par l'IA", +"display_picture": "Display the Picture", +"analyze_image": "Analyse de l'image en cours", +"loading_progress": "Chargement en cours" } \ No newline at end of file diff --git a/covas_mobile/lib/pages/DisplayPictureScreen.dart b/covas_mobile/lib/pages/DisplayPictureScreen.dart index a7d7763..aea3380 100644 --- a/covas_mobile/lib/pages/DisplayPictureScreen.dart +++ b/covas_mobile/lib/pages/DisplayPictureScreen.dart @@ -235,7 +235,9 @@ class DisplayPictureScreenState extends State @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar(title: const Text('Display the Picture')), + appBar: AppBar( + title: Text(AppLocalizations.of(context)?.display_picture ?? + "Display The Picture")), // The image is stored as a file on the device. Use the `Image.file` // constructor with the given path to display the image. drawer: MyDrawer(), @@ -251,12 +253,15 @@ class DisplayPictureScreenState extends State width: _bannerAd!.size.width.toDouble(), child: AdWidget(ad: _bannerAd!)), Text( - 'Analyse de l\'image en cours', + AppLocalizations.of(context)?.analyze_image ?? + 'Image analyze in progress', style: Theme.of(context).textTheme.titleLarge, ), CircularProgressIndicator( value: controller.value, - semanticsLabel: 'Loading progress', + semanticsLabel: + AppLocalizations.of(context)?.loading_progress ?? + 'Loading progress', ), ]))); } diff --git a/covas_mobile/lib/pages/EditEvent.dart b/covas_mobile/lib/pages/EditEvent.dart index 00900f1..6b9494b 100644 --- a/covas_mobile/lib/pages/EditEvent.dart +++ b/covas_mobile/lib/pages/EditEvent.dart @@ -22,6 +22,10 @@ import '../variable/globals.dart' as globals; import '../classes/ad_helper.dart'; import 'package:google_mobile_ads/google_mobile_ads.dart'; import '../classes/auth_service.dart'; +import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:flutter_gen/gen_l10n/app_localizations.dart'; +import 'package:provider/provider.dart'; +import '../locale_provider.dart'; // Créé void main() async { WidgetsFlutterBinding.ensureInitialized();