From 5ebbb57d0e01087563588d5bb09f4f6fbf035860 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 15 Oct 2019 10:39:26 +0200 Subject: [PATCH] Fix participations stats on the MyEvents page Signed-off-by: Thomas Citharel --- js/src/components/Event/EventListCard.vue | 11 +++++------ js/src/i18n/en_US.json | 2 +- js/src/i18n/fr_FR.json | 2 +- js/src/i18n/oc.json | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/js/src/components/Event/EventListCard.vue b/js/src/components/Event/EventListCard.vue index 98714531d..c14945a71 100644 --- a/js/src/components/Event/EventListCard.vue +++ b/js/src/components/Event/EventListCard.vue @@ -55,7 +55,7 @@ export default {
-
+

{{ participation.event.title }}

@@ -63,7 +63,7 @@ export default {
{{ participation.event.physicalAddress.locality }} - - {{ $t('Organized by {name}', { name: participation.event.organizerActor.displayName() } ) }} + {{ $t('Organized by {name}', { name: participation.event.organizerActor.displayName() } ) }} {{ $t('Going as {name}', { name: participation.actor.displayName() }) }}
@@ -74,9 +74,6 @@ export default { - - - {{ $t('{approved} / {total} seats', {approved: participation.event.participantStats.participants, total: participation.event.options.maximumAttendeeCapacity }) }} @@ -85,7 +82,9 @@ export default { - {{ $t('No participants yet') }} + + {{ $tc('{count} participants', participation.event.participantStats.participants, { count: participation.event.participantStats.participants })}} + diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 6d3181787..514194fa3 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -315,7 +315,7 @@ "with another identity…": "with another identity…", "with {identity}": "with {identity}", "{approved} / {total} seats": "{approved} / {total} seats", - "{count} participants": "{count} participants", + "{count} participants": "No participants yet | One participant | {count} participants", "{count} requests waiting": "{count} requests waiting", "{license} guarantees {respect} of the people who will use it. Since {source}, anyone can audit it, which guarantees its transparency.": "{license} guarantees {respect} of the people who will use it. Since {source}, anyone can audit it, which guarantees its transparency.", "© The Mobilizon Contributors {date} - Made with Elixir, Phoenix, VueJS & with some love and some weeks": "© The Mobilizon Contributors {date} - Made with Elixir, Phoenix, VueJS & with some love and some weeks" diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index a5a1f2784..437afe6a1 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -315,7 +315,7 @@ "with another identity…": "avec une autre identité…", "with {identity}": "avec {identity}", "{approved} / {total} seats": "{approved} / {total} places", - "{count} participants": "Un⋅e participant⋅e|{count} participant⋅e⋅s", + "{count} participants": "Aucun⋅e participant⋅e | Un⋅e participant⋅e | {count} participant⋅e⋅s", "{count} requests waiting": "Une demande en attente|{count} demandes en attente", "{license} guarantees {respect} of the people who will use it. Since {source}, anyone can audit it, which guarantees its transparency.": "{license} garantit {respect} des personnes qui l'utiliseront. Puisque {source}, il est publiquement auditable, ce qui garantit sa transparence.", "© The Mobilizon Contributors {date} - Made with Elixir, Phoenix, VueJS & with some love and some weeks": "© Les contributeurs de Mobilizon {date} - Fait avec Elixir, Phoenix, VueJS & et de l'amour et des semaines" diff --git a/js/src/i18n/oc.json b/js/src/i18n/oc.json index 0de484561..e4b3780d5 100644 --- a/js/src/i18n/oc.json +++ b/js/src/i18n/oc.json @@ -117,7 +117,7 @@ "About this event": "Tocant aqueste eveniment", "© The Mobilizon Contributors {date} - Made with Elixir, Phoenix, VueJS & with some love and some weeks": "© Loscontribuidors de Mobilizon {date} - Fach amb Elixir, Phoenix, VueJS e d’amor e de setmanas", "{count} requests waiting": "Una demanda en espèra|{count} demandas en espèra", - "{count} participants": "Un participant|{count} participants", + "{count} participants": "Aucun participant|Un participant|{count} participants", "{approved} / {total} seats": "{approved} / {total} plaças", "You need to login.": "Vos cal vos connectar.", "You are an organizer.": "Sètz un organizaire.",