Merge branch 'smokefree' into 'main'

Add smoke-free as a metadata option for events

See merge request framasoft/mobilizon!1261
This commit is contained in:
Thomas Citharel 2022-09-27 12:55:35 +00:00
commit 0f05afc643
3 changed files with 23 additions and 1 deletions

View file

@ -394,6 +394,9 @@
"From the {startDate} to the {endDate}": "Vom {startDate} bis zum {endDate}", "From the {startDate} to the {endDate}": "Vom {startDate} bis zum {endDate}",
"From yourself": "Von Ihnen selbst", "From yourself": "Von Ihnen selbst",
"Fully accessible with a wheelchair": "Komplett barrierefrei für Rollstühle", "Fully accessible with a wheelchair": "Komplett barrierefrei für Rollstühle",
"Smoke free": "Rauchfrei",
"Whether smoking is prohibited during the event": "Während der Veranstaltung wird nicht geraucht",
"Smoking allowed": "Rauchen gestattet",
"Gather ⋅ Organize ⋅ Mobilize": "Treffen ⋅ Organisieren ⋅ Mobilisieren", "Gather ⋅ Organize ⋅ Mobilize": "Treffen ⋅ Organisieren ⋅ Mobilisieren",
"General": "Allgemein", "General": "Allgemein",
"General information": "Allgemeine Informationen", "General information": "Allgemeine Informationen",

View file

@ -1066,6 +1066,9 @@
"Not accessible with a wheelchair": "Not accessible with a wheelchair", "Not accessible with a wheelchair": "Not accessible with a wheelchair",
"Partially accessible with a wheelchair": "Partially accessible with a wheelchair", "Partially accessible with a wheelchair": "Partially accessible with a wheelchair",
"Fully accessible with a wheelchair": "Fully accessible with a wheelchair", "Fully accessible with a wheelchair": "Fully accessible with a wheelchair",
"Smoke free": "Smoke free",
"Whether smoking is prohibited during the event": "Whether smoking is prohibited during the event",
"Smoking allowed": "Smoking allowed",
"YouTube replay": "YouTube replay", "YouTube replay": "YouTube replay",
"The URL where the event live can be watched again after it has ended": "The URL where the event live can be watched again after it has ended", "The URL where the event live can be watched again after it has ended": "The URL where the event live can be watched again after it has ended",
"Twitch replay": "Twitch replay", "Twitch replay": "Twitch replay",

View file

@ -56,6 +56,22 @@ export const eventMetaDataList: IEventMetadataDescription[] = [
}, },
category: EventMetadataCategories.ACCESSIBILITY, category: EventMetadataCategories.ACCESSIBILITY,
}, },
{
icon: "smoking-off",
key: "mz:accessibility:smokeFree",
label: i18n.t("Smoke free") as string,
description: i18n.t(
"Whether smoking is prohibited during the event"
) as string,
value: "false",
type: EventMetadataType.BOOLEAN,
keyType: EventMetadataKeyType.PLAIN,
choices: {
true: i18n.t("Smoke free") as string,
false: i18n.t("Smoking allowed") as string,
},
category: EventMetadataCategories.ACCESSIBILITY,
},
{ {
icon: "youtube", icon: "youtube",
key: "mz:replay:youtube:url", key: "mz:replay:youtube:url",