Russell Keith-Magee wrote:
> I'm a beliver that any tool should make the simple trivial and the 
> difficult possible. To that end, I don't think there is a universal 
> solution to pluralization. If a few small changes can get the existing 
> solution to cover a few more languages (including Slovenian) with 
> 'simple' pluralization strategies, then I think we should take the 
> opportunity.

Sure. This whole pluralization problem can be divided into two:

1. Enhance pluralization filter to accept language specific set of 
terminations and peek the right one by language-dependent algorithm. 
There a human is responsible for providing the exact values for 
pluralization forms and this task, in my opinion, is perfectly doable 
and should be done within Django.

2. Automatic pluralization of any (or most) words. This one is requiring 
a vocabulary and is a big task in itself.

> Then, if Ivan wants to contribute a 'declention' template tag that 
> supports Russian  pluralization (and is flexible enough to handle other 
> languages with 'complex' pluralization, e.g., Latin), I'd be happy to 
> add it. It would fit well in the django.templatetags.i18n package, 
> especially if it took into account the current language page code when 
> applying its strategy.

Well... A tag (or rather a filter) choosing one of three forms would be 
very simple. In fact I've heard gettext already has such functionality 
but I'm not very familliar with it. What is required in Django itself is 
some mechanism choosing the right pluralization plugin based on page 
language. But this looks more like a separate topic for 
django-developers already :-)

> but with English, you end up with constant 
> battles over the 'correct' plural (is it viruses or virii? octopuses, 
> octopus or octopodes?)

Funny :-) For this case Russian has a single authoritative source in the 
form of official vocabularies.

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

Reply via email to