Le 7 janv. 09 à 01:23, Malcolm Tredinnick a écrit :
> > On Tue, 2009-01-06 at 10:26 +0100, David Larlet wrote: >> Hello, >> >> I'd just submitted a ticket related to an issue I have for ages but >> the decision mainly depends on who is affected by this. Are there >> other languages which consider zero as a singular form? > > I think that ticket is a bit misguided. The pluralize filter is > designed > to work for English only, at the moment. It doesn't support multiple > plural forms -- languages with more than one plural form for > quantities > greater than one -- for example. Adding special cases for things like > languages where zero is singular leads into "make it support every > i18n > plural form under the sun" and things get really complicated really > quickly. > > You need a different approach in that case. There's nothing wrong with > the goal of supporting plural forms properly, but that's not the > pluralize filter. Piecemeal patches to that to support the French but > not the Poles will lead to tears. We don't want crying here. I'm > thinking about it, but I'm inclined to wontfix that ticket at the > moment > in favour of somebody coming up with a more comprehensive solution > as a > separate filter. I perfectly understand and that's why I ask for feedback and propose to create a new filter (per language) in contrib.localflavor in the ticket's description but it depends on needs. I agree that ticket/ email's title is not reflecting this solution but I can propose a pluralize_fr filter for instance if you prefer this approach? (and renaming ticket instead of wontfix status?) In fact, I need feedback because I don't know if it's related to French speaking people or if more languages are affected by this added "s". In this case it'll be more complicated to find the right place in localflavor. Regards, David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django I18N" 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-I18N?hl=en -~----------~----~----~----~------~----~------~--~---
