Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
API page: https://api.drupal.org/api/drupal/core%21includes%21entity.inc/function/...
In this API documentation block, as well as many others in Drupal core, I keep seeing people write "... associated to..." rather than "associated with".
Could we possibly fix this?
A quick grep for "associated to" in the core directory finds 23 instances. There might be others outside of "core". Don't fix "vendor".
Comment | File | Size | Author |
---|---|---|---|
#5 | associated-with-2549091-4.patch | 12.34 KB | Pravin Ajaaz |
#2 | associated-with-2549091.patch | 12.23 KB | Pravin Ajaaz |
Comments
Comment #2
Pravin Ajaaz CreditAttribution: Pravin Ajaaz commentedThere are about 20 "associated to" ignoring the vendor files. Here is the patch to fix it.
Comment #3
Pravin Ajaaz CreditAttribution: Pravin Ajaaz commentedComment #4
jhodgdonLooks pretty good, thanks!
A few small things to fix:
The comment line is now over 80 characters, so it needs to be rewrapped.
Needs wrapping to 80 characters too.
Another rewrap needed here.
This problem didn't come from the patch, but the first line docs for a method should be one line not two lines.
So maybe change this to:
Returns a form to add a new shortcut to a given set.
(I doubt it is rendered!)
This is also too long. It needs to be one line only, and less than 80 characters...
Maybe:
Returns a form to add a new term to a vocabulary.
Again, not due to this patch, but for better grammar, we should delete "which is" from this description line.
Comment #5
Pravin Ajaaz CreditAttribution: Pravin Ajaaz at Ameex-Drupal Geeks commentedThanks for the detailed review Jennifer :) I have updated the patch based on your suggestions.
Comment #6
Pravin Ajaaz CreditAttribution: Pravin Ajaaz commentedComment #7
Pravin Ajaaz CreditAttribution: Pravin Ajaaz at Ameex-Drupal Geeks commentedComment #8
jhodgdonLooks great, thanks!
Comment #9
alexpottCommitted 026e9d8 and pushed to 8.0.x. Thanks!
Fixed 80 cols on commit.