From 19e5e07d26d52e81fcfb6b37da2039297771845c Mon Sep 17 00:00:00 2001 From: Tykayn Date: Fri, 4 Feb 2022 13:30:04 +0100 Subject: [PATCH] add translated sentences in creation steps --- .../consultation/consultation.component.html | 8 +++++-- .../steps/step-four/step-four.component.html | 22 +++++++++---------- .../step-seven/step-seven.component.html | 10 ++++----- .../steps/step-six/step-six.component.html | 2 +- src/assets/i18n/EN.json | 4 ++++ src/assets/i18n/FR.json | 6 ++++- 6 files changed, 32 insertions(+), 20 deletions(-) diff --git a/src/app/features/administration/consultation/consultation.component.html b/src/app/features/administration/consultation/consultation.component.html index e21f1a2f..3c81feb8 100644 --- a/src/app/features/administration/consultation/consultation.component.html +++ b/src/app/features/administration/consultation/consultation.component.html @@ -2,7 +2,7 @@

Consulter le sondage

{{ form.value.title }}

@@ -10,7 +10,11 @@

{{ poll.title }}

- Créé le {{ poll.created_at | date }} par {{ poll.owner.pseudo }}, {{ poll.owner.email }} + {{ 'participation.created_at' | translate }} {{ poll.created_at | date }} {{ 'validation.by' | translate }} + {{ poll.owner.pseudo }} + + {{ poll.owner.email }} +
diff --git a/src/app/features/administration/form/steps/step-four/step-four.component.html b/src/app/features/administration/form/steps/step-four/step-four.component.html index 7bedf69d..2d2d0c54 100644 --- a/src/app/features/administration/form/steps/step-four/step-four.component.html +++ b/src/app/features/administration/form/steps/step-four/step-four.component.html @@ -5,7 +5,7 @@

- Choisissez les horaires + {{ 'hours.title' | translate }}

- +
@@ -40,7 +40,7 @@

- Choisissez les horaires + {{ 'hours.title' | translate }}

@@ -55,7 +55,7 @@
- +
@@ -73,7 +73,7 @@ {{ 'dates.count_time' | translate }} - (pour chaque jour) +

- Appliquer le même horaire / option à toutes les dates + {{ 'hours.apply_same' | translate }}

diff --git a/src/app/features/administration/form/steps/step-seven/step-seven.component.html b/src/app/features/administration/form/steps/step-seven/step-seven.component.html index ed69be9a..da1ff157 100644 --- a/src/app/features/administration/form/steps/step-seven/step-seven.component.html +++ b/src/app/features/administration/form/steps/step-seven/step-seven.component.html @@ -43,11 +43,11 @@
- - - - - +

diff --git a/src/app/features/administration/form/steps/step-six/step-six.component.html b/src/app/features/administration/form/steps/step-six/step-six.component.html index 93daa2e7..1ec973b2 100644 --- a/src/app/features/administration/form/steps/step-six/step-six.component.html +++ b/src/app/features/administration/form/steps/step-six/step-six.component.html @@ -12,7 +12,7 @@

diff --git a/src/assets/i18n/EN.json b/src/assets/i18n/EN.json index 4f6ffb33..843e0051 100644 --- a/src/assets/i18n/EN.json +++ b/src/assets/i18n/EN.json @@ -96,6 +96,8 @@ "element": "Time span", "apply_same": "Apply the same time spans to all dates", "add": "Add time span", + "empty": "No time span", + "reinit": "Reinitialize", "modal": { "title": "Choose the time spans to apply for all dates", "validate": "Apply" @@ -247,6 +249,8 @@ "You must enter a value": "You must enter a value" }, "participation": { + "created_at": "Créé le", + "by": "par", "vote": "Voter", "menu_label": "Options", "end_of_poll": "Poll votes end on", diff --git a/src/assets/i18n/FR.json b/src/assets/i18n/FR.json index f96dfaa5..09938119 100644 --- a/src/assets/i18n/FR.json +++ b/src/assets/i18n/FR.json @@ -97,6 +97,8 @@ "element": "Horaire", "apply_same": "Appliquer le même horaire à toutes les dates", "add": "Ajouter horaire", + "empty": "Aucune plage horaire", + "reinit": "Réinitialiser", "modal": { "title": "Choisissez les horaires ou options à appliquer à toutes les dates", "validate": "Appliquer" @@ -249,10 +251,12 @@ "lang": "Sélectionner la langue" }, "validation": { - "required": "champ requis", + "required": "(obligatoire)", "You must enter a value": "Vous devez entrer une valeur" }, "participation": { + "created_at": "Créé le", + "by": "par", "vote": "Voter", "menu_label": "Options", "end_of_poll": "Fin du sondage le",