ASKBOT/askbot-devel — pull request #170 by noirbizarre (2013-09-26 18:06:44+00:00)
Title: Fix translation injection in inline question javascript

Changed some simple quotes by double quotes to avoid string breakage in some local using apostrophe (like french).
There may be some other places where the same breakage happen.

By the way, why not using the [built-in Django translation mecanism for javascript](https://docs.djangoproject.com/en/dev/topics/i18n/translation/#internationalization-in-javascript-code) to avoid those kind of breakage ?

My advice: externalize all javascript in js files, use the django/coffin built-in JS translation mecanism and use html attribute to fetch varaiable from js (and allowing to remove all inline JS and to properly compress it).

I can help if needed. I published an app to help: [Django.js](https://github.com/noirbizarre/django.js).
I can provide Jinja/Coffin support if needed.