Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2204 closed enhancement (wontfix)

[patch] A more anal pluralization algorithm

Reported by: Poromenos Owned by: adrian
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: UI/UX:

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 8 years ago.
Pluralization patch.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by Poromenos

Pluralization patch.

comment:1 Changed 8 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to 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 Changed 8 years ago by adrian

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.