#27221: ugettext does not escape percent symbol
--------------------------------------+------------------------------------
     Reporter:  pgcd                  |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Internationalization  |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:  ugettext percent      |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by claudep):

 * version:  1.8 => master
 * type:  Bug => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Comment:

 This is not Django specific and this is a documentation issue. There are
 two solutions that I know of:
  - Escape the literal `%` by doubling it in the string yourself.
  - Add a comment on the line before the translatable string containing
 `xgettext:no-python-format`.

--
Ticket URL: <https://code.djangoproject.com/ticket/27221#comment:2>
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.f0fc013ecb58e125b7d7cbb2cfcb7d6d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to