divio/django-cms — pull request #1066 by conrado (2011-10-21 07:21:42+00:00)
Title: fixed: bug caused on admin jstree due to javascript + django i18n (unescaped apostrophe)

For catalan translation (and possibly others) there is an apostrophe for the string "an error has occurred", since this translation is being directly injected into javascript that is generated on the fly, it causes a javascript parse error for jstree.

Fixed by substituting apostrophes by quotes and escaping inline quotes.