translate editprofile 100%

This commit is contained in:
2025-07-25 23:04:28 +02:00
parent 199000035e
commit a99986813e
3 changed files with 16 additions and 7 deletions

View File

@@ -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),
),
),