#10891: Blocktrans fails in 1.1b if there are newlines in the text
-------------------------------------------+--------------------------------
          Reporter:  stavros               |         Owner:  nobody    
            Status:  new                   |     Milestone:            
         Component:  Internationalization  |       Version:  1.1-beta-1
        Resolution:                        |      Keywords:            
             Stage:  Unreviewed            |     Has_patch:  0         
        Needs_docs:  0                     |   Needs_tests:  0         
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by ramiro):

  * component:  Uncategorized => Internationalization

Comment:

 Something related to this was reported six month ago on django-users:
 http://groups.google.com/group/django-
 
users/browse_frm/thread/c051bc5d63e14f0/9956309f9177c972?hl=en&lnk=gst#9956309f9177c972

 These are my notes (from a draft of a message never sent to that thread):

 I've just tested this and found Django is behaving correctly (translated
 content is rendered when the template is used with a proper i18n/language
 preference setup/translation).

 Multi-line literals inside `blocktrans tags` are represented in the PO
 file as multi-line strings that end with the '\n' literal, e.g.:

 {{{
 msgid ""
 "First line\n"
 "Second line\n"
 "Third line, variable content: %(line3text)s\n"
 "Fourth line\n" :
 }}}

 it doesn't matter if the original template file containing such string has
 Unix or DOS line-endings (both styles were tested).

 Also tested was converting the PO file to DOS line endings (starting from
 r8576 we are creating such files with Unix line-endings
 irrespective of the platform where the `makemessages` command is run)
 before running `compilemessages` with similar succesful results.

 Platforms where tests were performed are Linux and Windows.

 Could you please attach a simple example that demonstrates this?.

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