#14126: blocktrans count is parsing incorrectly
---------------------------------------------+------------------------------
          Reporter:  mark0978                |         Owner:  nobody           
            Status:  reopened                |     Milestone:                   
         Component:  Translations            |       Version:  1.2              
        Resolution:                          |      Keywords:  blocktrans plural
             Stage:  Design decision needed  |     Has_patch:  0                
        Needs_docs:  0                       |   Needs_tests:  0                
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by svetlyak40wt):

  * status:  closed => reopened
  * resolution:  worksforme =>
  * stage:  Unreviewed => Design decision needed

Comment:

 Actually it is not blocktrans issue, but translation file issue.

 For example this error takes place when you have LANGUAGE_CODE = 'ru' in
 your settings.py.

 Reason -- wrong django.po for this particular language. It's singular form
 requires keyword argument:

 {{{
 #: contrib/admin/templates/admin/search_form.html:10
 #, python-format
 msgid "1 result"
 msgid_plural "%(counter)s results"
 msgstr[0] "%(counter)s результат"
 msgstr[1] "%(counter)s результата"
 msgstr[2] "%(counter)s результатов"
 }}}

 It should be fixed in this way:
 {{{
 #: contrib/admin/templates/admin/search_form.html:10
 #, python-format
 msgid "1 result"
 msgid_plural "%(counter)s results"
 msgstr[0] "1 результат"
 msgstr[1] "%(counter)s результата"
 msgstr[2] "%(counter)s результатов"
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14126#comment:2>
Django <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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to