From f0334859888c1f08f8a83671eb5510a23096547e Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Sun, 6 Jun 2021 13:51:48 +0200 Subject: [PATCH] Add verbose names for all preference sections --- CHANGELOG.rst | 8 ++++++++ aleksis/core/preferences.py | 14 +++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 11c4a0c8c..e2fc8c228 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog`_, and this project adheres to `Semantic Versioning`_. +Unreleased +---------- + +Changed +~~~~~~~ + +* Add verbose names for all preference sections. + `2.0b1`_ - 2021-06-01 --------------------- diff --git a/aleksis/core/preferences.py b/aleksis/core/preferences.py index 4e1bd8a40..2dc131ead 100644 --- a/aleksis/core/preferences.py +++ b/aleksis/core/preferences.py @@ -19,13 +19,13 @@ from .models import Group, Person from .registries import person_preferences_registry, site_preferences_registry from .util.notifications import get_notification_choices_lazy -general = Section("general") -school = Section("school") -theme = Section("theme") -mail = Section("mail") -notification = Section("notification") -footer = Section("footer") -account = Section("account") +general = Section("general", verbose_name=_("General")) +school = Section("school", verbose_name=_("School")) +theme = Section("theme", verbose_name=_("Theme")) +mail = Section("mail", verbose_name=_("Mail")) +notification = Section("notification", verbose_name=_("Notifications")) +footer = Section("footer", verbose_name=_("Footer")) +account = Section("account", verbose_name=_("Accounts")) auth = Section("auth", verbose_name=_("Authentication")) internationalisation = Section("internationalisation", verbose_name=_("Internationalisation")) -- GitLab