feature/internationale #46
@@ -73,5 +73,14 @@
|
|||||||
"start_time": "Start time",
|
"start_time": "Start time",
|
||||||
"end_time": "End time",
|
"end_time": "End time",
|
||||||
"select_date": "Click to select a date",
|
"select_date": "Click to select a date",
|
||||||
"select_time": "Click to select a time"
|
"select_time": "Click to select a time",
|
||||||
|
"tag": "Tags",
|
||||||
|
"already_tag": "You have already this tags",
|
||||||
|
"enter_tag": "Enter a tag",
|
||||||
|
"organizer": "Organizer",
|
||||||
|
"already_organiser": "You have already a organizer",
|
||||||
|
"enter_organizer": "Enter a organizer",
|
||||||
|
"description": "Description",
|
||||||
|
"describe_event": "Describe event",
|
||||||
|
"add": "Add"
|
||||||
}
|
}
|
@@ -73,6 +73,15 @@
|
|||||||
"start_time": "Heure de début",
|
"start_time": "Heure de début",
|
||||||
"end_time": "Heure de fin",
|
"end_time": "Heure de fin",
|
||||||
"select_date": "Cliquer pour selectionner une date",
|
"select_date": "Cliquer pour selectionner une date",
|
||||||
"select_time": "Cliquer pour selectionner une heure"
|
"select_time": "Cliquer pour selectionner une heure",
|
||||||
|
"tag": "Tags",
|
||||||
|
"already_tag": "Tu as déjà entré ce tag",
|
||||||
|
"enter_tag": "Entrer un tag",
|
||||||
|
"organizer": "Organisateur",
|
||||||
|
"already_organiser": "Tu as déjà rentré cet organisateur",
|
||||||
|
"enter_organizer": "Entrer un organisateur",
|
||||||
|
"description": "Description",
|
||||||
|
"describe_event": "Décrire l'évènement",
|
||||||
|
"add": "Ajouter"
|
||||||
|
|
||||||
}
|
}
|
@@ -647,7 +647,8 @@ class _EditEventState extends State<EditEvent>
|
|||||||
textSeparators: const [' ', ','],
|
textSeparators: const [' ', ','],
|
||||||
validator: (String tag) {
|
validator: (String tag) {
|
||||||
if (_stringTagController.getTags!.contains(tag)) {
|
if (_stringTagController.getTags!.contains(tag)) {
|
||||||
return 'Tu as deja rentre ce tag';
|
return AppLocalizations.of(context)?.already_tag ??
|
||||||
|
"You have already entered this tag";
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
@@ -662,10 +663,12 @@ class _EditEventState extends State<EditEvent>
|
|||||||
onSubmitted: inputFieldValues.onTagSubmitted,
|
onSubmitted: inputFieldValues.onTagSubmitted,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: OutlineInputBorder(),
|
border: OutlineInputBorder(),
|
||||||
labelText: 'Tags',
|
labelText:
|
||||||
|
AppLocalizations.of(context)?.tag ?? 'Tags',
|
||||||
hintText: inputFieldValues.tags.isNotEmpty
|
hintText: inputFieldValues.tags.isNotEmpty
|
||||||
? ''
|
? ''
|
||||||
: "Enter tag...",
|
: AppLocalizations.of(context)?.enter_tag ??
|
||||||
|
"Enter tag...",
|
||||||
errorText: inputFieldValues.error,
|
errorText: inputFieldValues.error,
|
||||||
prefixIcon: inputFieldValues.tags.isNotEmpty
|
prefixIcon: inputFieldValues.tags.isNotEmpty
|
||||||
? SingleChildScrollView(
|
? SingleChildScrollView(
|
||||||
@@ -742,7 +745,9 @@ class _EditEventState extends State<EditEvent>
|
|||||||
textSeparators: const [','],
|
textSeparators: const [','],
|
||||||
validator: (String tag) {
|
validator: (String tag) {
|
||||||
if (_stringOrgaController.getTags!.contains(tag)) {
|
if (_stringOrgaController.getTags!.contains(tag)) {
|
||||||
return 'Cet organisateur est déjà rentré';
|
return AppLocalizations.of(context)
|
||||||
|
?.already_organiser ??
|
||||||
|
"You have already entered this organizer";
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
@@ -757,10 +762,14 @@ class _EditEventState extends State<EditEvent>
|
|||||||
onSubmitted: inputFieldValues.onTagSubmitted,
|
onSubmitted: inputFieldValues.onTagSubmitted,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: OutlineInputBorder(),
|
border: OutlineInputBorder(),
|
||||||
labelText: 'Organisateurs',
|
labelText:
|
||||||
|
AppLocalizations.of(context)?.organizer ??
|
||||||
|
"Organizer",
|
||||||
hintText: inputFieldValues.tags.isNotEmpty
|
hintText: inputFieldValues.tags.isNotEmpty
|
||||||
? ''
|
? ''
|
||||||
: "Enter un organisateur...",
|
: AppLocalizations.of(context)
|
||||||
|
?.enter_organizer ??
|
||||||
|
"Enter a organizer",
|
||||||
errorText: inputFieldValues.error,
|
errorText: inputFieldValues.error,
|
||||||
prefixIcon: inputFieldValues.tags.isNotEmpty
|
prefixIcon: inputFieldValues.tags.isNotEmpty
|
||||||
? SingleChildScrollView(
|
? SingleChildScrollView(
|
||||||
@@ -841,8 +850,11 @@ class _EditEventState extends State<EditEvent>
|
|||||||
maxLines: 10,
|
maxLines: 10,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: OutlineInputBorder(),
|
border: OutlineInputBorder(),
|
||||||
labelText: 'Description',
|
labelText: AppLocalizations.of(context)?.description ??
|
||||||
hintText: 'Décrire l\'evènement'),
|
'Description',
|
||||||
|
hintText:
|
||||||
|
AppLocalizations.of(context)?.describe_event ??
|
||||||
|
'Describe event'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
@@ -861,7 +873,7 @@ class _EditEventState extends State<EditEvent>
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'Ajouter',
|
AppLocalizations.of(context)?.add ?? 'Add',
|
||||||
style: TextStyle(color: Colors.white, fontSize: 25),
|
style: TextStyle(color: Colors.white, fontSize: 25),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user