#21650: Usage example in i18n docs is bad advice for plurals
--------------------------------------+------------------------------------
     Reporter:  nedbatchelder         |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Documentation         |                  Version:  1.6
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by nedbatchelder):

 My one counter to that might be:  Change this example to an explanation of
 why it isn't a good idea:

 {{{
 Note that pluralization is complicated, and works differently in other
 languages.
 Comparing count to 1 isn't always the correct rule.  This code looks
 sophisticated,
 but will produce the wrong results for other languages:

     ....

 Don't try to implement your own singular-or-plural logic, it won't be
 correct.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21650#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/071.fb3a22d44dd0d8a954ec2b62a52a7faf%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to