Proof of concept: put \' character in errorlogs string from scorm. Then try to put a scorm activity (you'll get a "no manifest found" error). See mod.html in scorm directory and the line result.concat('<?php print_string('errorlogs','scorm',NULL,"'") ?>:\n'+errorlogs);
If errorlogs has a ' in it causes a problem because the string within concat is prematurely closed.
I don't think putting a
before the \' in the language file is the best solution. Perhaps this strings are reused in another context... i don't know really :-P So here comes this report
Thanks in advance