Browse Source

add help texts

subDesTagesMitExtraKaese 2 years ago
parent
commit
4fc292ad2d
2 changed files with 39 additions and 8 deletions
  1. 32 1
      locale/de/LC_MESSAGES/django.po
  2. 7 7
      zitap/forms.py

+ 32 - 1
locale/de/LC_MESSAGES/django.po

@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-12-18 22:55+0000\n"
+"POT-Creation-Date: 2022-12-18 23:10+0000\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -22,6 +22,10 @@ msgstr ""
 msgid "Event name"
 msgstr "Ereignisname"
 
+#: zitap/forms.py:14
+msgid "The name of your event. This will be displayed to participants."
+msgstr "Der Name Ihres Ereignisses. Er wird anderen Teilnehmern angezeigt."
+
 #: zitap/forms.py:15
 msgid "Event date"
 msgstr "Ereignisdatum"
@@ -30,14 +34,26 @@ msgstr "Ereignisdatum"
 msgid "Start time"
 msgstr "Startzeit"
 
+#: zitap/forms.py:16
+msgid "The first time slot available for participants to select."
+msgstr "Der erste Zeitslot, den Teilnehmer auswählen können."
+
 #: zitap/forms.py:17
 msgid "End time"
 msgstr "Endzeit"
 
+#: zitap/forms.py:17
+msgid "The last time slot available for participants to select."
+msgstr "Der letzte Zeitslot, den Teilnehmer auswählen können."
+
 #: zitap/forms.py:18
 msgid "Time slot interval"
 msgstr "Zeitslot-Intervall"
 
+#: zitap/forms.py:18
+msgid "The interval between time slots."
+msgstr "Das Intervall zwischen den Zeitslots."
+
 #: zitap/forms.py:26
 msgid "Start time must be different from end time"
 msgstr "Die Startzeit muss sich von der Endzeit unterscheiden"
@@ -46,14 +62,29 @@ msgstr "Die Startzeit muss sich von der Endzeit unterscheiden"
 msgid "Username"
 msgstr "Benutzername"
 
+#: zitap/forms.py:31
+msgid "This will be displayed to other participants."
+msgstr "Dies wird anderen Teilnehmern angezeigt."
+
 #: zitap/forms.py:32
 msgid "Password"
 msgstr "Passwort"
 
+#: zitap/forms.py:32
+msgid ""
+"Fill in a password to create a new account. Leave empty to login as a guest."
+msgstr "Füllen Sie ein Passwort ein, um ein neues Konto zu erstellen. Leer lassen, um als Gast einzuloggen."
+
 #: zitap/forms.py:35
 msgid "Slots"
 msgstr "Zeitslots"
 
+#: zitap/forms.py:35
+msgid ""
+"Click on a time slot to select it. Click again to deselect it. You can also "
+"drag the mouse to select multiple slots."
+msgstr "Ziehe die Maus über einen Zeitslot, um ihn auszuwählen. Markiere ihn erneut, um ihn abzuwählen."
+
 #: zitap/helpers.py:21
 #, fuzzy, python-brace-format
 #| msgid "Invalid string length"

+ 7 - 7
zitap/forms.py

@@ -11,11 +11,11 @@ def get_interval():
     return [(x, datetime.timedelta(minutes=x)) for x in [15, 30, 60]]
 
 class CreateEventForm(forms.Form):
-    event_name = forms.CharField(label=_('Event name'), max_length=100)
+    event_name = forms.CharField(label=_('Event name'), max_length=100, help_text=_('The name of your event. This will be displayed to participants.'))
     event_date = forms.Field(label=_('Event date'), widget=DatePickerWidget)
-    start_time = forms.ChoiceField(label=_('Start time'), initial=9, choices=get_hours)
-    end_time = forms.ChoiceField(label=_('End time'), initial=20, choices=get_hours)
-    slot_interval = forms.ChoiceField(label=_('Time slot interval'), initial=15, choices=get_interval)
+    start_time = forms.ChoiceField(label=_('Start time'), initial=9, choices=get_hours, help_text=_('The first time slot available for participants to select.'))
+    end_time = forms.ChoiceField(label=_('End time'), initial=20, choices=get_hours, help_text=_('The last time slot available for participants to select.'))
+    slot_interval = forms.ChoiceField(label=_('Time slot interval'), initial=15, choices=get_interval, help_text=_('The interval between time slots.'))
 
     def clean(self) -> dict:
         cleaned_data = super().clean()
@@ -28,11 +28,11 @@ class CreateEventForm(forms.Form):
         return cleaned_data
 
 class LoginForm(forms.Form):
-    username = forms.CharField(label=_('Username'), max_length=100)
-    password = forms.CharField(label=_('Password'), max_length=100, widget=forms.PasswordInput, required=False)
+    username = forms.CharField(label=_('Username'), max_length=100, help_text=_('This will be displayed to other participants.'))
+    password = forms.CharField(label=_('Password'), max_length=100, widget=forms.PasswordInput, required=False, help_text=_('Fill in a password to create a new account. Leave empty to login as a guest.'))
 
 class UpdateSlotsForm(forms.Form):
-    slots = forms.Field(label=_('Slots'))
+    slots = forms.Field(label=_('Slots'), help_text=_('Click on a time slot to select it. Click again to deselect it. You can also drag the mouse to select multiple slots.'))
 
     def __init__(self, *args, participant, **kwargs):
         super().__init__(*args, **kwargs)