From dbd91b1a21dd8f822f28e86f4bef3591d5a41ff2 Mon Sep 17 00:00:00 2001 From: 778a69cd <778a69cd@potsda.mn> Date: Tue, 24 May 2022 17:00:09 +0200 Subject: [PATCH] Use our own categories for event creation --- lib/mobilizon/events/categories.ex | 116 ++++++++----------------- priv/gettext/de/LC_MESSAGES/default.po | 64 +++++++++++--- priv/gettext/en/LC_MESSAGES/default.po | 68 ++++++++++++--- 3 files changed, 144 insertions(+), 104 deletions(-) diff --git a/lib/mobilizon/events/categories.ex b/lib/mobilizon/events/categories.ex index 0a210f56a..3ea6c1677 100644 --- a/lib/mobilizon/events/categories.ex +++ b/lib/mobilizon/events/categories.ex @@ -12,126 +12,82 @@ defmodule Mobilizon.Events.Categories do defp build_in_categories do [ %{ - id: :arts, - label: gettext("Arts") + id: :ausflug, + label: gettext("Ausflug") }, %{ - id: :book_clubs, - label: gettext("Book clubs") + id: :ausstellung, + label: gettext("Ausstellung") }, %{ - id: :business, - label: gettext("Business") + id: :demonstration, + label: gettext("Demonstration") }, %{ - id: :causes, - label: gettext("Causes") + id: :einweihung, + label: gettext("Einweihung") }, %{ - id: :comedy, - label: gettext("Comedy") + id: :filmvorfuehrung, + label: gettext("Filmvorführung") }, %{ - id: :crafts, - label: gettext("Crafts") + id: :fussball, + label: gettext("Fußball") }, %{ - id: :food_drink, - label: gettext("Food & Drink") + id: :gedenken, + label: gettext("Gedenken") }, %{ - id: :health, - label: gettext("Health") + id: :infostand, + label: gettext("Infostand") }, %{ - id: :music, - label: gettext("Music") + id: :kuenstlerisches, + label: gettext("Künstlerisches") }, %{ - id: :auto_boat_air, - label: gettext("Auto, boat and air") + id: :kneipe, + label: gettext("Kneipe") }, %{ - id: :community, - label: gettext("Community") + id: :konzert, + label: gettext("Konzert") }, %{ - id: :family_education, - label: gettext("Family & Education") + id: :kuefa, + label: gettext("KüFa") }, %{ - id: :fashion_beauty, - label: gettext("Fashion & Beauty") - }, - %{ - 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: :lesung, + label: gettext("Lesung") }, %{ id: :party, label: gettext("Party") }, %{ - id: :performing_visual_arts, - label: gettext("Performing & Visual Arts") + id: :sport, + label: gettext("Sport") }, %{ - id: :pets, - label: gettext("Pets") + id: :theater, + label: gettext("Theater") }, %{ - id: :photography, - label: gettext("Photography") + id: :verhandlung, + label: gettext("Verhandlung") }, %{ - id: :outdoors_adventure, - label: gettext("Outdoors & Adventure") - }, - %{ - 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") + id: :workshop, + label: gettext("Workshop") }, # Legacy default value %{ id: :meeting, - label: gettext("Meeting") - } + label: gettext("Infoveranstaltung") + }, ] end diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index f255bd836..16e480b2a 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -2368,11 +2368,6 @@ msgstr "Networking" msgid "Outdoors & Adventure" msgstr "" -#, elixir-autogen, elixir-format -#: lib/mobilizon/events/categories.ex:96 -msgid "Party" -msgstr "Party" - #, elixir-autogen, elixir-format #: lib/mobilizon/events/categories.ex:100 msgid "Performing & Visual Arts" @@ -2398,16 +2393,63 @@ msgstr "Wissenschaft & Technologie" msgid "Spirituality, Religion & Beliefs" msgstr "" -#, elixir-autogen, elixir-format -#: lib/mobilizon/events/categories.ex:124 -msgid "Sports" +msgid "Ausflug" +msgstr "Ausflug" + +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" -#, elixir-autogen, elixir-format -#: lib/mobilizon/events/categories.ex:128 -msgid "Theatre" +msgid "Theater" msgstr "Theater" +msgid "Verhandlung" +msgstr "Verhandlung" + +msgid "Workshop" +msgstr "Workshop" + #, elixir-autogen, elixir-format #: lib/web/templates/email/participation/event_card.text.eex:9 msgid "Read more: %{url}" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index 4f925e434..84488b21f 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -1990,11 +1990,6 @@ msgstr "" msgid "Outdoors & Adventure" msgstr "" -#, elixir-autogen, elixir-format -#: lib/mobilizon/events/categories.ex:96 -msgid "Party" -msgstr "" - #, elixir-autogen, elixir-format #: lib/mobilizon/events/categories.ex:100 msgid "Performing & Visual Arts" @@ -2020,15 +2015,62 @@ msgstr "" msgid "Spirituality, Religion & Beliefs" msgstr "" -#, elixir-autogen, elixir-format -#: lib/mobilizon/events/categories.ex:124 -msgid "Sports" -msgstr "" +msgid "Ausflug" +msgstr "Excursion" -#, elixir-autogen, elixir-format -#: lib/mobilizon/events/categories.ex:128 -msgid "Theatre" -msgstr "" +msgid "Ausstellung" +msgstr "Exhibition" + +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 #: lib/web/templates/email/participation/event_card.text.eex:9