We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 053dc1d commit 7c22242Copy full SHA for 7c22242
src/wagtail_personalisation/rules.py
@@ -4,7 +4,7 @@
4
from datetime import datetime
5
6
from django.db import models
7
-from django.template.defaultfilters import slugify
+from django.template.defaultfilters import pluralize, slugify
8
from django.utils.encoding import python_2_unicode_compatible
9
from django.utils.translation import ugettext_lazy as _
10
from modelcluster.fields import ParentalKey
@@ -251,9 +251,10 @@ def description(self):
251
'title': _('These users visited {}').format(
252
self.counted_page
253
),
254
- 'value': _('{} {} times').format(
+ 'value': _('{} {} time{}').format(
255
self.get_operator_display(),
256
- self.count
+ self.count,
257
+ pluralize(self.count)
258
259
}
260
0 commit comments