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