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):