WoltLab/WCF — pull request #726 by frmwrk123 (2012-07-27 17:21:59+00:00)
Title: Fixed problem with 'unterminated string literal'.

With the current status of the files multilingualism with textareas doesn't work. Once you have a value in either of the available languages which has newlines, the error 'unterminated string literal' will occur. You can see this error by using the "Fehlerkonsole" of Firefox. That's because Javascript can't handle multiple line strings, if they are inserted directly (like it is in the template). To fix this I have created a two-way solution.

First the I18nTextareaOptionType will replace every "\r" with "_specialNewline\". The trailing slash is for Javascript to bind the string together. In the WCF.class.js the values are checked and every "_specialNewline" will be replaced again by "\r".

If the \r are because of my OS then someone can change it to make it work on all systems.