add translated sentences in creation steps

This commit is contained in:
Tykayn 2022-02-04 13:30:04 +01:00 committed by tykayn
parent 2912c3bbab
commit 19e5e07d26
6 changed files with 32 additions and 20 deletions

View File

@ -2,7 +2,7 @@
<h2 class="title is-2">Consulter le sondage</h2>
<button class="btn is-primary" [routerLink]="'/administration'">
<i class="fa fa-pencil"></i>
modifier
{{ 'resume.edit' | translate }}
</button>
<div>
<h2>{{ form.value.title }}</h2>
@ -10,7 +10,11 @@
<div *ngIf="poll">
<h2>{{ poll.title }}</h2>
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 }}
<span class="creator_email">
{{ poll.owner.email }}
</span>
</div>
</div>
</div>

View File

@ -5,7 +5,7 @@
<div class="custom-day-time-slices" *ngIf="environment.creation_display_hour_per_day">
<h2 class="title is-2">
Choisissez les horaires
{{ 'hours.title' | translate }}
</h2>
<div
class="days-list-having-separated-time-slices rounded-block"
@ -17,7 +17,7 @@
<section class="time-slice-list-of-a-day">
<div *ngFor="let timeSlice of dayChoice.timeSlices; index as id" class="time-choice padded">
<label for="dateChoices_{{ id }}"> Horaire / option {{ id + 1 }} </label>
<label for="dateChoices_{{ id }}"> {{ 'hours.element' | translate }} {{ id + 1 }} </label>
<input
class="input is-fullwidth"
type="text"
@ -25,13 +25,13 @@
[(ngModel)]="timeSlice.literal"
/>
<button class="button input is-full" (click)="pollService.timeList.splice(id, 1)">
<i class="fa fa-trash"></i> supprimer
<i class="fa fa-trash"></i> {{ 'choices.delete' | translate }}
</button>
</div>
<div class="add-time-choice">
<button (click)="addChoiceForDay(dayChoice)">
<i class="fa fa-plus"></i>
Ajouter horaire / option
{{ 'hours.add' | translate }}
</button>
</div>
</section>
@ -40,7 +40,7 @@
<section class="same-time-slices">
<section class="same-time-slices" *ngIf="pollService.form.value.hasSeveralHours">
<h2 class="title is-2">
Choisissez les horaires
{{ 'hours.title' | translate }}
</h2>
<section class="proposals" *ngIf="environment.creation_display_proposals_time_slices">
@ -55,7 +55,7 @@
</div>
</section>
<div *ngFor="let timeSlice of pollService.timeList; index as id" class="time-choice">
<label for="timeList_{{ id }}"> Horaire / option {{ id + 1 }} </label>
<label for="timeList_{{ id }}"> {{ 'hours.element' | translate }} {{ id + 1 }} </label>
<input
class="input is-fullwidth"
type="text"
@ -64,7 +64,7 @@
[(ngModel)]="timeSlice.literal"
/>
<button class="button is-block" (click)="pollService.timeList.splice(id, 1)">
<i class="fa fa-trash"></i> supprimer
<i class="fa fa-trash"></i> {{ 'choices.delete' | translate }}
</button>
</div>
<div class="title" *ngIf="pollService.timeList.length">
@ -73,7 +73,7 @@
</span>
<span class="count-dates-txt">
{{ 'dates.count_time' | translate }}
(pour chaque jour)
<!-- (pour chaque jour)-->
</span>
</div>
<button
@ -97,7 +97,7 @@
id="remove_time_button"
>
<i class="fa fa-trash" aria-hidden="true"></i>
Aucune plage horaire
{{ 'hours.empty' | translate }}
</button>
<button
(click)="pollService.resetTimes()"
@ -106,13 +106,13 @@
id="reset_time_button"
>
<i class="fa fa-refresh" aria-hidden="true"></i>
réinitialiser
{{ 'hours.reinit' | translate }}
</button>
</div>
</div>
</div>
<p>
Appliquer le même horaire / option à toutes les dates
{{ 'hours.apply_same' | translate }}
</p>
</div>

View File

@ -43,11 +43,11 @@
</ul>
</div>
<div class="list-texts" *ngIf="!pollService.form.value.isAboutDate">
<!-- <ul *ngFor="let choice of pollService.choices">-->
<!-- <li>-->
<!-- {{ choice }}-->
<!-- </li>-->
<!-- </ul>-->
<ul *ngFor="let choice of pollService.choices">
<li>
{{ choice }}
</li>
</ul>
</div>
<hr />
<div class="go-to-step" [routerLink]="['/administration/step/3']">

View File

@ -12,7 +12,7 @@
<label for="email">
{{ 'owner.email_label' | translate }}
<span class="required-label" *ngIf="environment.creation_email_is_required">
(obligatoire)
{{ 'validation.required' | translate }}
</span>
</label>
<p>

View File

@ -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",

View File

@ -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",