full translate for AddProfile pages 10%
This commit is contained in:
parent
1646a0b6e3
commit
479ab76fb7
@ -20,5 +20,9 @@
|
||||
"no_events": "No events available for this location.",
|
||||
"start_date": "Start date",
|
||||
"end_date": "End date",
|
||||
"failed_suggestions": "Failed to load suggestions"
|
||||
"failed_suggestions": "Failed to load suggestions",
|
||||
"error":"Error",
|
||||
"password_different":"Must write a different password",
|
||||
"create": "Creation",
|
||||
"user_create": "Your user created"
|
||||
}
|
@ -20,5 +20,9 @@
|
||||
"no_events": "Pas d'évènements dans cette localisation",
|
||||
"start_date": "Date de début",
|
||||
"end_date": "Date de fin",
|
||||
"failed_suggestions": "Echec de chargement des suggestions"
|
||||
"failed_suggestions": "Echec de chargement des suggestions",
|
||||
"error":"Erreur",
|
||||
"password_different":"Tu dois écrire un mot de passe different",
|
||||
"create": "Création",
|
||||
"user_create": "Votre utilisateur a été créé"
|
||||
}
|
@ -13,6 +13,10 @@ import '../variable/globals.dart' as globals;
|
||||
|
||||
import '../classes/ad_helper.dart';
|
||||
import 'package:google_mobile_ads/google_mobile_ads.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../locale_provider.dart'; // Créé plus loin
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
@ -95,7 +99,11 @@ class _AddProfileState extends State<AddProfile> with ShowAlertDialog {
|
||||
|
||||
if ((password.isNotEmpty) && (confirmedPassword.isNotEmpty)) {
|
||||
if (password != confirmedPassword) {
|
||||
showAlertDialog(context, "Erreur", "Mot de passe different");
|
||||
showAlertDialog(
|
||||
context,
|
||||
AppLocalizations.of(context)?.error ?? "Error",
|
||||
AppLocalizations.of(context)?.password_different ??
|
||||
"Must write a different password");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -117,7 +125,10 @@ class _AddProfileState extends State<AddProfile> with ShowAlertDialog {
|
||||
}));
|
||||
print(responsePost.statusCode);
|
||||
if (responsePost.statusCode == 200) {
|
||||
showAlertDialog(context, "Creation", "Votre utilisateur a été créé");
|
||||
showAlertDialog(
|
||||
context,
|
||||
AppLocalizations.of(context)?.create ?? "Creation",
|
||||
AppLocalizations.of(context)?.user_create ?? "Your user created");
|
||||
Navigator.pushReplacement(
|
||||
context, MaterialPageRoute(builder: (_) => LoginDemo()));
|
||||
return;
|
||||
|
@ -303,7 +303,6 @@ class _MyHomePageState extends State<ListItemMenu> {
|
||||
}
|
||||
} catch (e) {
|
||||
fetchPostsByLocation();
|
||||
print("Error getting city and country: $e");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user