#4281: Error in the documentation example
-----------------------+----------------------------------------------------
Reporter:  Indy        |       Owner:  jacob            
  Status:  new         |   Component:  Documentation    
 Version:  SVN         |    Keywords:  blocktrans, count
   Stage:  Unreviewed  |   Has_patch:  0                
-----------------------+----------------------------------------------------
 The following i18n documentation example doesn't work, because there is no
 count filter by default:
 {{{
 {% blocktrans count list|count as counter %}
 There is only one {{ name }} object.
 {% plural %}
 There are {{ counter }} {{ name }} objects.
 {% endblocktrans %}
 }}}
 The correct version:
 {{{
 {% blocktrans count list|length as counter %}
 There is only one {{ name }} object.
 {% plural %}
 There are {{ counter }} {{ name }} objects.
 {% endblocktrans %}
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4281>
Django Code <http://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 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to