diff --git a/KeRS/settings.py b/KeRS/settings.py index 17c5583..28e4841 100644 --- a/KeRS/settings.py +++ b/KeRS/settings.py @@ -110,9 +110,9 @@ AUTH_PASSWORD_VALIDATORS = [ # Internationalization # https://docs.djangoproject.com/en/3.0/topics/i18n/ -LANGUAGE_CODE = 'en-us' +LANGUAGE_CODE = 'nl-be' -TIME_ZONE = 'UTC' +TIME_ZONE = 'Europe/Brussels' USE_I18N = True diff --git a/events/models.py b/events/models.py index 1196c99..f3d5722 100644 --- a/events/models.py +++ b/events/models.py @@ -6,9 +6,9 @@ from users.models import CustomUser class Event(models.Model): MORNING, AFTERNOON, EVENING = range(3) TIME_SLOTS = { - MORNING: "Voormiddag", - AFTERNOON: "Namiddag", - EVENING: "Avond", + MORNING: "voormiddag", + AFTERNOON: "namiddag", + EVENING: "avond", } date = models.DateField() time = models.IntegerField(choices=TIME_SLOTS.items(), default=MORNING) @@ -50,8 +50,8 @@ class EventRegistration(models.Model): INTERESTED = "I" ADMITTED = "A" REGISTRATION_STATE = { - INTERESTED: "Op wachtlijst", - ADMITTED: "Bevestigd", + INTERESTED: "op wachtlijst", + ADMITTED: "bevestigd", } event = models.ForeignKey(Event, on_delete=models.CASCADE) user = models.ForeignKey(CustomUser, on_delete=models.CASCADE) diff --git a/events/templates/events/index.html b/events/templates/events/index.html index 88fc6c9..89e30df 100644 --- a/events/templates/events/index.html +++ b/events/templates/events/index.html @@ -5,7 +5,7 @@ {% block content %} @@ -35,13 +35,13 @@
  • - Logout + Log out
  • {% else %}
  • - Login + Log in
  • {% endif %} diff --git a/users/templates/users/profile.html b/users/templates/users/profile.html index 8800812..c257381 100644 --- a/users/templates/users/profile.html +++ b/users/templates/users/profile.html @@ -1,16 +1,16 @@ {% extends "base.html" %} -{% block title %}Profile{% endblock %} +{% block title %}Profiel{% endblock %} {% block content %} -

    Profile

    +

    Profiel

    {% if user.is_authenticated %} -

    Username: {{ user.username }}

    +

    Gebruikersnaam: {{ user.username }}

    {% csrf_token %} {{ form }} - +
    {% else %}

    Niet ingelogd