Fix spelling for 29 migrate translation related words

Created on 17 April 2021, over 3 years ago
Updated 30 July 2023, over 1 year ago

Problem/Motivation

Current proposal is to fix the following 29 words, related to migrate translations. Some of the words refer to to D6 modules names, or database column names. Tests with non-English language words have been changed to use English words.
-aimez
-cette
-cnfi
-cochez
-faible
-gato
-heke
-huhuu
-ingoa
-j'aime
-leftjoin
-localizable
-ltlanguage
-maailma
-mlids
-moyenne
-nodereference
-objectindex
-overwritable
-redirections
-sivun
-tnid
-tsid
-userreference
-

vous

Steps to reproduce

Proposed resolution

Remaining tasks

Review
Commit
Smile

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Other 

Last updated about 13 hours ago

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Needs review almost 2 years ago
  • 🇺🇸United States smustgrave

    Rerolled

  • Status changed to Needs work over 1 year ago
  • 🇳🇿New Zealand quietone

    No longer applies

  • Status changed to Needs review over 1 year ago
  • 🇺🇸United States smustgrave

    Rerolled

  • Status changed to Needs work over 1 year ago
  • 🇳🇿New Zealand quietone

    I 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

         1     core/lib/Drupal/Core/Menu/MenuTreeStorage.php
         2     core/misc/cspell/dictionary.txt
         3     core/modules/book/src/BookManagerInterface.php
         4     core/modules/book/src/BookManager.php
         5     core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
         6     core/modules/menu_ui/tests/src/Functional/MenuUiTest.php
         7     core/modules/node/tests/src/Functional/Views/NodeFieldTokensTest.php
         8     core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
         9     core/modules/system/tests/src/Functional/Menu/BreadcrumbTest.php
        10     core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php

    I then looked at those changes, with the following comments.

    1. mlid, plid are a Drupalisms used in D8+ and not specific to migrate so we should remove that from the list.
    2. chien chiens is used in a Translation test, so that should be removed from the list.
    3. tnid is used in #7 and #8. Is that old code from D7?
  • Status changed to Needs review over 1 year ago
  • 🇺🇸United States smustgrave

    Removed mlid and plid from IS
    Removed chien chiens
    And yes tnid seems to be specific to D7

  • Status changed to Needs work over 1 year ago
  • The 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.

  • Status changed to Needs review over 1 year ago
  • 🇺🇸United States smustgrave

    #46 was the wrong patch.

  • Status changed to Needs work over 1 year ago
  • The 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.

  • Status changed to Needs review over 1 year ago
  • 🇺🇸United States smustgrave

    error: patch failed: core/misc/cspell/dictionary.txt:974
    error: core/misc/cspell/dictionary.txt: patch does not apply

    Was an issue with word "vous"

  • Status changed to Needs work over 1 year ago
  • 🇳🇿New Zealand quietone
    • +++ b/core/lib/Drupal/Core/Menu/MenuTreeStorage.php
      @@ -12,6 +12,8 @@
      +// cspell:ignore mlid
      

      From #45 mlid is a Drupalism. We should keep the word in the dictionary. And that means removing all the ignore lines. :-(

    • +++ b/core/misc/cspell/dictionary.txt
      @@ -885,7 +863,6 @@ pjpeg
      -plid
      

      Same here.

    • +++ b/core/misc/cspell/dictionary.txt
      @@ -1265,7 +1240,6 @@ titlealert
      -tnid
      
      +++ b/core/modules/node/tests/src/Functional/Views/NodeFieldTokensTest.php
      @@ -43,7 +43,6 @@ public function testViewsTokenReplacement() {
      -      'tnid' => 0,
      
      +++ b/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
      @@ -8,6 +8,8 @@
      +// cspell:ignore tnid
      

      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+.

      +++ b/core/misc/cspell/dictionary.txt
      @@ -183,8 +181,6 @@ checkboxified
      -chien
      -chiens
      

      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.

  • Status changed to Needs review over 1 year ago
  • last update over 1 year ago
    29,436 pass
  • 🇺🇸United States smustgrave

    Attempted to address #51

  • Status changed to Needs work over 1 year ago
  • 🇬🇧United Kingdom longwave UK
    +++ b/core/modules/content_translation/migrations/d6_menu_links_translation.yml
    @@ -1,3 +1,4 @@
    +# cspell:ignore mlid
    

    If we're keeping mlid in the dictionary we do not need any ignore lines for it. Same with plid.

    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+.

  • Status changed to Needs review over 1 year ago
  • last update over 1 year ago
    29,499 pass
  • 🇺🇸United States smustgrave

    Addressed #54

  • last update over 1 year ago
    29,505 pass
  • 🇳🇿New Zealand quietone

    I 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.

  • Status changed to RTBC over 1 year ago
  • 🇺🇸United States smustgrave

    Removed
    -chien
    -chiens
    From the issue summary.

    Searching the rest I see they have been removed successfully from the dictionary.txt file.

  • 🇬🇧United Kingdom longwave UK
    1. +++ b/core/misc/cspell/dictionary.txt
      @@ -980,7 +958,6 @@ rebuilder
      -redirections
      

      I 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?

    2. +++ b/core/modules/field/src/Plugin/migrate/source/d7/FieldInstance.php
      @@ -5,6 +5,7 @@
      +// cspell:ignore localizable
       /**
      

      Missing blank line between cspell comment and docblock.

    3. +++ b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php
      @@ -7,8 +7,8 @@
      +// cspell:ignore entityreference filefield imagefield nodereference
      +// cspell:ignore optionwidgets userreference
       /**
      

      Same.

    I would have fixed the latter two on commit but I'm still not sure about the first.

  • Status changed to Needs review over 1 year ago
  • 🇬🇧United Kingdom longwave UK
  • Status changed to Needs work over 1 year ago
  • The 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.

  • First commit to issue fork.
  • last update over 1 year ago
    29,571 pass
  • @bharath-kondeti opened merge request.
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India bharath-kondeti Hyderabad

    Addressed 2 and 3 points from #58 and raised an MR with the changes.

  • Status changed to Needs work over 1 year ago
  • 🇮🇳India bharath-kondeti Hyderabad

    Moving back to NW as Point 1 from #58 still needs to addressed.

  • Status changed to Needs review over 1 year ago
  • last update over 1 year ago
    29,801 pass
  • 🇳🇿New Zealand quietone

    I 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 tsid back to the dictionary.

    I am now rerolling this based on #56. This is a re-roll only.

  • last update over 1 year ago
    29,801 pass
  • 🇳🇿New Zealand quietone

    Now to address #58 and #29.

    1. Changed to 'redirects'
    2,3 Done.

  • Status changed to RTBC over 1 year ago
  • 🇺🇸United States smustgrave

    Thanks @quietone for cleaning that up.

  • last update over 1 year ago
    29,801 pass
  • last update over 1 year ago
    29,802 pass
  • last update over 1 year ago
    29,802 pass
  • last update over 1 year ago
    29,807 pass
  • last update over 1 year ago
    29,811 pass
  • last update over 1 year ago
    29,815 pass
  • last update over 1 year ago
    Patch Failed to Apply
  • last update over 1 year ago
    Patch Failed to Apply
  • last update over 1 year ago
    Patch Failed to Apply
  • last update over 1 year ago
    Patch Failed to Apply
  • Open on Drupal.org →
    Environment: PHP 8.2 & MySQL 8
    11:25
    10:46
    Queued
  • 🇳🇿New Zealand quietone

    Rerolled 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.

  • last update over 1 year ago
    Patch Failed to Apply
  • last update over 1 year ago
    Patch Failed to Apply
  • Status changed to Needs work over 1 year ago
  • Status changed to Needs review over 1 year ago
  • last update over 1 year ago
    29,908 pass
  • 🇳🇿New Zealand quietone

    Simple reroll. The only changes were to dictionary.txt, which I rebuild as well.

  • Status changed to RTBC over 1 year ago
  • 🇺🇸United States smustgrave

    Reroll looks good. Hopefully can commit this one soon.

    • lauriii committed 418ce000 on 11.x
      Issue #3209249 by quietone, smustgrave, bharath-kondeti, ankithashetty,...
  • Status changed to Fixed over 1 year ago
  • 🇫🇮Finland lauriii Finland

    Thanks @quietone and @smustgrave! Committed 418ce00 and pushed to 11.x. Thanks!

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

Production build 0.71.5 2024