aspo aspo - 6 months ago 39
HTML Question

Loading to trans tags in Djangocms-text-ckeditor

I am using the

plugin to add text to my pages but am having one issue which relates to translations.

Currently I have added the
load i18n
at the top but whenever I am using the text plugin and switch to source and directly type the HTML e.g.
<h1>{% trans "My Heading" %}</h1>
, it only shows `{% trans "My Heading" %}.

It renders it as it is.

Any help on how to use the
tag inside the text plugin and get it to render correctly will be greatly appreciated.

mch mch
Answer Source

This snippet might help you out: render_as_template template tag

I haven't tested it and you have to be aware about some security concerns.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download