#5886: _() syntax in templates only compatible with double-quotes, and the
documentation is fuzzy
----------------------------------------------------+-----------------------
Reporter:  Dmitri Fedortchenko <[EMAIL PROTECTED]>  |       Owner:  nobody      
                                     
  Status:  new                                      |   Component:  
Documentation                                    
 Version:  SVN                                      |    Keywords:  i18n 
internationalization templates documentation
   Stage:  Unreviewed                               |   Has_patch:  0           
                                     
----------------------------------------------------+-----------------------
 The following syntax is invalid:
 {{{
 {{ _('translate me') }}
 }}}

 This is understandable after one studies the source, however it is not
 documented.

 Not only that, but the documentation is rather limited on the possibility
 to use _() in templates, only the following is mentioned:
 {% some_special_tag _("Page not found") value|yesno:_("yes,no") %}

 I feel that the documentation needs to mention the ability to use _() even
 within {{}}, like this:
 {{{
 {{ _("404 error")|title }}
 {{ _("Page not found") }}
 }}}

 I also to feel that either the ability to use single quotes should be
 fixed, or the documentation should note that this is not supported, since
 single quotes work in most other areas in the template system.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5886>
Django Code <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