Where I'm from, exactly 1 is singular, and anything else is plural.

>>> from django.template.defaultfilters import pluralize
>>> pluralize(1)
u''
>>> pluralize(2)
u's'

So far so good.
>>> pluralize(1.1)
u''

That looks like a bug to me.

The trouble is here:
if int(value) != 1:

That's rounding down to 1, even though all numbers excluding 1 should
be plural, I think.

Do others agree this is a bug, or am I doing it wrong?  If it's a bug,
I think the solution is float(value) within some sigma of 1.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to