Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#2204 closed enhancement (wontfix)

[patch] A more anal pluralization algorithm

Reported by: Poromenos Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I have changed pluralization to work correctly with words like "entry", "basis", "cactus", "poromenos", etc. The standard "+ 's'" didn't apply here and I thought it would be better if Django handled these by default instead of requiring the user to supply their pluralized name.

Attachments (1) (2.1 KB) - added by Poromenos 17 years ago.
Pluralization patch.

Download all attachments as: .zip

Change History (3)

Changed 17 years ago by Poromenos

Attachment: added

Pluralization patch.

comment:1 Changed 17 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed

The pluralize filter is meant as an 80% solution -- either add an "s" or not. We shouldn't go down the slippery slope of attempting to account for every special case in the English language. Feel free to use your improved pluralize filter in your own projects and distribute it on the Django wiki.

comment:2 Changed 17 years ago by Adrian Holovaty

Sorry, I'm now noticing this patch is for the verbose_name rather than the pluralize template filter. Either way, the resolution stands.

Note: See TracTickets for help on using tickets.
Back to Top