balazs-endresz / jquery-translate

Automatically exported from code.google.com/p/jquery-translate
5 stars 5 forks source link

the // in http:// is interpreted as comment-line #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
jquery-translate version: 1.4.7
jQuery version: 1.7.1
browser: firefox
OS: windoze 7

my website's is using "scripzip" (a PHP script) to gzip the javascript-files. 
it automatically removes all comments.
And this is exactly the source of the problem. In Line 451 (the getScript-Part) 
theres a http:// and a http://. the doubleslash is interpreted as a comment and 
therefore removed.

the solution is very, very simple:
put one / right after the http: or https:
and the other / right before www.

so this snipped will solve the problem in line 451:
$.getScript(( (...docu...=='https:')?'https:/':'http:/') + 
    "/www.google.com ....

i know, its not a direct problem of jquery-translate, more a problem of 
scripzip. but the solution is SO SIMPLE and will not cause any other problems, 
why not submitting it to the developer?

Original issue reported on code.google.com by menbe...@gmail.com on 1 Dec 2011 at 7:17

GoogleCodeExporter commented 9 years ago
Why on earth are you using such faulty software? I'm sorry but I'm not going to 
"fix" it :)

Original comment by balazs.endresz on 3 Dec 2011 at 2:34