diff --git a/lib/app/pages/child_details_page.dart b/lib/app/pages/child_details_page.dart index c405f68..864e4dc 100644 --- a/lib/app/pages/child_details_page.dart +++ b/lib/app/pages/child_details_page.dart @@ -21,6 +21,7 @@ import 'package:times_up_flutter/common_widgets/show_alert_dialog.dart'; import 'package:times_up_flutter/common_widgets/show_bottom_sheet.dart'; import 'package:times_up_flutter/common_widgets/show_exeption_alert.dart'; import 'package:times_up_flutter/common_widgets/show_logger.dart'; +import 'package:times_up_flutter/l10n/l10n.dart'; import 'package:times_up_flutter/models/child_model/child_model.dart'; import 'package:times_up_flutter/models/notification_model/notification_model.dart'; import 'package:times_up_flutter/services/database.dart'; @@ -60,7 +61,7 @@ class _ChildDetailsPageState extends State { } on FirebaseException catch (e) { await showExceptionAlertDialog( context, - title: 'Operation failed', + title: AppLocalizations.of(context).operationFailed, exception: e, ); } @@ -120,9 +121,11 @@ class _ChildDetailsPageState extends State { slivers: [ SliverList( delegate: SliverChildListDelegate([ - const HeaderWidget( - title: "Enter this code on the child's device", - subtitle: 'Long press to copy or double tap to share ', + HeaderWidget( + title: AppLocalizations.of(context) + .enterThisCodeOnTheChildDevice, + subtitle: AppLocalizations.of(context) + .longPressToCopyOrDoubleTapToShare, ), Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, @@ -142,7 +145,7 @@ class _ChildDetailsPageState extends State { }, onDoubleTap: () async { await Share.share( - "Enter this code on child's device:\n${model.id}", + "${AppLocalizations.of(context).enterThisCodeOnChildDevice} \n${model.id}", ); }, child: JHDisplayText( @@ -179,8 +182,9 @@ class _ChildDetailsPageState extends State { ], ), const SizedBox(height: 18), - const HeaderWidget( - title: "Send notifications to your Child's device", + HeaderWidget( + title: AppLocalizations.of(context) + .sendNotificationToYourChildDevice, subtitle: 'Push the button ', ).p8, GestureDetector( diff --git a/lib/l10n/arb/app_de.arb b/lib/l10n/arb/app_de.arb index 01a0346..625ecf2 100644 --- a/lib/l10n/arb/app_de.arb +++ b/lib/l10n/arb/app_de.arb @@ -2,6 +2,10 @@ "@@locale": "de", "welcome": "Wilkommen", "changeTheSettingsHere": "Ändern Sie hier die Einstellungen", - "addNewChildHere": "Fügen Sie hier ein neues Kind hinzu" - + "addNewChildHere": "Fügen Sie hier ein neues Kind hinzu", + "operationFailed": "Operation failed", + "enterThisCodeOnTheChildDevice": "Enter this code on the child's device", + "longPressToCopyOrDoubleTapToShare": "Long press to copy or double tap to share", + "enterThisCodeOnChildDevice": "Enter this code on child's device: ", + "sendNotificationToYourChildDevice": "Send notifications to your Child's device" } \ No newline at end of file diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index 6edc24e..34b8d3b 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -2,6 +2,10 @@ "@@locale": "en", "welcome": "Welcome", "changeTheSettingsHere": "change the settings here", - "addNewChildHere": "Add a new child here " - + "addNewChildHere": "Add a new child here ", + "operationFailed": "Operation failed", + "enterThisCodeOnTheChildDevice": "Enter this code on the child's device", + "longPressToCopyOrDoubleTapToShare": "Long press to copy or double tap to share", + "enterThisCodeOnChildDevice": "Enter this code on child's device: ", + "sendNotificationToYourChildDevice": "Send notifications to your Child's device" } \ No newline at end of file diff --git a/lib/l10n/arb/app_es.arb b/lib/l10n/arb/app_es.arb index e95d77b..951b214 100644 --- a/lib/l10n/arb/app_es.arb +++ b/lib/l10n/arb/app_es.arb @@ -2,7 +2,12 @@ "@@locale": "es", "welcome": "Hola !", "changeTheSettingsHere": "Cambiar la configuración aquí", - "addNewChildHere": "Añadir un nuevo niño[a] aquí" + "addNewChildHere": "Añadir un nuevo niño[a] aquí", + "operationFailed": "Operation failed", + "enterThisCodeOnTheChildDevice": "Enter this code on the child's device", + "longPressToCopyOrDoubleTapToShare": "Long press to copy or double tap to share", + "enterThisCodeOnChildDevice": "Enter this code on child's device: ", + "sendNotificationToYourChildDevice": "Send notifications to your Child's device" } \ No newline at end of file diff --git a/lib/l10n/arb/app_fr.arb b/lib/l10n/arb/app_fr.arb index 8fd9c23..ead6c15 100644 --- a/lib/l10n/arb/app_fr.arb +++ b/lib/l10n/arb/app_fr.arb @@ -2,6 +2,10 @@ "@@locale": "fr", "welcome": "Bienvenue", "changeTheSettingsHere": "Modifier les paramètres ici", - "addNewChildHere": "Ajoute un enfant ici" - + "addNewChildHere": "Ajoute un enfant ici", + "operationFailed": "Operation failed", + "enterThisCodeOnTheChildDevice": "Enter this code on the child's device", + "longPressToCopyOrDoubleTapToShare": "Long press to copy or double tap to share", + "enterThisCodeOnChildDevice": "Enter this code on child's device: ", + "sendNotificationToYourChildDevice": "Send notifications to your Child's device" } \ No newline at end of file diff --git a/lib/l10n/arb/app_tr.arb b/lib/l10n/arb/app_tr.arb index 8381d0f..dfde34b 100644 --- a/lib/l10n/arb/app_tr.arb +++ b/lib/l10n/arb/app_tr.arb @@ -2,6 +2,11 @@ "@@locale": "tr", "welcome": "Hoş Geldiniz", "changeTheSettingsHere": "Buradaki ayarları değiştir", - "addNewChildHere": "Buraya yeni bir çocuk ekleyin" + "addNewChildHere": "Buraya yeni bir çocuk ekleyin", + "operationFailed": "Operation failed", + "enterThisCodeOnTheChildDevice": "Enter this code on the child's device", + "longPressToCopyOrDoubleTapToShare": "Long press to copy or double tap to share", + "enterThisCodeOnChildDevice": "Enter this code on child's device: ", + "sendNotificationToYourChildDevice": "Send notifications to your Child's device" } \ No newline at end of file