feature/internationale #46
@@ -25,6 +25,7 @@
|
|||||||
"password_different":"Must write a different password",
|
"password_different":"Must write a different password",
|
||||||
"create": "Creation",
|
"create": "Creation",
|
||||||
"user_create": "Your user created",
|
"user_create": "Your user created",
|
||||||
|
"user_update": "Your user updated",
|
||||||
"request_error": "Poorly constructed query",
|
"request_error": "Poorly constructed query",
|
||||||
"incorrect_password": "Incorrect password",
|
"incorrect_password": "Incorrect password",
|
||||||
"unknown_user": "Unknown user",
|
"unknown_user": "Unknown user",
|
||||||
@@ -83,5 +84,6 @@
|
|||||||
"description": "Description",
|
"description": "Description",
|
||||||
"describe_event": "Describe event",
|
"describe_event": "Describe event",
|
||||||
"add": "Add",
|
"add": "Add",
|
||||||
"update_profile": "Update profile"
|
"update_profile": "Update profile",
|
||||||
|
"different_password_error": "Different password"
|
||||||
}
|
}
|
@@ -25,6 +25,7 @@
|
|||||||
"password_different":"Tu dois écrire un mot de passe different",
|
"password_different":"Tu dois écrire un mot de passe different",
|
||||||
"create": "Création",
|
"create": "Création",
|
||||||
"user_create": "Votre utilisateur a été créé",
|
"user_create": "Votre utilisateur a été créé",
|
||||||
|
"user_update": "Votre utilisateur a été modifié",
|
||||||
"request_error": "Requête mal construite",
|
"request_error": "Requête mal construite",
|
||||||
"incorrect_password": "Mot de passe incorrect",
|
"incorrect_password": "Mot de passe incorrect",
|
||||||
"unknown_user": "Utilisateur inconnu",
|
"unknown_user": "Utilisateur inconnu",
|
||||||
@@ -83,7 +84,8 @@
|
|||||||
"description": "Description",
|
"description": "Description",
|
||||||
"describe_event": "Décrire l'évènement",
|
"describe_event": "Décrire l'évènement",
|
||||||
"add": "Ajouter",
|
"add": "Ajouter",
|
||||||
"update_profile": "Modifier le profil"
|
"update_profile": "Modifier le profil",
|
||||||
|
"different_password_error": "Mot de passe différent"
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@@ -108,8 +108,11 @@ class _EditProfileState extends State<EditProfile>
|
|||||||
|
|
||||||
if ((password.isNotEmpty) && (confirmedPassword.isNotEmpty)) {
|
if ((password.isNotEmpty) && (confirmedPassword.isNotEmpty)) {
|
||||||
if (password != confirmedPassword) {
|
if (password != confirmedPassword) {
|
||||||
showAlertDialog(context, AppLocalizations.of(context)?.error ?? "Error",
|
showAlertDialog(
|
||||||
"Mot de passe different");
|
context,
|
||||||
|
AppLocalizations.of(context)?.error ?? "Error",
|
||||||
|
AppLocalizations.of(context)?.different_password_error ??
|
||||||
|
"Different password");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -136,7 +139,8 @@ class _EditProfileState extends State<EditProfile>
|
|||||||
}));
|
}));
|
||||||
print(responsePut.statusCode);
|
print(responsePut.statusCode);
|
||||||
if (responsePut.statusCode == 200) {
|
if (responsePut.statusCode == 200) {
|
||||||
showEventDialog(context, "Votre utilisateur a été modifié");
|
showEventDialog(context,
|
||||||
|
AppLocalizations.of(context)?.user_update ?? "Your user updated");
|
||||||
Navigator.pushReplacement(
|
Navigator.pushReplacement(
|
||||||
context, MaterialPageRoute(builder: (_) => EditProfile()));
|
context, MaterialPageRoute(builder: (_) => EditProfile()));
|
||||||
return;
|
return;
|
||||||
@@ -236,7 +240,8 @@ class _EditProfileState extends State<EditProfile>
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text("Update profile"),
|
title: Text(
|
||||||
|
AppLocalizations.of(context)?.update_profile ?? "Update profile"),
|
||||||
backgroundColor: Colors.blue,
|
backgroundColor: Colors.blue,
|
||||||
foregroundColor: Colors.white,
|
foregroundColor: Colors.white,
|
||||||
),
|
),
|
||||||
@@ -378,7 +383,7 @@ class _EditProfileState extends State<EditProfile>
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context)?.update_profile ??
|
AppLocalizations.of(context)?.update_profile ??
|
||||||
"Update profile",
|
"Update profile ",
|
||||||
style: TextStyle(color: Colors.white, fontSize: 25),
|
style: TextStyle(color: Colors.white, fontSize: 25),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user