django-markdown-deux icon indicating copy to clipboard operation
django-markdown-deux copied to clipboard

Is it possible to use blocktrans with markdown-deux?

Open puterleat opened this issue 11 years ago • 2 comments

puterleat avatar Nov 13 '14 01:11 puterleat

https://docs.djangoproject.com/en/dev/topics/i18n/translation/#std:templatetag-blocktrans

I've no idea. I'm not actively using this right now and I've not used the blocktrans template var.

Experiences and patches welcome. :)

trentm avatar Nov 14 '14 06:11 trentm

Yes, just use it like this:

{% load i18n %}
{% load markdown_deux_tags %}

{% trans 'Why you should learn with **Us**' as translated_statement %}
{{ translated_statement | markdown }}

iamjazzar avatar Jan 06 '18 22:01 iamjazzar