Merge branch 'fix-event-places-left-indicator' into 'master'

Fix event places left indicator

See merge request framasoft/mobilizon!474
This commit is contained in:
Thomas Citharel 2020-06-16 11:32:38 +02:00
commit cd54232ec4
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.", "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.", "This identity is not a member of any group.": "This identity is not a member of any group.",
"(Masked)": "(Masked)", "(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", "No one is going to this event": "No one is going to this event|One person going|{going} persons going",
"By @{group}": "By @{group}", "By @{group}": "By @{group}",
"Date and time": "Date and time", "Date and time": "Date and time",

View file

@ -583,7 +583,7 @@
"{approved} / {total} seats": "Asientos {approved}/{total}", "{approved} / {total} seats": "Asientos {approved}/{total}",
"{count} participants": "Aún no hay participantes|Un participante|{count} participantes", "{count} participants": "Aún no hay participantes|Un participante|{count} participantes",
"{count} requests waiting": "{count} solicitudes en espera", "{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.", "{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)", "{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", "© 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", "{approved} / {total} seats": "{approved} / {total} places",
"{count} participants": "Aucun⋅e participant⋅e | 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", "{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.", "{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)", "{title} ({count} todos)": "{title} ({count} todos)",
"© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap", "© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap",

View file

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