#16717: Added optional [as VARNAME] to trans template tag
-------------------------------------+-------------------------------------
     Reporter:  jezdez               |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Milestone:                       |                Component:
      Version:  SVN                  |  Internationalization
     Keywords:                       |                 Severity:  Normal
    Has patch:  0                    |             Triage Stage:
  Needs tests:  0                    |  Unreviewed
Easy pickings:  0                    |      Needs documentation:  0
                                     |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------
 Part of this year's SoC about form rendering
 (https://github.com/gregmuellegger/django/tree/soc2011/form-rendering) had
 to deal with dynamically changing the label of a form field in the
 template. For that purpose it's required to easily set a context variable
 with a translated string. E.g.:

 {{{
 {% trans "Your full name" as full_name %}
 ...
 {% formfield form.full_name with label=full_name %}
 ...
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16717>
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