#14806: No template tag to support contextual translations
-------------------------------------------+--------------------------------
          Reporter:  jtiai                 |         Owner:  nobody   
            Status:  new                   |     Milestone:           
         Component:  Internationalization  |       Version:  1.3-alpha
        Resolution:                        |      Keywords:  i18n     
             Stage:  Accepted              |     Has_patch:  0        
        Needs_docs:  0                     |   Needs_tests:  0        
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by jezdez):

  * component:  Template system => Internationalization
  * stage:  Unreviewed => Accepted

Comment:

 Yeah, this would probably should look like this:

 with blocktrans

 {{{
 {% blocktrans with article.price as amount count i.length as years context
 "price" %}
     That will cost $ {{ amount }} per year.
 {% plural %}
     That will cost $ {{ amount }} per {{ years }} years.
 {% endblocktrans %}
 }}}

 with trans:

 {{{
 {% trans "yeah" context "greeting" noop %}
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14806#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 django-upda...@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