diff --git a/konova/views.py b/konova/views.py index 1f16b9e..abfea28 100644 --- a/konova/views.py +++ b/konova/views.py @@ -18,6 +18,7 @@ from konova.contexts import BaseContext from konova.decorators import any_group_check from konova.forms import RemoveModalForm from konova.models import Deadline +from konova.sub_settings.context_settings import TAB_TITLE_IDENTIFIER from news.models import ServerMessage from konova.settings import SSO_SERVER_BASE @@ -92,6 +93,7 @@ def home_view(request: HttpRequest): "user_compensation_count": user_comps.count(), "total_eco_count": eco_accs.count(), "user_eco_count": user_ecco_accs.count(), + TAB_TITLE_IDENTIFIER: _("Home"), } context = BaseContext(request, additional_context).context return render(request, template, context) diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index 87ac689..619b6ef 100644 Binary files a/locale/de/LC_MESSAGES/django.mo and b/locale/de/LC_MESSAGES/django.mo differ diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index a56e6ff..46827b7 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -26,7 +26,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-20 12:25+0100\n" +"POT-Creation-Date: 2022-01-20 12:30+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1885,7 +1885,11 @@ msgstr "{} wurde erfolgreich vom Nutzer {} geprüft! {}" msgid "missing" msgstr "fehlt" -#: konova/views.py:115 +#: konova/views.py:96 templates/navbars/navbar.html:16 +msgid "Home" +msgstr "Home" + +#: konova/views.py:117 msgid "Deadline removed" msgstr "Frist gelöscht" @@ -1913,7 +1917,7 @@ msgstr "Ältere ..." msgid "All" msgstr "Alle" -#: news/templates/news/index.html:9 +#: news/templates/news/index.html:9 news/views.py:34 msgid "News" msgstr "Neuigkeiten" @@ -2182,10 +2186,6 @@ msgstr "" msgid "KSP" msgstr "" -#: templates/navbars/navbar.html:16 -msgid "Home" -msgstr "Home" - #: templates/navbars/navbar.html:40 msgid "More" msgstr "Mehr" @@ -2300,10 +2300,18 @@ msgstr "Benachrichtigungseinstellungen ändern" msgid "Notification settings" msgstr "Benachrichtigungen" -#: user/views.py:52 +#: user/views.py:29 +msgid "User settings" +msgstr "Einstellungen" + +#: user/views.py:55 msgid "Notifications edited" msgstr "Benachrichtigungen bearbeitet" +#: user/views.py:67 +msgid "User notifications" +msgstr "Benachrichtigungen" + #: venv/lib/python3.7/site-packages/bootstrap4/components.py:17 #: venv/lib/python3.7/site-packages/bootstrap4/templates/bootstrap4/form_errors.html:3 #: venv/lib/python3.7/site-packages/bootstrap4/templates/bootstrap4/messages.html:4 diff --git a/news/views.py b/news/views.py index d386de0..a556e4c 100644 --- a/news/views.py +++ b/news/views.py @@ -2,8 +2,10 @@ from django.contrib.auth.decorators import login_required from django.http import HttpRequest from django.shortcuts import render from django.utils import timezone +from django.utils.translation import gettext_lazy as _ from konova.contexts import BaseContext +from konova.sub_settings.context_settings import TAB_TITLE_IDENTIFIER from news.models import ServerMessage @@ -29,6 +31,7 @@ def index_view(request: HttpRequest): context = { "news": news, + TAB_TITLE_IDENTIFIER: _("News"), } context = BaseContext(request, context).context return render(request, template, context) diff --git a/user/views.py b/user/views.py index 13fecf5..5979675 100644 --- a/user/views.py +++ b/user/views.py @@ -1,5 +1,7 @@ from django.contrib import messages from django.contrib.auth.decorators import login_required + +from konova.sub_settings.context_settings import TAB_TITLE_IDENTIFIER from user.models import User from django.http import HttpRequest from django.shortcuts import render, redirect, get_object_or_404 @@ -24,6 +26,7 @@ def index_view(request: HttpRequest): template = "user/index.html" context = { "user": request.user, + TAB_TITLE_IDENTIFIER: _("User settings"), } context = BaseContext(request, context).context return render(request, template, context) @@ -61,6 +64,7 @@ def notifications_view(request: HttpRequest): context = { "user": user, "form": form, + TAB_TITLE_IDENTIFIER: _("User notifications"), } context = BaseContext(request, context).context return render(request, template, context)