From e2b0fd49392150189ec47802b95339f5d78bae82 Mon Sep 17 00:00:00 2001 From: kritzl Date: Tue, 8 Oct 2024 09:39:36 +0200 Subject: [PATCH] add mensa --- locale/de_DE/LC_MESSAGES/django.po | 12 +++++++++++- locale/en_US/LC_MESSAGES/django.po | 13 ++++++++++++- locale/en_Uwu/LC_MESSAGES/django.po | 12 +++++++++++- locale/fr_FR/LC_MESSAGES/django.po | 12 +++++++++++- .../dashboard/static/img/services/mensa.svg | 18 ++++++++++++++++++ mafiasi/mensa/__init__.py | 0 mafiasi/mensa/apps.py | 14 ++++++++++++++ mafiasi/settings.py | 2 ++ 8 files changed, 79 insertions(+), 4 deletions(-) create mode 100644 mafiasi/dashboard/static/img/services/mensa.svg create mode 100644 mafiasi/mensa/__init__.py create mode 100644 mafiasi/mensa/apps.py diff --git a/locale/de_DE/LC_MESSAGES/django.po b/locale/de_DE/LC_MESSAGES/django.po index 625e4f40..21050648 100644 --- a/locale/de_DE/LC_MESSAGES/django.po +++ b/locale/de_DE/LC_MESSAGES/django.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: Mafiasi\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-03 23:48+0200\n" +"POT-Creation-Date: 2024-10-08 09:35+0200\n" "PO-Revision-Date: 2024-09-03 23:52+0200\n" "Last-Translator: Markus Neblung \n" "Language-Team: \n" @@ -1555,6 +1555,16 @@ msgstr "" "Matrix ermöglicht dezentrales Chatten und VoIP mit Ende-zu-Ende-" "Verschlüsselung." +#: mafiasi/mensa/apps.py:11 +msgid "Mensa" +msgstr "Mensa" + +#: mafiasi/mensa/apps.py:12 +msgid "" +"Look at what is available in the canteens and filter according to diet, " +"allergens, etc." +msgstr "Schaue was es in den Mensen zu essen gibt und filtere nach Ernährungsweise, Allergenen usw." + #: mafiasi/modulkompass/apps.py:11 msgid "Modulkompass" msgstr "Modulkompass" diff --git a/locale/en_US/LC_MESSAGES/django.po b/locale/en_US/LC_MESSAGES/django.po index cd28e716..7906bfdc 100644 --- a/locale/en_US/LC_MESSAGES/django.po +++ b/locale/en_US/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Mafiasi\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-03 23:48+0200\n" +"POT-Creation-Date: 2024-10-08 09:35+0200\n" "PO-Revision-Date: 2024-01-18 22:42+0100\n" "Last-Translator: Markus Neblung \n" "Language-Team: \n" @@ -1413,6 +1413,17 @@ msgstr "" msgid "Matrix provides decentralized messaging and VoIP with E2E encryption." msgstr "" +#: mafiasi/mensa/apps.py:11 +msgid "Mensa" +msgstr "Canteen" + +#: mafiasi/mensa/apps.py:12 +msgid "" +"Look at what is available in the canteens and filter according to diet, " +"allergens, etc." +msgstr "Look at what is available in the canteens and filter according to diet, " + "allergens, etc." + #: mafiasi/modulkompass/apps.py:11 msgid "Modulkompass" msgstr "" diff --git a/locale/en_Uwu/LC_MESSAGES/django.po b/locale/en_Uwu/LC_MESSAGES/django.po index e95b84d9..b10ce52b 100644 --- a/locale/en_Uwu/LC_MESSAGES/django.po +++ b/locale/en_Uwu/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Mafiasi\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-03 23:48+0200\n" +"POT-Creation-Date: 2024-10-08 09:35+0200\n" "PO-Revision-Date: 2024-01-09 22:14+0000\n" "Last-Translator: kritzl \n" "Language-Team: \n" @@ -1642,6 +1642,16 @@ msgstr "Meowtrix" msgid "Matrix provides decentralized messaging and VoIP with E2E encryption." msgstr "Hug frens. Virtually." +#: mafiasi/mensa/apps.py:11 +msgid "Mensa" +msgstr "Nomsies" + +#: mafiasi/mensa/apps.py:12 +msgid "" +"Look at what is available in the canteens and filter according to diet, " +"allergens, etc." +msgstr "Look at foood and filter what I do not likes" + #: mafiasi/modulkompass/apps.py:11 msgid "Modulkompass" msgstr "" diff --git a/locale/fr_FR/LC_MESSAGES/django.po b/locale/fr_FR/LC_MESSAGES/django.po index 88532a50..680fdf64 100644 --- a/locale/fr_FR/LC_MESSAGES/django.po +++ b/locale/fr_FR/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Mafiasi\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-03 23:48+0200\n" +"POT-Creation-Date: 2024-10-08 09:35+0200\n" "PO-Revision-Date: 2024-09-03 23:54+0200\n" "Last-Translator: Markus Neblung \n" "Language-Team: \n" @@ -1564,6 +1564,16 @@ msgstr "" "Matrix fournit messagerie décentralisée et VoIP avec chiffrement de bout en " "bout." +#: mafiasi/mensa/apps.py:11 +msgid "Mensa" +msgstr "Cantine" + +#: mafiasi/mensa/apps.py:12 +msgid "" +"Look at what is available in the canteens and filter according to diet, " +"allergens, etc." +msgstr "Regarde ce qu'il y a à manger dans les restaurants universitaires et filtre en fonction du régime alimentaire, des allergènes, etc." + #: mafiasi/modulkompass/apps.py:11 msgid "Modulkompass" msgstr "Modulkompass" diff --git a/mafiasi/dashboard/static/img/services/mensa.svg b/mafiasi/dashboard/static/img/services/mensa.svg new file mode 100644 index 00000000..44b74b8c --- /dev/null +++ b/mafiasi/dashboard/static/img/services/mensa.svg @@ -0,0 +1,18 @@ + + + + diff --git a/mafiasi/mensa/__init__.py b/mafiasi/mensa/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/mafiasi/mensa/apps.py b/mafiasi/mensa/apps.py new file mode 100644 index 00000000..187164e6 --- /dev/null +++ b/mafiasi/mensa/apps.py @@ -0,0 +1,14 @@ +from django.conf import settings +from django.utils.translation import gettext_lazy as _ + +from mafiasi.base.base_apps import BaseService + + +class MensaConfig(BaseService): + default = True + name = "mafiasi.mensa" + verbose_name = "Mensa" + title = _("Mensa") + description = _("Look at what is available in the canteens and filter according to diet, allergens, etc.") + link = settings.MENSA_URL + image = "img/services/mensa.svg" diff --git a/mafiasi/settings.py b/mafiasi/settings.py index 3f359852..dbceca39 100644 --- a/mafiasi/settings.py +++ b/mafiasi/settings.py @@ -159,6 +159,7 @@ "mafiasi.etherpad", "mafiasi.bitpoll", "mafiasi.matrix" if env.bool("MAFIASI_ENABLE_MATRIX", True) else None, + "mafiasi.mensa" if env.bool("MAFIASI_ENABLE_MENSA", True) else None, "mafiasi.modulkompass" if env.bool("MAFIASI_ENABLE_MODULKOMPASS", True) else None, "mafiasi.git", "mafiasi.sogo", @@ -316,6 +317,7 @@ WHITEBOARD_URL = "https://spacedeck.mafiasi.de" KANBOARD_URL = "https://kanboard.mafiasi.de" MATRIX_URL = "https://matrix.mafiasi.de" +MENSA_URL = "https://mensa.mafiasi.de" MODULKOMPASS_URL = "https://modulkompass.mafiasi.de" LINK_SHORTENER_URL = "https://l.mafiasi.de"