From 148ec5d851b9610d94a2afd1ec9fc64302a34f89 Mon Sep 17 00:00:00 2001 From: Florian Repenn Date: Thu, 6 Jun 2024 15:00:47 +0200 Subject: [PATCH 1/2] container: replace gettext_lazy with gettext --- djangocms_bootstrap4/contrib/bootstrap4_grid/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_bootstrap4/contrib/bootstrap4_grid/models.py b/djangocms_bootstrap4/contrib/bootstrap4_grid/models.py index 98bcd0d..3977d36 100644 --- a/djangocms_bootstrap4/contrib/bootstrap4_grid/models.py +++ b/djangocms_bootstrap4/contrib/bootstrap4_grid/models.py @@ -1,7 +1,7 @@ from functools import partial from django.db import models -from django.utils.translation import gettext_lazy as _ +from django.utils.translation import gettext as _ from django.utils.translation import ngettext From a3a2c914c2ff93e568ded36ec3bfe27827718721 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Thu, 6 Jun 2024 18:29:47 +0200 Subject: [PATCH 2/2] Remove doubly-lazy help text --- djangocms_bootstrap4/contrib/bootstrap4_grid/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/djangocms_bootstrap4/contrib/bootstrap4_grid/models.py b/djangocms_bootstrap4/contrib/bootstrap4_grid/models.py index 3977d36..e43955e 100644 --- a/djangocms_bootstrap4/contrib/bootstrap4_grid/models.py +++ b/djangocms_bootstrap4/contrib/bootstrap4_grid/models.py @@ -1,7 +1,8 @@ from functools import partial from django.db import models -from django.utils.translation import gettext as _ +from django.utils.translation import gettext +from django.utils.translation import gettext_lazy as _ from django.utils.translation import ngettext @@ -37,7 +38,7 @@ class Bootstrap4GridContainer(CMSPlugin): default=get_first_choice(GRID_CONTAINER_CHOICES), max_length=255, help_text=mark_safe_lazy( - _( + gettext( "Defines if the grid should use fixed width (.container) " "or fluid width (.container-fluid)." )