Changeset 140
- Timestamp:
- 03/03/06 17:15:25 (6 years ago)
- Files:
-
- 1 modified
-
wikipedia/godmode-light/trunk/godmode-light.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wikipedia/godmode-light/trunk/godmode-light.js
r139 r140 256 256 if (!revert) 257 257 return; 258 document.getElementById('bodyContent').innerHTML = 'Please wait, reverting edits by ' + gml_vandal + '...';258 document.getElementById('bodyContent').innerHTML = _('Please wait, reverting edits by $1...', gml_vandal); 259 259 // Avoid XSS kiddies by using a special token 260 260 if (token == '' || token != hex_md5(gml_url + gml_vandal + document.cookie)) { 261 document.getElementById('bodyContent').innerHTML += '<br /> Bad authentication token!';261 document.getElementById('bodyContent').innerHTML += '<br />' + _('Bad authentication token!'); 262 262 return; 263 263 } … … 267 267 return; 268 268 history_url = gml_url + '&action=history&limit=50'; 269 document.getElementById('bodyContent').innerHTML += '<br /> Getting article history (' + history_url + ')...';269 document.getElementById('bodyContent').innerHTML += '<br />' + _('Getting article history ($1)...', history_url); 270 270 gml_xmlhttp.open("GET", history_url, true); 271 271 gml_xmlhttp.onreadystatechange = RevertStepTwo; … … 285 285 doc = gml_XMLParse(xml); 286 286 if (!doc || !doc.getElementById('pagehistory')) { 287 document.getElementById('bodyContent').innerHTML += '<br /> Failed to parse XML data returned by the server.';288 document.getElementById('bodyContent').innerHTML += '<br /><b> Hint: try to disable both "Enable section editing by right-clicking on section titles (JavaScript)" and "Edit pages on double click (JavaScript)" in your editing preferences until a proper fix is found</b>.';289 document.getElementById('bodyContent').innerHTML += '<br /> Dump of the unparseable page :<br />' + xml.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');287 document.getElementById('bodyContent').innerHTML += '<br />' + _('Failed to parse XML data returned by the server.'); 288 document.getElementById('bodyContent').innerHTML += '<br /><b>' + _('Hint: try to disable both "Enable section editing by right-clicking on section titles (JavaScript)" and "Edit pages on double click (JavaScript)" in your editing preferences until a proper fix is found') + '</b>.'; 289 document.getElementById('bodyContent').innerHTML += '<br />' + _('Dump of the unparseable page: ') + '<br />' + xml.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); 290 290 return; 291 291 } … … 311 311 if (!gml_xmlhttp) 312 312 return; 313 document.getElementById('bodyContent').innerHTML += '<br />Getting article edit form (GET' + gml_url + '&action=edit&oldid=' + oldid + ')...'; 314 gml_xmlhttp.open('GET', gml_url + '&action=edit&oldid=' + oldid, true); 313 editform_url = gml_url + '&action=edit&oldid=' + oldid; 314 document.getElementById('bodyContent').innerHTML += '<br />' + ('Getting article edit form ($1)...', 'GET ' + editform_url); 315 gml_xmlhttp.open('GET', editform_url, true); 315 316 gml_xmlhttp.onreadystatechange = RevertStepThree; 316 317 gml_xmlhttp.send(null); … … 356 357 newform.id = form.id; 357 358 newform.action = form.action; 358 document.getElementById('bodyContent').innerHTML += '<br /> Submitting form...';359 document.getElementById('bodyContent').innerHTML += '<br />' + _('Submitting form...'); 359 360 document.getElementById('bodyContent').appendChild(newform); 360 361 // Submit the form
