From 1bdcc4580e974e35f21f5739a108fc5eb03956b8 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 16 Jun 2023 16:04:25 +0200 Subject: [PATCH] Quick setup: Fix translation of default values --- src/pretix/control/views/event.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pretix/control/views/event.py b/src/pretix/control/views/event.py index a1dd2dcd45..fcf19c6450 100644 --- a/src/pretix/control/views/event.py +++ b/src/pretix/control/views/event.py @@ -62,7 +62,7 @@ from django.shortcuts import get_object_or_404, redirect from django.urls import reverse from django.utils.functional import cached_property from django.utils.timezone import now -from django.utils.translation import gettext, gettext_lazy as _ +from django.utils.translation import gettext, gettext_lazy as _, gettext_noop from django.views.generic import FormView, ListView from django.views.generic.base import TemplateView, View from django.views.generic.detail import SingleObjectMixin @@ -1511,12 +1511,12 @@ class QuickSetupView(FormView): event=self.request.event, initial=[ { - 'name': LazyI18nString.from_gettext(gettext('Regular ticket')), + 'name': LazyI18nString.from_gettext(gettext_noop('Regular ticket')), 'default_price': Decimal('35.00'), 'quota': 100, }, { - 'name': LazyI18nString.from_gettext(gettext('Reduced ticket')), + 'name': LazyI18nString.from_gettext(gettext_noop('Reduced ticket')), 'default_price': Decimal('29.00'), 'quota': 50, },