#16403 closed Bug (fixed)
contrib.comments uses wrong pluralization of profanity message
| Reported by: | Dan Poirier | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.comments | Version: | 1.3 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
contrib.comments says "Watch your mouth! The word %s is not allowed here." for multiple profanities and "Watch your mouth! The words %s are not allowed here." for single ones.
This is because ungettext is being used incorrectly (just like case #5011 from four years ago) - the third arg should be the number of items, not a boolean.
Patch attached.
Attachments (2)
Change History (6)
by , 14 years ago
| Attachment: | django-comments-ungettext.diff added |
|---|
comment:1 by , 14 years ago
| Triage Stage: | Unreviewed → Ready for checkin |
|---|
comment:2 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
by , 14 years ago
| Attachment: | django-comments-ungettext.2.diff added |
|---|
Note:
See TracTickets
for help on using tickets.
In [16505]: