diff --git a/covas_mobile/lib/l10n/app_en.arb b/covas_mobile/lib/l10n/app_en.arb index 3298cb3..2479b84 100644 --- a/covas_mobile/lib/l10n/app_en.arb +++ b/covas_mobile/lib/l10n/app_en.arb @@ -37,6 +37,16 @@ "edit_pseudo": "Edit pseudo", "password":"Password", "enter_password": "Enter the passord", - "password_confirmed": "Password confirmed" + "password_confirmed": "Password confirmed", + "last_name": "Last name", +"first_name": "First name", +"email": "Mail", +"edit_last_name": "Edit name", +"edit_first_name": "Edit first name", +"edit_email": "Edit email address", +"birth_date": "Birth date", +"edit_birth": "Edit birth date", +"create_profile_button": "Create profile" + } \ 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 b379001..859597e 100644 --- a/covas_mobile/lib/l10n/app_fr.arb +++ b/covas_mobile/lib/l10n/app_fr.arb @@ -36,6 +36,16 @@ "create_profile": "Creation profil", "edit_pseudo": "Modifier le pseudo", "password":"Mot de passe", -"enter_password": "Entrez le password" +"enter_password": "Entrez le password", +"password_confirmed": "Confirmez le mot de passe", +"last_name": "Nom", +"first_name": "Prénom", +"email": "Email", +"edit_last_name": "Modifier le nom", +"edit_first_name": "Modifier le prénom", +"edit_email": "Modifier l'email", +"birth_date": "Date de naissance", +"edit_birth": "Modifier la date de naissance", +"create_profile_button": "Créer le profil" } \ No newline at end of file diff --git a/covas_mobile/lib/pages/AddProfile.dart b/covas_mobile/lib/pages/AddProfile.dart index 309f8a4..5888f57 100644 --- a/covas_mobile/lib/pages/AddProfile.dart +++ b/covas_mobile/lib/pages/AddProfile.dart @@ -251,8 +251,11 @@ class _AddProfileState extends State with ShowAlertDialog { validator: (value) => _validateField(value), decoration: InputDecoration( border: OutlineInputBorder(), - labelText: 'Nom', - hintText: 'Modifier le nom'), + labelText: AppLocalizations.of(context)?.last_name ?? + 'Last name', + hintText: + AppLocalizations.of(context)?.edit_last_name ?? + 'Edit last name'), ), ), Padding( @@ -264,8 +267,11 @@ class _AddProfileState extends State with ShowAlertDialog { validator: (value) => _validateField(value), decoration: InputDecoration( border: OutlineInputBorder(), - labelText: 'Prénom', - hintText: 'Modifier le prénom'), + labelText: AppLocalizations.of(context)?.first_name ?? + 'First name', + hintText: + AppLocalizations.of(context)?.edit_first_name ?? + 'Edit first name'), ), ), Padding( @@ -277,8 +283,10 @@ class _AddProfileState extends State with ShowAlertDialog { validator: (value) => _validateField(value), decoration: InputDecoration( border: OutlineInputBorder(), - labelText: 'Email', - hintText: 'Modifier l\'adresse mail'), + labelText: + AppLocalizations.of(context)?.email ?? 'Email', + hintText: AppLocalizations.of(context)?.edit_email ?? + 'Edit email'), ), ), Padding( @@ -291,8 +299,10 @@ class _AddProfileState extends State with ShowAlertDialog { validator: (value) => _validateField(value), decoration: InputDecoration( border: OutlineInputBorder(), - labelText: 'Date de naissance', - hintText: 'Cliquez ici pour selectionner une date'), + labelText: AppLocalizations.of(context)?.birth_date ?? + 'Birth date', + hintText: AppLocalizations.of(context)?.edit_birth ?? + 'Edit birth date'), onTap: () => onTapFunctionDatePicker(context: context)), ), SizedBox( @@ -311,7 +321,8 @@ class _AddProfileState extends State with ShowAlertDialog { } }, child: Text( - 'Créer le profil', + AppLocalizations.of(context)?.create_profile_button ?? + "Create profile", style: TextStyle(color: Colors.white, fontSize: 25), ), ),