User:Proteins/translateinterwikicodes.js: Difference between revisions

Content deleted Content added
Proteins (talk | contribs)
m add space to alert string
Proteins (talk | contribs)
place alert_string restriction elsewhere
Line 400:
 
hyperlink_counter = 0;
if (num_hyperlinks > 45) { num_hyperlinks = 45; }
for (hyperlink_index=0; hyperlink_index<num_hyperlinks; hyperlink_index++) {
temp_hyperlink = hyperlinks[hyperlink_index];
Line 412 ⟶ 411:
English_translation = interwiki_English_names[language_code];
 
if (hyperlink_counter < 41) {
alert_string += "Interwiki link " + hyperlink_counter + " : " + language_code + " => " + English_translation + "\n";
}
temp_hyperlink.innerHTML = English_translation;
} // closes loop over interwiki links