> > The problem is that it's not 1, 2, 3, 4 and others :-). For Russian it's: > > > > 1 form, if it ends with 1 but excluding 11 > > 2 form, if it ends with 2, 3, 4 but excluding 12, 13, 14 > > 3 form, for everything else and all previous exclusions. > > > > So this is not compatible with English at all because 21 and 1 should > > work the same in Russian but different in English. May be other slavic > > languages have their forms and exceptions also. > > Thank you Ivan for clarifying that... I was just going to ask you for > the cases in Russian. Honestly I can't see a universal way of doing > this -- languages are the very definition of diversity! :-P > > What do you think, Russell?
How about using array slices? (I mean the [:] syntax). Maybe in that way you could specify something along the lines of: plural[1:3] = "i" # if items are 1, 2 or 3, use 'i' as ending As I type this I realize this would be not enough. This new pluralize method should accomodate for all possibilities (for only 1 item, items 2-5, default plurarizer and so on), so... does this mean we're stuck with a dictionary? Honestly I never saw a proper implementation of a pluralize function, that was universal enough... can we get a shot at this, at all? OTOH, the dictionary approach Ivan mentioned would still have to be in place, since nouns of different genders have different plural families. ps to all of you native English speakers: lucky you! =) -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---