#11240: Compilemessages fails if a % character is at certain places in the .po 
file
-------------------------------------+-------------------------------------
     Reporter:  tback                |                    Owner:
         Type:  Bug                  |  garcia_marc
    Component:                       |                   Status:  new
  Internationalization               |                  Version:  1.3
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Ready for
    Has patch:  1                    |  checkin
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by anonymous):

 You could just use a custom wrapper for pgettext (for example)

 wrapper.py:
 -----------------
 from django.utils.translation import pgettext as pgt

 def pgettext(context, msg):
     return pgt(context, msg).replace("%%", "%")

-- 
Ticket URL: <https://code.djangoproject.com/ticket/11240#comment:25>
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to