From c23b59520cbc5d1b06864172ee7eaac36340a3dc Mon Sep 17 00:00:00 2001 From: Jacob Rief Date: Thu, 14 May 2020 13:31:54 +0200 Subject: [PATCH] fix missing import --- shop/cascade/processbar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop/cascade/processbar.py b/shop/cascade/processbar.py index 94e9fb5dc..0cba972da 100644 --- a/shop/cascade/processbar.py +++ b/shop/cascade/processbar.py @@ -1,5 +1,5 @@ from django.forms import fields, widgets -from django.utils.translation import gettext_lazy as _ +from django.utils.translation import gettext_lazy as _, ngettext_lazy from django.utils.text import Truncator from django.utils.html import format_html from django.forms.fields import IntegerField @@ -37,7 +37,7 @@ class ProcessBarPlugin(TransparentWrapper, ShopPluginBase): def get_identifier(cls, instance): identifier = super(ProcessBarPlugin, cls).get_identifier(instance) num_cols = instance.get_children().count() - content = ungettext_lazy('with {} page', 'with {} pages', num_cols).format(num_cols) + content = ngettext_lazy('with {} page', 'with {} pages', num_cols).format(num_cols) return format_html('{0}{1}', identifier, content) def get_render_template(self, context, instance, placeholder):