#11240: Compilemessages fails if a % character is at certain places in the .po 
file
-------------------------------------+-------------------------------------
     Reporter:  tback                |                    Owner:
         Type:  Bug                  |  garcia_marc
    Component:                       |                   Status:  reopened
  Internationalization               |                  Version:  1.3
     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
-------------------------------------+-------------------------------------
Changes (by harm):

 * status:  closed => reopened
 * ui_ux:   => 0
 * resolution:  needsinfo =>


Comment:

 Reopened.
  I see this issue too with django 1.3

 template
 {{{
 {% trans '% of test' %}
 }}}

 po file
 {{{
 msgid "% of test"
 msgstr "% van testtrans"
 }}}

 {{{ python manage.py compilemessages}}}  gives the following error
 {{{
 locale/nl/LC_MESSAGES/django.po:950: 'msgstr' is not a valid Python format
 string, unlike 'msgid'. Reason: In the directive number 1, the character
 'v' is not a valid conversion specifier.
 msgfmt: found 1 fatal error
 }}}


 Escaping with a double {{{ %% }}} in the template doesn'th help. (that
 renders as a double percentage)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/11240#comment:13>
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 post to this group, send email to django-updates@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