Content deleted Content added
minor bug fixes |
allow flag to control printing |
||
Line 369:
var alert_string;
var num_lines_printed = 0;
var describe_results = false;
var on_main_page = false;
Line 418 ⟶ 420:
if (num_lines_printed>45) { // in cases of many error messages
if (describe_results) { window.alert(alert_string); }
alert_string = "";
num_lines_printed = 0;
Line 452 ⟶ 454:
if ((hyperlink_counter%40 == 1) && (hyperlink_counter > 1)) {
if (describe_results) { window.alert(alert_string); }
alert_string = "Continued...\n\n";
}
Line 459 ⟶ 461:
} // closes loop over interwiki links
alert_string += "\nTranslated " + hyperlink_counter + " interwiki links into English.";
if (describe_results) { window.alert(alert_string); }
// Translate other interwiki links, but only on the Main Page
Line 495 ⟶ 497:
hyperlink_counter++;
if ((hyperlink_counter%40 == 1) && (hyperlink_counter > 1)) {
if (describe_results) { window.alert(alert_string); }
alert_string = "Continued...\n\n";
}
Line 502 ⟶ 504:
} // closes loop over interwiki links
alert_string += "\nTranslated " + hyperlink_counter + " more interwiki links into English.";
if (describe_results) { window.alert(alert_string); }
} // closes check for being on the Main Page
} // closes function translateInterwikiCodes()
|