#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 |
Description
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)
Change History (3)
by , 18 years ago
Attachment: | options.py.diff added |
---|
comment:1 by , 18 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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 by , 18 years ago
Sorry, I'm now noticing this patch is for the verbose_name
rather than the pluralize
template filter. Either way, the resolution stands.
Pluralization patch.