full translate for AddProfile pages 25%
This commit is contained in:
parent
c3b8b0df14
commit
1f8d18343c
@ -31,6 +31,7 @@
|
||||
"disabled_user": "User disabled",
|
||||
"invalid_token": "Invalid token",
|
||||
"internal_error_server": "Internal error server",
|
||||
"unknown_error_auth": "Unknown error authentification"
|
||||
|
||||
"unknown_error_auth": "Unknown error authentification",
|
||||
"required_input": "Required input",
|
||||
"create_profile": "Create profile"
|
||||
}
|
@ -31,6 +31,8 @@
|
||||
"disabled_user": "Utilisateur désactivé",
|
||||
"invalid_token": "Token invalide",
|
||||
"internal_error_server": "Erreur interne de serveur",
|
||||
"unknown_error_auth": "Problème d'authentification inconnu"
|
||||
"unknown_error_auth": "Problème d'authentification inconnu",
|
||||
"required_input": "Champ requis",
|
||||
"create_profile": "Creation profil"
|
||||
|
||||
}
|
@ -166,7 +166,9 @@ class _AddProfileState extends State<AddProfile> with ShowAlertDialog {
|
||||
|
||||
final _formKey = GlobalKey<FormState>();
|
||||
String? _validateField(String? value) {
|
||||
return value!.isEmpty ? 'Champ requis' : null;
|
||||
return value!.isEmpty
|
||||
? AppLocalizations.of(context)?.required_input ?? 'Required input'
|
||||
: null;
|
||||
}
|
||||
|
||||
@override
|
||||
@ -174,7 +176,8 @@ class _AddProfileState extends State<AddProfile> with ShowAlertDialog {
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.white,
|
||||
appBar: AppBar(
|
||||
title: Text("Create profile"),
|
||||
title: Text(
|
||||
AppLocalizations.of(context)?.create_profile ?? "Create profile"),
|
||||
backgroundColor: Colors.blue,
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user