Randomly discovered a minor typo in menu.module. JavaScript was spelled Javascript. Checked the rest of menu.module while I was at it. No further typing errors in there that I can see.

Comments

Tor Arne Thune’s picture

Status: Active » Needs review
Issue tags: +Quick fix
jhodgdon’s picture

Thanks... if you are going to fix that line, how about bringing that docblock into compliance with our doc standards, which it's nowhere close to complying with? I have a hard time marking doc patches as RTBC if the lines they are adding to the code have grammar problems, as is the case here.

Also, a code grep finds that there are also 6 places in includes/common.inc with that same problem, and two in modules/simpletest/tests/upgrade/drupal-6.filled.database.php. Maybe those could be fixed too?

I don't mind quick fixes, but when issues like this are brought up, I'm also in favor of making sure the problem is really eradicated, rather than just fixing one instance of the problem, if it's not too much trouble (like doing the same thing in 8 places rather than just one). If that were done, I might be inclined to overlook the lame docblock that is in the current patch....

Tor Arne Thune’s picture

Title: Minor capitalization error in menu.module » Change Javascript to JavaScript and AJAX to Ajax
Issue tags: -Quick fix
StatusFileSize
new103.49 KB

Changed all occurrences of JavaScript (and some javascript where this was clearly not code) to JavaScript. Also changed AJAX to Ajax, as per the style guide. No code (or comment about a code) or user interface text has been touched, only comment documentation. I have also fixed some typos where I found them, around the Javascript and AJAX faults.

I also completed the sentence in menu.module.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Really, Ajax not AJAX? Hmmm. I guess you are right, Wikipedia writes it "Ajax" for instance, and you are correct that http://drupal.org/node/338208 says to use Ajax (the reasoning is that it used to stand for Asyncronous JavaScript And XML, but it often doesn't involve XML any more, so it's become a word rather than an acronym). Anyway, it does appear to be industry consensus as well as in our style guide. Thanks! Learn something every day...

The patch looks good to me. I did notice that AHAH is still all caps, but that is apparently correct. Let's get this cleanup in...

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.