#5425: [newforms-admin] - more flexible pagination template
-----------------------------------------------------+----------------------
   Reporter:  Petr Marhoun <[EMAIL PROTECTED]>  |                Owner:  nobody 
        
     Status:  new                                    |            Component:  
Admin interface
    Version:  newforms-admin                         |           Resolution:    
             
   Keywords:  admin, templates, pagination           |                Stage:  
Unreviewed     
  Has_patch:  1                                      |           Needs_docs:  0 
             
Needs_tests:  0                                      |   Needs_better_patch:  0 
             
-----------------------------------------------------+----------------------
Comment (by Petr Marhoun <[EMAIL PROTECTED]>):

 My language (Czech) is similar - it has also two plural forms. Usually I
 use ungettext - but it is not possible in this situation what is the
 reason for this ticket.
 
 For pagination template I have to use Meta class from model which has only
 two relevant attributes - verbose_name and verbose_name_plural. Therefore
 I can't use ungettext. So I use trick - I know that "2 объектов" (I
 supposed it is used now) is a mistake, so I "translate" it as "Oбъектов:
 2" which is ok (maybe, I don't speak Russian - but it is ok in my
 language).
 
 There is another solution: Verbose name could be defined as function with
 ungettext. I tried it and it worked - but it seems to be too complex for
 this problem. If Django developers tell it is the preferred variant, I
 will create a patch - it is no problem for me.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5425#comment:3>
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