Opened 19 years ago

Closed 19 years ago

Last modified 18 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

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)

options.py.diff (2.1 KB ) - added by Poromenos 19 years ago.
Pluralization patch.

Download all attachments as: .zip

Change History (3)

by Poromenos, 19 years ago

Attachment: options.py.diff added

Pluralization patch.

comment:1 by Adrian Holovaty, 19 years ago

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 by Adrian Holovaty, 19 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.

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