Opened 18 years ago
Closed 18 years ago
#5011 closed (fixed)
validators hasNoProfanities improperly uses ungettext
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Validators | Version: | dev | 
| Severity: | Keywords: | ungettext validator | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
No matter how many words match the profanity list, it always returns the plural version of the error message. This is because ungettext expects a number rather than a boolean, which is what is currently being used.
Attached is 1-line diff that will fix this.
Attachments (1)
Change History (3)
by , 18 years ago
| Attachment: | validators_patch.txt added | 
|---|
comment:1 by , 18 years ago
| Triage Stage: | Unreviewed → Ready for checkin | 
|---|
comment:2 by , 18 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
1-line diff