Google Groups

Re: Translations and quotes...


Jonas Obrist Oct 11, 2011 6:20 AM
Posted in group: django CMS developers
I do however prefer the syntax:

{% load js i18n %}
var str1 = {% js_string %}{% trans "somestring" %}{% endfilter %};

The template tag should be responsible for the quotes as well, to make it easier and more stable.