#11240: Compilemessages fails if a % character is at certain places in the .po 
file
-------------------------------------------+--------------------------------
          Reporter:  tback                 |         Owner:  nobody
            Status:  new                   |     Milestone:        
         Component:  Internationalization  |       Version:  1.0   
        Resolution:                        |      Keywords:        
             Stage:  Unreviewed            |     Has_patch:  0     
        Needs_docs:  0                     |   Needs_tests:  0     
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by ramiro):

 Yes, for the translatable literals extraction process templates are
 (internally) converted to python code and then fed as such to the gettext
 tools.

 This means that Python string formatting specifiers rules should be
 followed when using the i18n template tags with string literals containing
 extrapolated variables or special meaning chars like `%`. In this case it
 means you literal would need to be `{% trans "findme 10%% " %}` as per
 http://www.gnu.org/software/gettext/manual/gettext.html#python_002dformat
 and http://www.python.org/doc/2.2.1/lib/typesseq-strings.html (linked from
 the first).

 I don't know if this means we should add a note to the effect to the docs.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11240#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 [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