translate view/profile
continuous-integration/drone/push Build was killed Details

master
remrem 2 years ago
parent a2657b2bba
commit 8ee5055ffc

@ -112,7 +112,7 @@ class _ProfileViewAllPlatforme extends State<ProfileViewAllPlatforme> {
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8))),
onPressed: logOff,
child: const Text('Déconnexion',
child: const Text('Log out',
style: TextStyle(color: Colors.black)),
),
const SizedBox(
@ -124,7 +124,7 @@ class _ProfileViewAllPlatforme extends State<ProfileViewAllPlatforme> {
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8))),
onPressed: deleteUser,
child: const Text('Supprimer son compte',
child: const Text('Delete your account',
style: TextStyle(color: Colors.black)),
),
],

@ -35,7 +35,7 @@ class ContactUsView extends StatelessWidget {
),
),
title: Text(
"Nous Contacter",
"Contact us",
style: TextStyle(
color: TColor.black,
fontSize: 16,
@ -50,17 +50,16 @@ class ContactUsView extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
SizedBox(height: media.width * 0.02),
const Text(
"Vous pouvez nous contacter pour toute question, suggestion ou problème concernant notre application SmartFit.",
"You can contact us with any questions, suggestions or issues regarding our SmartFit app.",
style: TextStyle(
fontSize: 16,
),
),
SizedBox(height: media.width * 0.05),
const Text(
"Adresse e-mail",
"Email address",
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
@ -74,7 +73,7 @@ class ContactUsView extends StatelessWidget {
),
SizedBox(height: media.width * 0.02),
const Text(
"Téléphone",
"Phone",
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
@ -88,7 +87,7 @@ class ContactUsView extends StatelessWidget {
),
SizedBox(height: media.width * 0.02),
const Text(
"Adresse",
"Address",
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
@ -102,14 +101,14 @@ class ContactUsView extends StatelessWidget {
),
SizedBox(height: media.width * 0.02),
const Text(
"Heures de bureau",
"Schedules",
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
const Text(
"Lundi - Vendredi : 9h00 - 18h00",
"Monday - Friday : 9h00 - 18h00",
style: TextStyle(
fontSize: 16,
),

@ -52,7 +52,7 @@ class _MobileChangeEmailViewState extends State<MobileChangeEmailView> {
),
),
title: Text(
"Changer son e-mail",
"Change your email",
style: TextStyle(
color: TColor.black, fontSize: 16, fontWeight: FontWeight.w700),
),
@ -70,7 +70,7 @@ class _MobileChangeEmailViewState extends State<MobileChangeEmailView> {
Row(
children: [
Text(
"Ancien e-mail : ",
"Current email : ",
style: TextStyle(
color: TColor.black,
fontSize: 16,
@ -95,7 +95,7 @@ class _MobileChangeEmailViewState extends State<MobileChangeEmailView> {
child: Column(
children: [
RoundTextField(
hitText: "Nouveau e-mail",
hitText: "New email",
icon: "assets/img/user_text.svg",
keyboardType: TextInputType.text,
controller: controllerTextEmail,
@ -110,7 +110,7 @@ class _MobileChangeEmailViewState extends State<MobileChangeEmailView> {
height: media.width * 0.01,
),
RoundButton(
title: "Confirmer",
title: "Confirm",
onPressed: () async {
bool res = await api.updateUserInfo(
'email',

@ -56,7 +56,7 @@ class _MobileChangePasswordViewState extends State<MobileChangePasswordView> {
),
),
title: Text(
"Changer son Mot de passe",
"Change your password",
style: TextStyle(
color: TColor.black, fontSize: 16, fontWeight: FontWeight.w700),
),
@ -80,7 +80,7 @@ class _MobileChangePasswordViewState extends State<MobileChangePasswordView> {
children: [
SizedBox(height: media.width * 0.05),
RoundTextField(
hitText: "Ancien mot de passe",
hitText: "Current password",
obscureText: true,
icon: "assets/img/lock.svg",
keyboardType: TextInputType.text,
@ -89,20 +89,20 @@ class _MobileChangePasswordViewState extends State<MobileChangePasswordView> {
SizedBox(height: media.width * 0.07),
RoundTextField(
controller: controllerNewPasswd,
hitText: "Nouveau mot de passe",
hitText: "New password",
icon: "assets/img/lock.svg",
obscureText: true,
),
SizedBox(height: media.width * 0.07),
RoundTextField(
controller: controllerNewPasswd2,
hitText: "Confirmer nouveau mot de passe",
hitText: "Confirm new password",
icon: "assets/img/lock.svg",
obscureText: true,
),
SizedBox(height: media.width * 0.07),
RoundButton(
title: "Confirmer",
title: "Confirm",
onPressed: () async {
Tuple2<bool, String> res = await api.login(
controllerActualPasswd.text,

@ -53,7 +53,7 @@ class _MobileChangeUsernameViewState extends State<MobileChangeUsernameView> {
),
),
title: Text(
"Changer son pseudo",
"Change your username",
style: TextStyle(
color: TColor.black, fontSize: 16, fontWeight: FontWeight.w700),
),
@ -71,7 +71,7 @@ class _MobileChangeUsernameViewState extends State<MobileChangeUsernameView> {
Row(
children: [
Text(
"Ancien pseudo : ",
"Current username: ",
style: TextStyle(
color: TColor.black,
fontSize: 16,
@ -96,7 +96,7 @@ class _MobileChangeUsernameViewState extends State<MobileChangeUsernameView> {
child: Column(
children: [
RoundTextField(
hitText: "Nouveau pseudo",
hitText: "New username",
icon: "assets/img/user_text.svg",
keyboardType: TextInputType.text,
controller: controllerTextUsername,
@ -109,7 +109,7 @@ class _MobileChangeUsernameViewState extends State<MobileChangeUsernameView> {
TextStyle(color: infoManager.messageColor))),
SizedBox(height: media.width * 0.02),
RoundButton(
title: "Confirmer",
title: "Confirm",
onPressed: () async {
bool res = await api.updateUserInfo(
'username',

@ -14,28 +14,24 @@ class _MobileProfileView extends State<MobileProfileView> {
List accountArr = [
{
"image": "assets/img/p_personal.png",
"name": "Changer son pseudo",
"name": "Change your username",
"tag": "1"
},
{
"image": "assets/img/p_personal.png",
"name": "Changer son email",
"name": "Change your email",
"tag": "3"
},
{
"image": "assets/img/p_personal.png",
"name": "Changer son mot de passe",
"name": "Change your password",
"tag": "2"
},
];
List otherArr = [
{"image": "assets/img/p_contact.png", "name": "Nous contacter", "tag": "5"},
{
"image": "assets/img/p_privacy.png",
"name": "Politique de confidentialité",
"tag": "6"
},
{"image": "assets/img/p_contact.png", "name": "Contact us", "tag": "5"},
{"image": "assets/img/p_privacy.png", "name": "Privacy policy", "tag": "6"},
];
@override
Widget build(BuildContext context) {

@ -35,7 +35,7 @@ class PrivacyPolicyView extends StatelessWidget {
),
),
title: Text(
"Politique de confidentialité",
"Privacy policy",
style: TextStyle(
color: TColor.black,
fontSize: 16,
@ -51,7 +51,7 @@ class PrivacyPolicyView extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
const Text(
"Politique de confidentialité de SmartFit",
"SmartFit privacy policy",
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
@ -59,14 +59,14 @@ class PrivacyPolicyView extends StatelessWidget {
),
SizedBox(height: media.width * 0.02),
const Text(
"Cette Politique de confidentialité explique comment SmartFit collecte, utilise, protège et partage vos informations lorsque vous utilisez notre application mobile SmartFit.",
"This Privacy Policy explains how SmartFit collects, uses, protects and shares your information when you use our SmartFit mobile application.",
style: TextStyle(
fontSize: 16,
),
),
SizedBox(height: media.width * 0.05),
const Text(
"Collecte et Utilisation des Informations",
"Collect and usage of your data",
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
@ -77,7 +77,7 @@ class PrivacyPolicyView extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"SmartFit recueille des données uniquement dans le but d'analyser et d'afficher des informations relatives à vos activités physiques à partir des données collectées par votre montre connectée. Ces informations peuvent inclure, sans toutefois s'y limiter :",
"SmartFit collects data solely for the purpose of analyzing and displaying information about your physical activities based on data collected by your smartwatch. This information may include, but is not limited to:",
style: TextStyle(
fontSize: 16,
),
@ -87,31 +87,31 @@ class PrivacyPolicyView extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"• Données d'activité physique (comme la fréquence cardiaque, le nombre de pas, la distance parcourue, etc.)",
" Physical activity data (such as heart rate, number of steps, distance traveled, etc.",
style: TextStyle(
fontSize: 16,
),
),
Text(
"Données sur les habitudes de sommeil",
"Sleep data",
style: TextStyle(
fontSize: 16,
),
),
Text(
"Informations de localisation (si l'option est activée par l'utilisateur)",
"GPS data",
style: TextStyle(
fontSize: 16,
),
),
Text(
"Préférences de l'utilisateur concernant les paramètres de l'application",
"Application parameters",
style: TextStyle(
fontSize: 16,
),
),
Text(
"Ces informations sont utilisées pour générer des graphiques, des statistiques et des recommandations personnalisées afin de vous aider dans vos objectifs de remise en forme.",
"This information is used to generate graphs, statistics and personalized recommendations to help you with your fitness goals.",
style: TextStyle(
fontSize: 16,
),
@ -122,7 +122,7 @@ class PrivacyPolicyView extends StatelessWidget {
),
SizedBox(height: media.width * 0.05),
const Text(
"Protection des Informations",
"Information protection",
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,

@ -52,7 +52,7 @@ class _WebChangeEmailViewState extends State<WebChangeEmailView> {
),
),
title: Text(
"Changer son email",
"Change you email",
style: TextStyle(
color: TColor.black, fontSize: 16, fontWeight: FontWeight.w700),
),
@ -70,7 +70,7 @@ class _WebChangeEmailViewState extends State<WebChangeEmailView> {
Row(
children: [
Text(
"Email actuel : ",
"Current email: ",
style: TextStyle(
color: TColor.black,
fontSize: 16,
@ -95,7 +95,7 @@ class _WebChangeEmailViewState extends State<WebChangeEmailView> {
child: Column(
children: [
RoundTextField(
hitText: "Nouveau email",
hitText: "New email",
icon: "assets/img/user_text.svg",
keyboardType: TextInputType.text,
controller: controllerTextEmail,
@ -108,7 +108,7 @@ class _WebChangeEmailViewState extends State<WebChangeEmailView> {
TextStyle(color: infoManager.messageColor))),
SizedBox(height: media.width * 0.03),
RoundButton(
title: "Confirmer",
title: "Confirm",
onPressed: () async {
bool res = await apiWrapper.updateUserInfo(
'email',

@ -55,7 +55,7 @@ class _WebChangePasswordViewState extends State<WebChangePasswordView> {
),
),
title: Text(
"Changer son Mot de passe",
"Change password",
style: TextStyle(
color: TColor.black, fontSize: 16, fontWeight: FontWeight.w700),
),
@ -78,7 +78,7 @@ class _WebChangePasswordViewState extends State<WebChangePasswordView> {
child: Column(
children: [
RoundTextField(
hitText: "Ancien mot de passe",
hitText: "Current password",
obscureText: true,
icon: "assets/img/lock.svg",
keyboardType: TextInputType.text,
@ -87,14 +87,14 @@ class _WebChangePasswordViewState extends State<WebChangePasswordView> {
SizedBox(height: media.width * 0.02),
RoundTextField(
controller: controllerNewPasswd,
hitText: "Nouveau mot de passe",
hitText: "New password",
icon: "assets/img/lock.svg",
obscureText: true,
),
SizedBox(height: media.width * 0.02),
RoundTextField(
controller: controllerNewPasswd2,
hitText: "Confirmer nouveau mot de passe",
hitText: "Confirm new password",
icon: "assets/img/lock.svg",
obscureText: true,
),
@ -105,7 +105,7 @@ class _WebChangePasswordViewState extends State<WebChangePasswordView> {
TextStyle(color: infoManager.messageColor))),
SizedBox(height: media.width * 0.04),
RoundButton(
title: "Confirmer",
title: "Confirm",
onPressed: () async {
Tuple2<bool, String> res = await api.login(
controllerActualPasswd.text,

@ -52,7 +52,7 @@ class _WebChangeUsernameViewState extends State<WebChangeUsernameView> {
),
),
title: Text(
"Changer son pseudo",
"Change your username",
style: TextStyle(
color: TColor.black, fontSize: 16, fontWeight: FontWeight.w700),
),
@ -70,7 +70,7 @@ class _WebChangeUsernameViewState extends State<WebChangeUsernameView> {
Row(
children: [
Text(
"Ancien pseudo : ",
"Current username: ",
style: TextStyle(
color: TColor.black,
fontSize: 16,
@ -95,7 +95,7 @@ class _WebChangeUsernameViewState extends State<WebChangeUsernameView> {
child: Column(
children: [
RoundTextField(
hitText: "Nouveau pseudo",
hitText: "New username",
icon: "assets/img/user_text.svg",
keyboardType: TextInputType.text,
controller: controllerTextUsername,
@ -110,7 +110,7 @@ class _WebChangeUsernameViewState extends State<WebChangeUsernameView> {
TextStyle(color: infoManager.messageColor))),
SizedBox(height: media.width * 0.04),
RoundButton(
title: "Confirmer",
title: "Confirm",
onPressed: () async {
bool res = await api.updateUserInfo(
'username',

@ -14,32 +14,24 @@ class _WebProfileView extends State<WebProfileView> {
List accountArr = [
{
"image": "assets/img/p_personal.png",
"name": "Changer son pseudo ",
"name": "Change your username",
"tag": "1"
},
{
"image": "assets/img/p_personal.png",
"name": "Changer son email ",
"name": "Change your email",
"tag": "3"
},
{
"image": "assets/img/p_personal.png",
"name": "Changer son mot de passe ",
"name": "Changer your password",
"tag": "2"
},
];
List otherArr = [
{
"image": "assets/img/p_contact.png",
"name": "Nous contacter !!",
"tag": "5"
},
{
"image": "assets/img/p_privacy.png",
"name": "Politique de confidentialité",
"tag": "6"
},
{"image": "assets/img/p_contact.png", "name": "Contact us !", "tag": "5"},
{"image": "assets/img/p_privacy.png", "name": "Privacy policy", "tag": "6"},
];
@override
Widget build(BuildContext context) {

Loading…
Cancel
Save