I recently discovered that in templates you can do

{{ _("string")|filter }}

so "string" is translated before being filtered.

This is useful for me until this ticket is being commited:

http://code.djangoproject.com/ticket/5972

Anyone knows where in Django documentation is this _() use documented?
I can't find it...


Thanks!

H.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to