Use our own categories for event creation

This commit is contained in:
778a69cd 2022-05-24 17:00:09 +02:00
parent d1228ca43f
commit dbd91b1a21
3 changed files with 144 additions and 104 deletions

View file

@ -12,126 +12,82 @@ defmodule Mobilizon.Events.Categories do
defp build_in_categories do defp build_in_categories do
[ [
%{ %{
id: :arts, id: :ausflug,
label: gettext("Arts") label: gettext("Ausflug")
}, },
%{ %{
id: :book_clubs, id: :ausstellung,
label: gettext("Book clubs") label: gettext("Ausstellung")
}, },
%{ %{
id: :business, id: :demonstration,
label: gettext("Business") label: gettext("Demonstration")
}, },
%{ %{
id: :causes, id: :einweihung,
label: gettext("Causes") label: gettext("Einweihung")
}, },
%{ %{
id: :comedy, id: :filmvorfuehrung,
label: gettext("Comedy") label: gettext("Filmvorführung")
}, },
%{ %{
id: :crafts, id: :fussball,
label: gettext("Crafts") label: gettext("Fußball")
}, },
%{ %{
id: :food_drink, id: :gedenken,
label: gettext("Food & Drink") label: gettext("Gedenken")
}, },
%{ %{
id: :health, id: :infostand,
label: gettext("Health") label: gettext("Infostand")
}, },
%{ %{
id: :music, id: :kuenstlerisches,
label: gettext("Music") label: gettext("Künstlerisches")
}, },
%{ %{
id: :auto_boat_air, id: :kneipe,
label: gettext("Auto, boat and air") label: gettext("Kneipe")
}, },
%{ %{
id: :community, id: :konzert,
label: gettext("Community") label: gettext("Konzert")
}, },
%{ %{
id: :family_education, id: :kuefa,
label: gettext("Family & Education") label: gettext("Fa")
}, },
%{ %{
id: :fashion_beauty, id: :lesung,
label: gettext("Fashion & Beauty") label: gettext("Lesung")
},
%{
id: :film_media,
label: gettext("Film & Media")
},
%{
id: :games,
label: gettext("Games")
},
%{
id: :language_culture,
label: gettext("Language & Culture")
},
%{
id: :learning,
label: gettext("Learning")
},
%{
id: :lgbtq,
label: gettext("LGBTQ")
},
%{
id: :movements_politics,
label: gettext("Movements and politics")
},
%{
id: :networking,
label: gettext("Networking")
}, },
%{ %{
id: :party, id: :party,
label: gettext("Party") label: gettext("Party")
}, },
%{ %{
id: :performing_visual_arts, id: :sport,
label: gettext("Performing & Visual Arts") label: gettext("Sport")
}, },
%{ %{
id: :pets, id: :theater,
label: gettext("Pets") label: gettext("Theater")
}, },
%{ %{
id: :photography, id: :verhandlung,
label: gettext("Photography") label: gettext("Verhandlung")
}, },
%{ %{
id: :outdoors_adventure, id: :workshop,
label: gettext("Outdoors & Adventure") label: gettext("Workshop")
},
%{
id: :spirituality_religion_beliefs,
label: gettext("Spirituality, Religion & Beliefs")
},
%{
id: :science_tech,
label: gettext("Science & Tech")
},
%{
id: :sports,
label: gettext("Sports")
},
%{
id: :theatre,
label: gettext("Theatre")
}, },
# Legacy default value # Legacy default value
%{ %{
id: :meeting, id: :meeting,
label: gettext("Meeting") label: gettext("Infoveranstaltung")
} },
] ]
end end

View file

@ -2368,11 +2368,6 @@ msgstr "Networking"
msgid "Outdoors & Adventure" msgid "Outdoors & Adventure"
msgstr "" msgstr ""
#, elixir-autogen, elixir-format
#: lib/mobilizon/events/categories.ex:96
msgid "Party"
msgstr "Party"
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
#: lib/mobilizon/events/categories.ex:100 #: lib/mobilizon/events/categories.ex:100
msgid "Performing & Visual Arts" msgid "Performing & Visual Arts"
@ -2398,16 +2393,63 @@ msgstr "Wissenschaft & Technologie"
msgid "Spirituality, Religion & Beliefs" msgid "Spirituality, Religion & Beliefs"
msgstr "" msgstr ""
#, elixir-autogen, elixir-format msgid "Ausflug"
#: lib/mobilizon/events/categories.ex:124 msgstr "Ausflug"
msgid "Sports"
msgid "Ausstellung"
msgstr "Ausstellung"
msgid "Demonstration"
msgstr "Demonstration"
msgid "Einweihung"
msgstr "Einweihung"
msgid "Filmvorführung"
msgstr "Filmvorführung"
msgid "Fußball"
msgstr "Fußball"
msgid "Gedenken"
msgstr "Gedenken"
msgid "Infostand"
msgstr "Infostand"
msgid "Infoveranstaltung"
msgstr "Infoveranstaltung"
msgid "Künstlerisches"
msgstr "Künstlerisches"
msgid "Kneipe"
msgstr "Kneipe"
msgid "Konzert"
msgstr "Konzert"
msgid "KüFa"
msgstr "KüFa"
msgid "Lesung"
msgstr "Lesung"
msgid "Party"
msgstr "Party"
msgid "Sport"
msgstr "Sport" msgstr "Sport"
#, elixir-autogen, elixir-format msgid "Theater"
#: lib/mobilizon/events/categories.ex:128
msgid "Theatre"
msgstr "Theater" msgstr "Theater"
msgid "Verhandlung"
msgstr "Verhandlung"
msgid "Workshop"
msgstr "Workshop"
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
#: lib/web/templates/email/participation/event_card.text.eex:9 #: lib/web/templates/email/participation/event_card.text.eex:9
msgid "Read more: %{url}" msgid "Read more: %{url}"

View file

@ -1990,11 +1990,6 @@ msgstr ""
msgid "Outdoors & Adventure" msgid "Outdoors & Adventure"
msgstr "" msgstr ""
#, elixir-autogen, elixir-format
#: lib/mobilizon/events/categories.ex:96
msgid "Party"
msgstr ""
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
#: lib/mobilizon/events/categories.ex:100 #: lib/mobilizon/events/categories.ex:100
msgid "Performing & Visual Arts" msgid "Performing & Visual Arts"
@ -2020,15 +2015,62 @@ msgstr ""
msgid "Spirituality, Religion & Beliefs" msgid "Spirituality, Religion & Beliefs"
msgstr "" msgstr ""
#, elixir-autogen, elixir-format msgid "Ausflug"
#: lib/mobilizon/events/categories.ex:124 msgstr "Excursion"
msgid "Sports"
msgstr ""
#, elixir-autogen, elixir-format msgid "Ausstellung"
#: lib/mobilizon/events/categories.ex:128 msgstr "Exhibition"
msgid "Theatre"
msgstr "" msgid "Demonstration"
msgstr "Demonstration"
msgid "Einweihung"
msgstr "Inauguration"
msgid "Filmvorführung"
msgstr "Film screening"
msgid "Fußball"
msgstr "Football"
msgid "Gedenken"
msgstr "Remembrance"
msgid "Infostand"
msgstr "Infostand"
msgid "Infoveranstaltung"
msgstr "Info event"
msgid "Künstlerisches"
msgstr "Art related"
msgid "Kneipe"
msgstr "Bar"
msgid "Konzert"
msgstr "Concert"
msgid "KüFa"
msgstr "Kitchen for all"
msgid "Lesung"
msgstr "Reading"
msgid "Party"
msgstr "Party"
msgid "Sport"
msgstr "Sport"
msgid "Theater"
msgstr "Theater"
msgid "Verhandlung"
msgstr "Trial"
msgid "Workshop"
msgstr "Workshop"
#, elixir-autogen, elixir-format, fuzzy #, elixir-autogen, elixir-format, fuzzy
#: lib/web/templates/email/participation/event_card.text.eex:9 #: lib/web/templates/email/participation/event_card.text.eex:9