From 5444f69eca73f381b935515e2ae05dd2a16e519a Mon Sep 17 00:00:00 2001 From: Simon <33730997+TheSlimvReal@users.noreply.github.com> Date: Fri, 3 Jun 2022 19:54:35 +0200 Subject: [PATCH] fix(*): Singular and plural cases are correctly translated (#1285) --- .../activity-card.component.html | 2 +- .../attendance-calendar.component.html | 17 ++--- src/locale/messages.de.xlf | 55 +++++++--------- src/locale/messages.fr.xlf | 62 +++++++------------ src/locale/messages.xlf | 42 +++++-------- 5 files changed, 70 insertions(+), 108 deletions(-) diff --git a/src/app/child-dev-project/attendance/activity-card/activity-card.component.html b/src/app/child-dev-project/attendance/activity-card/activity-card.component.html index ecd4070aff..4636f89cf1 100644 --- a/src/app/child-dev-project/attendance/activity-card/activity-card.component.html +++ b/src/app/child-dev-project/attendance/activity-card/activity-card.component.html @@ -24,7 +24,7 @@ {{ event.children.length }} - + {event.children.length, plural, one {participant} other {participants}} ({{ event.date | date: "shortDate" }}) diff --git a/src/app/child-dev-project/attendance/attendance-calendar/attendance-calendar.component.html b/src/app/child-dev-project/attendance/attendance-calendar/attendance-calendar.component.html index a980d4d0ea..15044c9c8d 100644 --- a/src/app/child-dev-project/attendance/attendance-calendar/attendance-calendar.component.html +++ b/src/app/child-dev-project/attendance/attendance-calendar/attendance-calendar.component.html @@ -48,15 +48,16 @@

percent) " > - All excused (out of {{ selectedEvent.children.length }} - { selectedEvent.children.length, plural, one {participant} other - {participants} }) + All excused (out of + {{ selectedEvent.children.length }} + { selectedEvent.children.length, plural, one {participant} other {participants} } + )
- {{ selectedEventStats.average | percent: "1.0-0" }} attended (of + {{ selectedEventStats.average | percent: "1.0-0" }} + attended (of {{ selectedEvent.children.length }} - { selectedEvent.children.length, plural, one {participant} other - {participants} }) + { selectedEvent.children.length, plural, one {participant} other {participants} })
class="unknown-status-notice" > {{ selectedEventStats.excludedUnknown }} - { selectedEventStats.excludedUnknown, plural, one {participant} other - {participants} } without recorded status + { selectedEventStats.excludedUnknown, plural, one {participant} other {participants} } + without recorded status