divio/django-cms — pull request #1046 by mariocesar (2011-10-11 11:55:29+00:00)
Title: Escape javascript strings on toolbar dict translations

Spanish translation from django-cms, show Anglicisms as simple quoted strings, as it's difficult to translate some words like plugin, this is necesary.

Using simple quotes inside strings, breaks the javascript in some escenarios

```
var str = '¿Te gusta el 'plugin'?';
```

That for obvious reason will not work. Added a new js_script filter for scaping the strings this will work.

```
{% load js %}
var str = '{% filter js_string %}¿Te gusta el 'plugin'?{% endfilter %}';
```

related: https://github.com/divio/django-cms/pull/1045