Skip to content
Snippets Groups Projects
Verified Commit b62af44a authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Use gettext_lazy for preference section verbose names

parent 180643ab
No related branches found
No related tags found
1 merge request!200Resolve "Preference section is German"
Pipeline #16053 passed
......@@ -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
---------------------
......
from django.core.exceptions import ValidationError
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, IntegerPreference
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment