While browsing the core source code I noticed some spelling problems, so I ran codespell and rolled a patch to fix about 150 spelling mistakes in core. Although the patch is big, it's 90% context.

All but three of the changes are in the doxygen comments or inline comments, and don't affect the code at all. The exceptions are:
1) One change affects a user-facing help string (line 805 of the patch).
2) Two changes affect a string literal in a Test case (lines 927 and 1033 of the patch).
3) One change was to a variable name in a Test case (line 1176 of the patch).

No other changes were made, however in some places fixing the spelling caused the comment line to be too long so I had to re-wrap the comments.

CommentFileSizeAuthor
#5 D7-spelling.patch7.9 KBtr
spelling.patch61.81 KBtr

Comments

tr’s picture

Issue summary: View changes

plural.

tr’s picture

Status: Active » Needs review
longwave’s picture

Status: Needs review » Reviewed & tested by the community

Read through the patch, all looks good to me.

jhodgdon’s picture

Version: 8.x-dev » 7.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Wow. Thanks! I checked it over too and it all looked good to me. Committed to 8.x.

Want to do the same operation for 7.x? In that case we should avoid changing any translated text, but comment spelling fixes would be nice.

tr’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new7.9 KB

There are surprisingly few problems in D7, because many were already fixed two years ago by #1054848: Fixing common typos through codespell.py.

The attached patch fixes the 11 spelling mistakes I found in D7. None of them are in translatable strings or in user-facing text. 2 are in schema descriptions for the field_test module. 3 of them are for assert messages in image.test

jhodgdon’s picture

Status: Needs review » Fixed

Thanks! Very carefully done. Committed to 7.x.

nod_’s picture

Issue tags: +JavaScript

Patch changes JS files, tagging.

Status: Fixed » Closed (fixed)

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