Thursday, June 28, 2012

Translation hooks in custom template tag

Hello, 

I can't make this feature
{% some_special_tag _("Page not found") value|yesno:_("yes,no") %} 
to work with this custom template tag - http://djangosnippets.org/snippets/1289/ with django 1.4.

The result from {% breadcrumb _("Create") %} is _("Create") in the HTML. 

What could be the reason?

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/52iLN57Ah5MJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment