I discovered this yesterday:

> Translation hooks are also available within any template block tag that accepts constant strings. In those cases, just use _() syntax to specify a translation string:

> `{% some_special_tag _("Page not found") value|yesno:_("yes,no") %}`


https://docs.djangoproject.com/en/1.0/topics/i18n/#in-template-code