translate view/login

master
remrem 1 year ago
parent d15eb2bffc
commit 359cbfeed8

@ -82,11 +82,11 @@ class _MobileLoginView extends State<MobileLoginView> {
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
"Bienvenue",
"Welcome",
style: TextStyle(color: TColor.gray, fontSize: 16),
),
Text(
"Se connecter",
"Log in",
style: TextStyle(
color: TColor.black,
fontSize: 20,
@ -109,7 +109,7 @@ class _MobileLoginView extends State<MobileLoginView> {
),
RoundTextField(
controller: controllerTextPassword,
hitText: "Mot de passe",
hitText: "Password",
icon: "assets/img/lock.svg",
obscureText: _obscureText,
rigtIcon: TextButton(
@ -129,7 +129,7 @@ class _MobileLoginView extends State<MobileLoginView> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Mot de passe oublié ?",
"Password Lost ?",
style: TextStyle(
color: TColor.gray,
fontSize: 15,
@ -146,10 +146,10 @@ class _MobileLoginView extends State<MobileLoginView> {
style: TextStyle(color: TColor.red))),
const Spacer(),
RoundButton(
title: "Se connecter",
title: "Log in",
onPressed: () async {
if (!emailValidate || !passwordValidate) {
_printMsgError("Les champs renseigné ne sont pas valide");
_printMsgError("Fields are not valid!");
return;
}
Tuple2<bool, String> result =
@ -163,7 +163,7 @@ class _MobileLoginView extends State<MobileLoginView> {
if (infoUser.item1 == false) {
//print("Erreur - Impossible de récupéré les données de l'utilisateur");
_printMsgError(
"Impossible de récupéré les données de l'utilisateur - {$infoUser.item2}");
"Can't find user data! - {$infoUser.item2}");
} else {
util.fillUser(context, infoUser.item2, result.item2);
if (!kIsWeb)
@ -175,7 +175,7 @@ class _MobileLoginView extends State<MobileLoginView> {
builder: (context) => const MainTabView()));
}
} else {
_printMsgError("Connexion refuser - ${result.item2}");
_printMsgError("Connection refused - ${result.item2}");
}
}),
SizedBox(
@ -264,14 +264,14 @@ class _MobileLoginView extends State<MobileLoginView> {
mainAxisSize: MainAxisSize.min,
children: [
Text(
"Vous n'avez pas toujours pas de compte ? ",
"Don't have an account yet ?",
style: TextStyle(
color: TColor.black,
fontSize: 14,
),
),
Text(
"Créer un compte",
"Register",
style: TextStyle(
color: TColor.black,
fontSize: 14,

@ -98,11 +98,11 @@ class _MobileSignUpView extends State<MobileSignUpView> {
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
"Bienvenue,",
"Welcome,",
style: TextStyle(color: TColor.gray, fontSize: 16),
),
Text(
"Créer un compte",
"Register",
style: TextStyle(
color: TColor.black,
fontSize: 20,
@ -112,7 +112,7 @@ class _MobileSignUpView extends State<MobileSignUpView> {
height: media.width * 0.05,
),
RoundTextField(
hitText: "Prénom",
hitText: "Username",
icon: "assets/img/user_text.svg",
controller: controllerUsername,
),
@ -129,7 +129,7 @@ class _MobileSignUpView extends State<MobileSignUpView> {
height: media.width * 0.04,
),
RoundTextField(
hitText: "Mot de passe",
hitText: "Password",
icon: "assets/img/lock.svg",
obscureText: _obscureText,
controller: controllerTextPassword,
@ -164,7 +164,7 @@ class _MobileSignUpView extends State<MobileSignUpView> {
Padding(
padding: const EdgeInsets.only(top: 8),
child: Text(
"En continuant, vous acceptez notre Politique de\nconfidentialité et nos Conditions d'utilisation.",
"I accept to not break the app",
style: TextStyle(color: TColor.gray, fontSize: 10),
),
)
@ -181,12 +181,12 @@ class _MobileSignUpView extends State<MobileSignUpView> {
height: media.width * 0.4,
),
RoundButton(
title: "Créer un compte",
title: "Register",
onPressed: () async {
if (!emailValidate ||
!passwordValidate ||
!usernameValidate) {
_printMsgError("Les champs renseigné ne sont pas valide");
_printMsgError("Fields are not valid!");
return;
}
@ -215,7 +215,7 @@ class _MobileSignUpView extends State<MobileSignUpView> {
color: TColor.gray.withOpacity(0.5),
)),
Text(
" Ou ",
" Or ",
style: TextStyle(color: TColor.black, fontSize: 12),
),
Expanded(
@ -239,14 +239,14 @@ class _MobileSignUpView extends State<MobileSignUpView> {
mainAxisSize: MainAxisSize.min,
children: [
Text(
"Vous avez déjà un compte ? ",
"Already have an account ?",
style: TextStyle(
color: TColor.black,
fontSize: 14,
),
),
Text(
"Se connecter",
"Log in",
style: TextStyle(
color: TColor.black,
fontSize: 14,

@ -86,11 +86,11 @@ class _WebLoginView extends State<WebLoginView> {
height: media.width * 0.03,
),
Text(
"Bienvenue sur SmartFit",
"Welcome on SmartFit",
style: TextStyle(color: TColor.gray, fontSize: 16),
),
Text(
"Se connecter",
"Log in",
style: TextStyle(
color: TColor.black,
fontSize: 20,
@ -110,7 +110,7 @@ class _WebLoginView extends State<WebLoginView> {
),
RoundTextField(
controller: controllerTextPassword,
hitText: "Mot de passe",
hitText: "Password",
icon: "assets/img/lock.svg",
obscureText: _obscureText,
rigtIcon: TextButton(
@ -133,7 +133,7 @@ class _WebLoginView extends State<WebLoginView> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Mot de passe oublié ?",
"Password lost ?",
style: TextStyle(
color: TColor.gray,
fontSize: 15,
@ -150,11 +150,11 @@ class _WebLoginView extends State<WebLoginView> {
style: TextStyle(color: TColor.red))),
const Spacer(),
RoundButton(
title: "Se connecter",
title: "Log in",
onPressed: () async {
// TODO: utiliser la vrai validation
if (!emailValidate || !passwordValidate) {
_printMsgError("Les champs renseigné ne sont pas valide");
_printMsgError("Fields are not valid!");
return;
}
Tuple2<bool, String> result =
@ -168,7 +168,7 @@ class _WebLoginView extends State<WebLoginView> {
if (infoUser.item1 == false) {
//print("Erreur - Impossible de récupéré les données de l'utilisateur");
_printMsgError(
"Impossible de récupéré les données de l'utilisateur - {$infoUser.item2}");
"Can't find user data - {$infoUser.item2}");
} else {
util.fillUser(context, infoUser.item2, result.item2);
if (!kIsWeb)
@ -180,7 +180,7 @@ class _WebLoginView extends State<WebLoginView> {
builder: (context) => const MainTabView()));
}
} else {
_printMsgError("Connexion refuser - ${result.item2}");
_printMsgError("Connection refused - ${result.item2}");
}
}),
SizedBox(
@ -197,14 +197,14 @@ class _WebLoginView extends State<WebLoginView> {
mainAxisSize: MainAxisSize.min,
children: [
Text(
"Vous n'avez pas toujours pas de compte ? ",
"Don't have an account yet ? ",
style: TextStyle(
color: TColor.black,
fontSize: 14,
),
),
Text(
"Créer un compte",
"Register",
style: TextStyle(
color: TColor.black,
fontSize: 14,

@ -100,11 +100,11 @@ class _WebSignUpView extends State<WebSignUpView> {
height: media.width * 0.04,
),
Text(
"Bienvenue,",
"Welcome,",
style: TextStyle(color: TColor.gray, fontSize: 16),
),
Text(
"Créer un compte",
"Register",
style: TextStyle(
color: TColor.black,
fontSize: 20,
@ -114,7 +114,7 @@ class _WebSignUpView extends State<WebSignUpView> {
height: media.width * 0.05,
),
RoundTextField(
hitText: "Prénom",
hitText: "Username",
icon: "assets/img/user_text.svg",
controller: controllerUsername,
),
@ -131,7 +131,7 @@ class _WebSignUpView extends State<WebSignUpView> {
height: media.width * 0.04,
),
RoundTextField(
hitText: "Mot de passe",
hitText: "Password",
icon: "assets/img/lock.svg",
obscureText: _obscureText,
controller: controllerTextPassword,
@ -166,7 +166,7 @@ class _WebSignUpView extends State<WebSignUpView> {
Padding(
padding: const EdgeInsets.only(top: 8),
child: Text(
"En continuant, vous acceptez notre Politique de\nconfidentialité et nos Conditions d'utilisation.",
"Please don't break the app",
style: TextStyle(color: TColor.gray, fontSize: 10),
),
)
@ -180,12 +180,12 @@ class _WebSignUpView extends State<WebSignUpView> {
height: media.width * 0.05,
),
RoundButton(
title: "Créer un compte",
title: "Register",
onPressed: () async {
if (!emailValidate ||
!passwordValidate ||
!usernameValidate) {
_printMsgError("Les champs renseigné ne sont pas valide");
_printMsgError("Fields are not valid!");
return;
}
Tuple2<bool, String> result = await util.createUser(
@ -215,14 +215,14 @@ class _WebSignUpView extends State<WebSignUpView> {
mainAxisSize: MainAxisSize.min,
children: [
Text(
"Vous avez déjà un compte ? ",
"Already have an account ?",
style: TextStyle(
color: TColor.black,
fontSize: 14,
),
),
Text(
"Se connecter",
"Log in",
style: TextStyle(
color: TColor.black,
fontSize: 14,

Loading…
Cancel
Save