Fix event places left indicator

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-06-16 11:10:06 +02:00
parent 061f51447e
commit d020b645f6
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
4 changed files with 21 additions and 11 deletions

View file

@ -504,7 +504,7 @@
"You need to create the group before you create an event.": "You need to create a group before you create an event.",
"This identity is not a member of any group.": "This identity is not a member of any group.",
"(Masked)": "(Masked)",
"{going}/{capacity} available places": "No places left|{going}/{capacity} available places",
"{available}/{capacity} available places": "No places left|{available}/{capacity} available places",
"No one is going to this event": "No one is going to this event|One person going|{going} persons going",
"By @{group}": "By @{group}",
"Date and time": "Date and time",

View file

@ -583,7 +583,7 @@
"{approved} / {total} seats": "Asientos {approved}/{total}",
"{count} participants": "Aún no hay participantes|Un participante|{count} participantes",
"{count} requests waiting": "{count} solicitudes en espera",
"{going}/{capacity} available places": "No quedan plazas|{going}/{capacity} plazas disponibles",
"{available}/{capacity} available places": "No quedan plazas|{available}/{capacity} plazas disponibles",
"{license} guarantees {respect} of the people who will use it. Since {source}, anyone can audit it, which guarantees its transparency.": "{license} garantiza {respect} de las personas que lo usarán. Desde {source}, cualquiera puede auditarlo, lo que garantiza su transparencia.",
"{title} ({count} todos)": "{title} ({count} trabajos pendientes)",
"© The Mobilizon Contributors {date} - Made with Elixir, Phoenix, VueJS & with some love and some weeks": "© The Mobilizon Contributors {date} - Hecho con Elixir, Phoenix, VueJS y con un poco de amor y algunas semanas",

View file

@ -588,7 +588,7 @@
"{approved} / {total} seats": "{approved} / {total} places",
"{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",
"{going}/{capacity} available places": "Pas de places restantes|{going}/{capacity} places restantes",
"{available}/{capacity} available places": "Pas de places restantes|{available}/{capacity} places restantes|{available}/{capacity} places restantes",
"{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.",
"{title} ({count} todos)": "{title} ({count} todos)",
"© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap",

View file

@ -169,10 +169,15 @@
>
<span v-if="event.options.maximumAttendeeCapacity">
{{
$tc("{going}/{capacity} available places", event.participantStats.going, {
approved: event.participantStats.going,
capacity: event.options.maximumAttendeeCapacity,
})
$tc(
"{available}/{capacity} available places",
event.options.maximumAttendeeCapacity - event.participantStats.going,
{
available:
event.options.maximumAttendeeCapacity - event.participantStats.going,
capacity: event.options.maximumAttendeeCapacity,
}
)
}}
</span>
<span v-else>
@ -186,10 +191,15 @@
<span v-else>
<span v-if="event.options.maximumAttendeeCapacity">
{{
$tc("{going}/{capacity} available places", event.participantStats.going, {
approved: event.participantStats.going,
capacity: event.options.maximumAttendeeCapacity,
})
$tc(
"{available}/{capacity} available places",
event.options.maximumAttendeeCapacity - event.participantStats.going,
{
available:
event.options.maximumAttendeeCapacity - event.participantStats.going,
capacity: event.options.maximumAttendeeCapacity,
}
)
}}
</span>
<span v-else>