A new module version is not recognized by interface translation update.

Created on 27 September 2015, almost 9 years ago
Updated 5 January 2024, 6 months ago

Problem/Motivation

If an existing module gets replaced by a new version of this module, the new version is not displayed on the translation status page.

Proposed resolution

  • Refresh the data and remove old translation file during translation update (cron, drush, manual)

Remaining tasks

t.b.d.

User interface changes

bug is fixed

API changes

none

Data model changes

none

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
LocaleΒ  β†’

Last updated 2 days ago

Created by

πŸ‡³πŸ‡±Netherlands Sutharsan

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

  • πŸ‡«πŸ‡·France ericdsd France

    Hi patch #38 works against 9.5.2

    tested with both config remote_and_local and Local
    it works nicely, the only strange thing is that the conts of updated strings slihtly differs on each test i did event while using the same database as start point.

    When rexproting the sites po for comparison, everything looks fine, i only have 2 extra string when i'm in remote_and_local mode as those strings are displayed during remote locale:check.

    with same database :
    remote+local
    > [notice] Translations imported: 847 added, 13712 updated, 0 removed.
    local (with po commited from first test)
    > [notice] Translations imported: 848 added, 13468 updated, 0 removed.

  • Status changed to Needs review about 1 year ago
  • last update about 1 year ago
    29,379 pass
  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    Came here from a related issue in Bug Smash. Have updated the patch in #38 to fix the test fail / deprecation. Also since we can have union types now I've reverted #31 and added a union type.

  • Status changed to RTBC about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    LocaleTranslationChangeProjectVersionTest - Error : Call to undefined function Drupal\Tests\locale\Functional\locale_translation_batch_version_check()

    testUpdateCron -
    Queue holds tasks for one project.
    Failed asserting that 2 matches expected 3.
    Expected :3
    Actual :2

    Made sure the tests fail without the fix and they do.
    Reviewing the code changes look good.

    Question for committer if locale_translation_batch_version_check needs a change record.

  • last update about 1 year ago
    29,357 pass, 2 fail
  • last update about 1 year ago
    29,400 pass, 2 fail
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Environment: PHP 8.1 & MySQL 5.7 updated deps
    last update 7 months ago
    Custom Commands Failed
  • Status changed to Needs work 7 months ago
  • πŸ‡©πŸ‡ͺGermany Ammaletu Bonn, Germany

    I would be interested in getting this finished and merged. This might not be the worst bug that Drupal has to offer, but it still breaks a pretty basic core functionality. Right now, people are upgrading to Drupal 10.1 and will be wondering why all kinds of simple and visible Strings are not translated.

    I just added the patch #43 to our Drupal 10.1.6 installation. It applied without a problem and cured the problem with the missing translations of newer Strings. The new test LocaleTranslationChangeProjectVersionTest.php runs successfully, as does the changed test LocaleUpdateCronTest.

    I'm not sure about Drupal\Tests\ckeditor5\FunctionalJavascript\MediaTest that apparently failed back in May, see #45. Our project still uses CKEditor 4, but I tried it on an unmodified Drupal 10.1 installation. Everything worked there, but all test methods in the MediaTest were skipped.

    So what is actually mssing here? I tried to trigger a restest of patch #43. When this hopefully succeeds, can we simply set this back RTBC?

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Environment: PHP 8.1 & MariaDB 10.3.22
    last update 7 months ago
    29,722 pass
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Environment: PHP 8.1 & MySQL 5.7 updated deps
    last update 7 months ago
    Custom Commands Failed
  • Status changed to Needs review 7 months ago
  • πŸ‡©πŸ‡ͺGermany Ammaletu Bonn, Germany

    In the meantime, I had a second look and understood that I need to install a Chromium driver so that the JavaScript tests are not simply skipped. With ddev-selenium-standalone-chrome installed, they are now executed. In my local test setup of a fresh Drupal 10.2-dev installation, JSWebAssertTest works with the patch installed as does MediaTest.

    Can somebody with a better understanding of how Drupal's test setup works please have a look at what might be missing here or if we can set this back to RTBC? I'm setting this back to "Needs review" for now.

    Also, comment #44 raised the question "if locale_translation_batch_version_check needs a change record". I'm not sure about that -- do we need a change record just because there is a new function? But I think fixing the bug might warrant a change record, as people might rely on the old translations or have lots of missing translations added themselves.

  • Status changed to Needs work 7 months ago
  • The Needs Review Queue Bot β†’ tested this issue.

    While you are making the above changes, we recommend that you convert this patch to a merge request β†’ . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)

  • Merge request !56162575945-43 β†’ (Closed) created by mstrelan
  • Status changed to Needs review 7 months ago
  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    JavaScript tests tend to have random fails. I've converted to a merge request rather than rerunning the failing job since it's a lot quicker. Let's see if it comes back green.

  • πŸ‡¦πŸ‡ΊAustralia mstrelan
  • Status changed to RTBC 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    MR is showing green, believe #43 was a random failure.

    Thanks @mstrelan for hiding all patches.

    • larowlan β†’ committed 7bd4aaca on 10.2.x
      Issue #2575945 by Sutharsan, mstrelan, tobiasb, ranjith_kumar_k_u,...
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Committed to 11.x

    Backported to 10.2.x

    Nice work folks, great to get this long-standing issue solved πŸ›πŸ”¨

  • Status changed to Fixed 6 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024