diff --git a/app/app/urls.py b/app/app/urls.py index 34d9edc5..0e190377 100644 --- a/app/app/urls.py +++ b/app/app/urls.py @@ -19,11 +19,12 @@ from django.conf.urls.static import static from django.contrib import admin from django.urls import path +from django.utils.translation import gettext_lazy as _ from . import views -admin.site.index_title = "SADiLaR Administration" -admin.site.site_title = "SADiLaR Site Admin Portal" +admin.site.index_title = _("SADiLaR Administration") +admin.site.site_title = _("SADiLaR Site Admin Portal") urlpatterns = [ path("admin/", admin.site.urls), diff --git a/app/general/apps.py b/app/general/apps.py index 5a41e701..a4212cb5 100644 --- a/app/general/apps.py +++ b/app/general/apps.py @@ -1,6 +1,8 @@ from django.apps import AppConfig +from django.utils.translation import gettext_lazy as _ class GeneralConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "general" + verbose_name = _("General") diff --git a/app/templates/admin/base_site.html b/app/templates/admin/base_site.html index 5cfc3cf0..a949be66 100644 --- a/app/templates/admin/base_site.html +++ b/app/templates/admin/base_site.html @@ -18,7 +18,7 @@ {% block branding %}

- +

{% if user.is_anonymous %} diff --git a/app/users/apps.py b/app/users/apps.py index 88f7b179..757ee5ca 100644 --- a/app/users/apps.py +++ b/app/users/apps.py @@ -1,6 +1,8 @@ from django.apps import AppConfig +from django.utils.translation import gettext_lazy as _ class UsersConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "users" + verbose_name = _("Users")