Closed (fixed)
Project:
Drupal core
Version:
9.5.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Jun 2022 at 13:03 UTC
Updated:
4 Aug 2022 at 07:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
eleonelComment #3
eleonelComment #4
cilefen commentedComment #5
alexpott@eleonel if you have a way to check for these automatically can you roll them into a single patch. Fixing them one-by-one is unnecessary.
This issue can be merged with #3283925: Fix a message typo in ConfigEntityTest.php, #3283927: Fix a help text typo in core.content_structure.html.twig and #3283931: Fix a comment typo in MigrateSqlSourceTestBase.php for example.
Comment #6
alexpott@eleonel also I'm unsure if there are other issues you've found recently that'll need to be merged in with this too.
Comment #7
ankithashetty@alexpott, as suggested by you in #5, searched the entire codebase for occurrence of "
the the" keyword and found in 5 files. Attached is a patch file to fix all the typo's in a single file.Please review.
Thanks!
Comment #8
eleonel@alexpott sure, here I created a patch with this issue + https://www.drupal.org/project/drupal/issues/3283925 and https://www.drupal.org/project/drupal/issues/3283931
Comment #9
alexpottCan we also search for "entity entity"? That'll merge in #3283925: Fix a message typo in ConfigEntityTest.php too - plus fixing it in another place.
Updating the issue summary to indicate the scope.
Note we need to merge #7 and #8
Comment #10
alexpottPlus there is another "entity entity" to fix.
Comment #11
eleonelMerge #7 and #8 + https://www.drupal.org/project/drupal/issues/3283925
Comment #12
eleonel@alexpott I found multiple typos by using https://github.com/hcodes/yaspeller
Comment #13
alexpott#10 needs to be addressed... @eleonel so you could paste the output of yaspeller here and the we could choose what to fix.
Comment #14
eleonel@alexpott scanning report on
core/modulesfolderComment #15
eleonel@alexpott scanning report on repository root but (excluding core/modules folder).
Comment #16
alexpottThanks @eleonel - there's way too many false positives in #14 to actually be useful :( for example
The %toolbar_item toolbar item requires the %plugins plugins to be enabled.is not a repeat of plugins.Also the scanner is not very PHP aware and so misses repeated words like and in
- you can see this in
core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php- PHPStorm's grammar checker can find that. Haven't worked out how to make it only do repeated words though.Comment #17
alexpottHere's the grammar report from PHPStorm - it contains lots of split line repeated words like "in" in core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php - line 95/96
Someone could process this xml file and output only the
<description>Possible typo: you repeated a word</description>problems - isolate the false positives and then fix the list here.Comment #21
urvashi_vora commentedHi,
Please review this patch.
Thanks
Comment #22
eleonel@urvashi_vora thanks for your patch, but I can see is removing valid duplicated words, like
center centerin css filesComment #23
urvashi_vora commentedHi @eleonel,
Thanks for letting me know, I will exclude them and will create another patch.
Comment #24
urvashi_vora commentedHi @eleonel,
Can you please review this patch?
It excludes CSS file repeated word removal.
Thanks
Comment #25
urvashi_vora commentedComment #26
eleonel@urvashi_vora I can still see valid duplicated words being removed in your latest patch, eg
So you need to exclude false positives before removing the duplicated words, also I can see changes in minified files, you can ignore that kind of files I guess.
Also please merge your patch with the existing ones: #11 and create an interdiff to see the changes from latest patch (#11)
Comment #27
urvashi_vora commentedHi @eleonel,
I hope now the issue gets fixed.
Please review this patch along with interdiff.
Thanks
Comment #28
alexpottThis is incorrect.
There's a double space in the new text.
This is incorrect. HEAD is correct.
This is a famously correct use of repetitive hads... google it :).
I think these are correct... This is from
configure all $bundle $entity_type_id layout overrides- the user entity type has no bundle so there is a fake bundle called user.These changes are incorrect.
Comment #29
urvashi_vora commentedHi @alexpott,
As per your suggestions, here is the new patch.
Thanks
Comment #30
spokjePatch needs reroll
Comment #31
mrinalini9 commentedHi,
I have rerolled patch #29, please review it.
Thanks & Regards,
Mrinalini
Comment #32
alexpottThese changes are incorrect.I was thinking incorrect in #28 but for some strange reason I typed correct - sorry.
Comment #33
mrinalini9 commentedAdded patch by reverting back the changes mentioned in #32, please review it.
Comment #35
sourabhjainChanges made in #33, Looks fine to me.
Comment #36
alexpottWe need a Drupal 9 version of the patch that fixes core/modules/tour/tests/src/FunctionalJavascript/TourLegacyTest.php like #29 did. The reason that patch failed to apply on D10 is because that does not exist there.
Comment #37
mrinalini9 commentedAdded patch for Drupal 9.5.x that includes the changes from core/modules/tour/tests/src/FunctionalJavascript/TourLegacyTest.php , please review it.
Comment #38
Munavijayalakshmi commentedPatch applied successfully.
Comment #39
Munavijayalakshmi commentedComment #40
alexpottCommitted and pushed 5d4b6b4a87 to 10.1.x and db293a8b3a to 10.0.x. Thanks!
Committed 153f1a4 and pushed to 9.5.x. Thanks!
Didn't backport to 9.4.x because of the help topic changes.
Comment #45
Munavijayalakshmi commentedThanks.