FIX: 1403 - Ajout de la gestion du pluriel pour l'état des usagers dans l'historique des tickets et mise à jour des traductions associées.

This commit is contained in:
borisw 2025-07-07 17:14:31 +02:00
parent 2a54d1b909
commit 04438c09d3
2 changed files with 88 additions and 86 deletions

View File

@ -120,7 +120,9 @@ function explainSentence(history: TicketHistoryLine): string {
case "addressees_state":
return trans(CHILL_TICKET_TICKET_HISTORY_ADDRESSEES_STATE);
case "persons_state":
return trans(CHILL_TICKET_TICKET_HISTORY_PERSONS_STATE);
return trans(CHILL_TICKET_TICKET_HISTORY_PERSONS_STATE, {
count: history.data.persons.length,
});
case "set_motive":
return trans(CHILL_TICKET_TICKET_HISTORY_SET_MOTIVE);
case "create_ticket":

View File

@ -9,8 +9,8 @@ chill_ticket:
history:
add_comment: "Nouveau commentaire"
addressees_state: "Attributions"
persons_state: "Usagé(s) concerné(s)"
set_caller: "Appelant Concerné"
persons_state: "{count, plural, =0 {Aucun usager concerné} =1 {Usager concerné} other {Usagers concernés}}"
set_caller: "Appelant"
set_motive: "Nouveau motifs"
create_ticket: "Ticket créé"
state_change: ""