Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Apr 2021 at 10:40 UTC
Updated:
13 Aug 2023 at 16:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quietone commentedNot ready to test this. I thinking of doing the fixed for migrate.api.php.
Comment #3
quietone commentedAdding changes for all the translation related files.
Comment #4
quietone commentedFix line length in 2 yml files and remove changes to highwater. I made a start on high water but then stopped and switched to fixing the translation related spelling and I thought those changes were removed. I will look at highwater next.
Comment #5
quietone commentedAccording to MerriamWebster 'high-water' is an adjective and 'high water' a noun. I have attempted to make those changes. There are two files where 'Highwater' is ignored to allow for \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::aboveHighwater.
Comment #6
quietone commentedThere are still more migrate related words but I think this patch is already big enough.
Ready for review.
Comment #7
quietone commentedSplit to two lines.
There are a lot of changes in here so the wee change above can be done after this is reviewed.
Comment #8
kapilv commentedAddressed #7.
Comment #9
longwaveThe
cspell:ignoreprefix needs to appear at the start of each line after wrapping.Comment #10
longwaveI wonder if these should just remain in the dictionary, as we have to exclude them a lot of times.
So far we have conventionally put ignore lists in alphabetical order.
Wrapping here is a bit weird, maybe we should fix while we are here?
Is this safe to change? Can we assume users will always refer to the constant and not the actual string?
Also regarding
Can we be sneaky here and rename the method to
::aboveHighWater? It is backward compatible as method names are not case sensitive in PHP.Comment #11
quietone commentedI have re scoped this to be only about migrate related translation. It just makes a nice grouping. The word list has been changed and I think I have split everything out correctly.
#10.1 I see your point I just don't know if 'a lot of times' should be a criteria for spelling. On the other hand 'langcode' is used is 2,026 files so maybe there is merit in the idea. For the case here, objectid and opbjectindex are not a spelling mistake, they are technical words and that supports your view that they stay in the dictionary. On the other hand, we already have ignores in for other technical and Drupal words such as zettabytes and nodeapi. Where does one draw the line? For myself, I would love to explore the topic, perhaps in the Meta.
For now, since the work is done can we leave it?
#10.2 Hopefully everything in order now.
#10.3 and 4. I'm going to move this to another issue.
Comment #12
quietone commentedI think I will add localizable to this as well.
Comment #13
spokjeCan I be the grumpy old man that points out that we're putting a lot of effort in, but we don't (as far as I'm aware) have something to prevent the next user that comes along, to simply re-add words like
nodereference?With Coding Standards we make sure we have sniffs in Coder in place, is there something similar for cspell? Would this at all be possible?
</grumpyOldManMode>Comment #14
quietone commented@Spokje The files in patches are spell checked by the testbot so no new misspelled words can creep into the code. The only ones that can will those in dictionary.txt or are explicitly ignored with a cspell:ignore line. The first is being handled by removing words from dictionary.txt and the latter will be caught during patch review.
This add a few more words. I considered rewording comments to remove
localizablebut did not do that because the text is a direct copy of code from the Drupal 6/7 codebase.Comment #15
spokje@quietone: Thanks for clearing that up :)
Comment #16
longwaveI propose an alternative method of dealing with a number of these misspelled words that begin with "n" due to them being prefixed with "i18n" in #3210694: Ignore i18n-prefixed words in spellcheck
Comment #17
quietone commentedRemove i18n words fixed in #3210694: Ignore i18n-prefixed words in spellcheck
Comment #18
quietone commentedSilly me, didn't update dictionary.txt.
Comment #21
longwaveComment #22
quietone commentedRerolled and ran spellcheck on core.
Comment #23
vikashsoni commented#22 Patch applied successfully
After patch spelling related issue has been fixed
Thanks for the patch
Comment #24
spokjeerror: patch failed: core/misc/cspell/dictionary.txt:249I'm sorry I found this one too late to RTBC, looks like it needs Yet Another Reroll.
Comment #25
quietone commentedRerolled.
Comment #26
spokjeLGTM
Comment #27
quietone commentedSigh, this has been failing since Jan 12
Comment #28
ankithashettyRerolled the patch in #25, thanks!
Comment #29
longwaveI am not sure this is correct. While "redirections" isn't a dictionary word I don't think replacing it with just "re-directions" helps - to me this is now harder to read than before.
We could either keep "redirections" in the dictionary or replace this with just "redirects" or something like "mappings" which makes sense in this context.
Comment #32
quietone commentedAdding tag for the cspell spelling error issues.
Comment #33
smustgrave commentedFor a 10.1 patch
Also to address feedback in #29.
Please try to address the feedback before rerolling.
Comment #34
smustgrave commentedHad trouble with the interdiff so uploaded a diff.
Addressed #29 by using "mapping" as I agree that made more sense.
Rerolled for 10.1
Comment #35
longwaveFollowing #3210694: Ignore i18n-prefixed words in spellcheck we should not need
cspell:ignorefor nblocks, nprofile, nstrings, ntaxonomy, etc?Comment #36
smustgrave commentedRemoved those cspell lines
Comment #37
longwaveStill several instances of ncck, nmenu, nstrings, ntaxonomy that should be able to be removed.
Comment #38
smustgrave commentedThanks removed more of those instances.
Comment #40
smustgrave commentedSeems to be a random failure.
Comment #41
quietone commentedNeeds a reroll probably due to #3219472: Fix spelling for words used once, beginning with 'e' -> 'i', inclusive.
Comment #42
smustgrave commentedRerolled
Comment #43
quietone commentedNo longer applies
Comment #44
smustgrave commentedRerolled
Comment #45
quietone commentedI started to review this.
I compared the word list in the patch to the the word list in the issue summary and they don't match. I applied the patch and searched for non-migration related files that are changed. They are 9
I then looked at those changes, with the following comments.
Comment #46
smustgrave commentedRemoved mlid and plid from IS
Removed chien chiens
And yes tnid seems to be specific to D7
Comment #47
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #48
smustgrave commented#46 was the wrong patch.
Comment #49
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #50
smustgrave commentederror: patch failed: core/misc/cspell/dictionary.txt:974
error: core/misc/cspell/dictionary.txt: patch does not apply
Was an issue with word "vous"
Comment #51
quietone commentedFrom #45 mlid is a Drupalism. We should keep the word in the dictionary. And that means removing all the ignore lines. :-(
Same here.
The first test is removing tnid and the second is adding an ignore line. They should do the same thing. What needs to happen is to remove the lines with 'tnid' from the test. I am almost tempted to say that changing these two tests should be in a separate issue. However, I think it is pretty easy to show that tnid is not used in D8+.
Per #45 these are used in a non migration translation test and should not be changed.
Sorry that my comment in #45 was not clear.
Comment #53
smustgrave commentedAttempted to address #51
Comment #54
longwaveIf we're keeping
mlidin the dictionary we do not need any ignore lines for it. Same withplid.Not sure what we should do about
tnid- this was a Drupalism in D6/D7 ("translated node ID") but it is not used in D8+.Comment #55
smustgrave commentedAddressed #54
Comment #56
quietone commentedI should just be reviewing this but I have made changes for plid.
There were still ignore lines for plid so I have removed those. That means that mlid and plid are in the dictionary because there are still instances in core that are not migrate that are using those. That leaves tnid, which has two instances in core outside of migrate and those two are being removed because tnid is not used in Drupal 8+. Those two seems to be left over when moving to Drupal 8.
Comment #57
smustgrave commentedRemoved
-chien
-chiens
From the issue summary.
Searching the rest I see they have been removed successfully from the dictionary.txt file.
Comment #58
longwaveI know I mentioned this before but I'm not convinced that "redirections" should be disallowed; we use "redirection" as a noun so pluralising it is OK? I don't think "re-directions" is better; it passes the spellcheck but doesn't have the same meaning, to me.
Missing blank line between cspell comment and docblock.
Same.
I would have fixed the latter two on commit but I'm still not sure about the first.
Comment #59
longwaveComment #60
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #63
bharath-kondeti commentedAddressed 2 and 3 points from #58 and raised an MR with the changes.
Comment #64
bharath-kondeti commentedMoving back to NW as Point 1 from #58 still needs to addressed.
Comment #65
quietone commentedI came here to get this back to NR.
I see it has been converted to an MR, which is not necessary here. This was already RTBC and only minor changes are needed. I also see that there is no diff or anything to show that the MR is correct. Therefor I made an diff between the MR and the patch in #56 and found it was introducing an error. It was adding
tsidback to the dictionary.I am now rerolling this based on #56. This is a re-roll only.
Comment #66
quietone commentedNow to address #58 and #29.
1. Changed to 'redirects'
2,3 Done.
Comment #67
smustgrave commentedThanks @quietone for cleaning that up.
Comment #68
quietone commentedRerolled and re-built the dictionary. When rebuilding the dictionary it added 'please', which we don't want. So, I have removed that from the dictionary in this patch. A followup is needed to investigate the 'please' in COPYRIGHT.txt.
Comment #69
quietone commentedFollowup, #3357565: Remove remaining uses of string 'bartik' and 'seven' when referring to the removed themes
Comment #70
lauriiiComment #71
quietone commentedSimple reroll. The only changes were to dictionary.txt, which I rebuild as well.
Comment #72
smustgrave commentedReroll looks good. Hopefully can commit this one soon.
Comment #74
lauriiiThanks @quietone and @smustgrave! Committed 418ce00 and pushed to 11.x. Thanks!