Problem/Motivation
Drupal uses American English in code and comments. In #2972224: Add .cspell.json to automate spellchecking in Drupal core we identified that there were a number of British English spellings that need correcting. Initial list:
+++ b/core/.cspell.json
Customised
Customises
Initialise
Normalise
Normalises
Optimises
optimised
initialised
normalise
normalised
sanitise
sanitised
behaviour
behaviours
customisation
customising
favourite
serialisation
synchronisation
recognising
colour
Proposed resolution
Pick out all the British English words from that issue and fix them.
Remaining tasks
Do it.
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | interdiff-3138718-15-17.txt | 2.19 KB | sja112 |
| #17 | 3138718-17.patch | 50.08 KB | sja112 |
| #15 | interdiff-3138718-13-15.txt | 1.57 KB | sja112 |
| #15 | 3138718-15.patch | 48.57 KB | sja112 |
Comments
Comment #2
dwwYes, pleaze. ;)
Comment #3
dwwMoving the list from the parent into here, since all of those are an example of this scope.
Comment #4
longwaveAdded a few more, namely
Comment #5
longwaveThere are also two instances of "colour" that cspell didn't seem to notice
Comment #6
longwaveComment #7
xjmComment #8
xjmAnother.
Comment #9
dwwRemoved the extra formatting and punctuation noise on the todo list...
Comment #10
sja112 commentedOn this.
Comment #11
xjm@sja112, also check the whole list in #2972224: Add .cspell.json to automate spellchecking in Drupal core for more.
Comment #12
sja112 commentedAdded
optimisedin the list.Comment #13
sja112 commentedAdding patch with the fixes.
Comment #14
sja112 commentedComment #15
sja112 commentedFixed failing test case.
Comment #16
longwavePatch looks good so far and covers the cases in the OP.
However, not sure why cspell didn't spot favour, normalising or behaviour, but let's do them too:
Comment #17
sja112 commented@longwave,
Changing patch to include the fix for words favour, normalising and behaviour.
Please review.
Thanks.
Comment #18
longwaveLooks great. Happy to mark this as RTBC but if a native US English speaker reads this maybe they can add an extra confirmation!
Comment #19
alexpottWe can add favour, behaviour and normalising to the flagWords section of the .cspell.json. Again, doing these issues before doing #2972224: Add .cspell.json to automate spellchecking in Drupal core means that we have to somehow remember to do this rather than implementing it here.
Comment #20
alexpottBTW even the issue title points out that without #2972224: Add .cspell.json to automate spellchecking in Drupal core this effort is futile.
We can choose to not have an umpteenth time + 1 issue.
Comment #21
ketikagrover commentedSince we are not blocking spell check issues on #2972224: Add .cspell.json to automate spellchecking in Drupal core
Verified the patch, all the changes are included
RTBC +1
Comment #22
alexpottCommitted 81e9500 and pushed to 9.1.x. Thanks!
Committed 5a81152 and pushed to 9.0.x. Thanks!
Committed b68907b and pushed to 8.9.x. Thanks!
I fixed the conflict in core/lib/Drupal/Core/Installer/NormalInstallerServiceProvider.php on commit in 9.0.x
I fixed conflicts in core/assets/scaffold/files/default.settings.php and sites/default/default.settings.php in 8.9.x (these files no longer change)\
There were more conflicts for 8.8.x so I didn't bother.
Comment #27
jwilson3#3155258: Use American English spelling of "gray" (sorry, but I would appreciate a review on this)
Comment #28
quietone commentedClosed #3062460: BrE spelling vs AmE spelling as a duplicate of this.