#14174: Support for string interpolation in lazy translation
-----------------------------------+----------------------------------------
          Reporter:  zimnyx        |         Owner:  nobody
            Status:  new           |     Milestone:        
         Component:  Translations  |       Version:  1.2   
        Resolution:                |      Keywords:        
             Stage:  Unreviewed    |     Has_patch:  0     
        Needs_docs:  0             |   Needs_tests:  0     
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Changes (by mk):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 You need to extend on your proposal a bit. What should happen in this
 case:

 {{{
 >>> lst = [1,2,3]
 >>> s = ugettext_lazy('Hello %s') % (lst,)
 >>> unicode(s)
 'Hello [1,2,3]'
 >>> lst.append(4)
 >>> unicode(s)
 'Hello [1,2,3]'

 OR

 'Hello [1,2,3,4]'
 }}}

 Would you want to deepcopy all arguments to %?

 I'm not convinced this ticket is worth the trouble though.

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