From cfinck@svn.reactos.org Sun Nov 11 16:56:59 2007
From: cfinck@svn.reactos.org
To: ros-diffs@reactos.org
Subject: [ros-diffs] [cfinck] 30360: - Avoid confusions about double escaping
certain quotes by now using PHP's addslashes() function for all strings,
which are inserted into JavaScript strings. All strings in the translations
now have to be escaped the "usual" way. - Move the translation correctly in
"languages.inc.php".
Date: Sun, 11 Nov 2007 15:56:58 +0000
Message-ID: <20071111155658.EB69FFEFE@mail.smartxx.ru>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8623110762971814751=="
--===============8623110762971814751==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Author: cfinck
Date: Sun Nov 11 18:56:58 2007
New Revision: 30360
URL: http://svn.reactos.org/svn/reactos?rev=3D30360&view=3Drev
Log:
- Avoid confusions about double escaping certain quotes by now using PHP's ad=
dslashes() function for all strings, which are inserted into JavaScript strin=
gs.
All strings in the translations now have to be escaped the "usual" way.
- Move the translation correctly in "languages.inc.php".
Modified:
trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php
trunk/web/reactos.org/htdocs/getbuilds/index.php
trunk/web/reactos.org/htdocs/getbuilds/lang/fr.inc.php
trunk/web/reactos.org/htdocs/getbuilds/lang/it.inc.php
trunk/web/reactos.org/htdocs/getbuilds/languages.inc.php
Modified: trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuild=
s/getbuilds.js.php?rev=3D30360&r1=3D30359&r2=3D30360&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php (original)
+++ trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php Sun Nov 11 18:56:=
58 2007
@@ -91,7 +91,7 @@
{
// For some errors, we show a localized error message
if( http_request.responseXML.getElementsByTagName("message")[0].firstChild=
.data =3D=3D "LIMIT" )
- alert( '' );
+ alert( '' );
else
alert( http_request.responseXML.getElementsByTagName("message")[0].firstC=
hild.data );
=09
@@ -108,7 +108,7 @@
if( data["requesttype"] =3D=3D "FirstPageFullLoad" )
{
filenum =3D parseInt( http_request.responseXML.getElementsByTagName("file=
num")[0].firstChild.data );
- html +=3D '' + filenum + '" ); ?>';
+ html +=3D '' + filenum + '" ); ?>';
}
else
html +=3D document.getElementById("infobox").innerHTML;
@@ -121,12 +121,12 @@
if( currentpage =3D=3D 1 )
{
html +=3D '« ';
- html +=3D '‹ =
';
- }
- else
- {
- html +=3D '">« ';
- html +=3D '">‹ ';
+ html +=3D '‹ ';
+ }
+ else
+ {
+ html +=3D '">« ';
+ html +=3D '">‹ ';
}
=09
html +=3D '