diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2b5a3aab3cc1cdba9287d8b277d7fb1cac23605b..06add1eebc109b70747c02ff4c3c10b5cf4a3823 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,15 @@ 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 +---------- + +Fixed +~~~~~ + +* Preference section verbose names were displayed in server language and not + user language (fixed by using gettext_lazy). + `2.0b0`_ - 2021-05-21 --------------------- diff --git a/aleksis/apps/untis/preferences.py b/aleksis/apps/untis/preferences.py index bae4454f9d1d7766eeeb2feb8ec071236cf0e950..e1c52a09fa8eb17433b4fad4e2857ba137f715d4 100644 --- a/aleksis/apps/untis/preferences.py +++ b/aleksis/apps/untis/preferences.py @@ -1,4 +1,4 @@ -from django.utils.translation import gettext as _ +from django.utils.translation import gettext_lazy as _ from dynamic_preferences.preferences import Section from dynamic_preferences.types import BooleanPreference