Problem/Motivation

Update of interface translations has a soft dependency on Update module. Update module is required to determine a stable versions in case a dev-release module is installed. Translation packages are only available per release, not for dev-builds. The fallback when Update module is not installed, is quick and dirty. One of its side effects is that no interface translation status is available (/admin/reports/translations).

Proposed resolution

Use the new download URL that was added in #2113957: Build server side version fallback system for translations from which the translation file of the latest stable release can be downloaded.

An issue has been created to provide better user feedback (#2501035: Without "Update Manager" module enabled, "Available translation updates" does not get updated, should be documented), but it is better to fix the cause than the symptoms.

Remaining tasks

  • make patch
  • write tests

User interface changes

none

API changes

none

Data model changes

none

Comments

Sutharsan created an issue. See original summary.

sutharsan’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new2.37 KB

This patch adds the fallback solution that is used in the l10n_update 7.x-2.x branch.

sutharsan’s picture

Assigned: sutharsan » Unassigned
Issue summary: View changes
StatusFileSize
new1.89 KB
new3.8 KB

Adding tests

sutharsan’s picture

Assigned: Unassigned » sutharsan
Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +language-interface

Working on changing the patch to support the new download URL for dev releases. This URL system was added in #2113957: Build server side version fallback system for translations. URL format: https://ftp.drupal.org/files/translations/[core version]/[project]/[project]-[branch].[langcode].po

Some examples of the relation between the project version and the branch used in the URL:

Core version branch in URL
8.0.0-dev 8.0.x
8.0.0-beta15+273-dev 8.0.x
Contrib version branch in URL
8.x-3.0-unstable5+3-dev 8.x-3.x
8.x-3.0-unstable5-dev 8.x-3.x
8.x-2.x-dev 8.x-2.x
sutharsan’s picture

Status: Needs work » Needs review
Issue tags: +Needs tests
StatusFileSize
new3.28 KB

This patch starts from scratch using the version logic solution described in #4. No interdiff provided as this is a new solution.

Status: Needs review » Needs work

The last submitted patch, 5: drupal-locale-fallback-without-update-2550137-5.patch, failed testing.

The last submitted patch, 5: drupal-locale-fallback-without-update-2550137-5.patch, failed testing.

jose reyero’s picture

Hey @Sutharsan, I've just realized we are working on similar issues, maybe we should merge both patches.. ?

https://www.drupal.org/node/1832946#comment-10365725

sutharsan’s picture

Thanks for the heads-up, yes should merge. Will look at it later.

sutharsan’s picture

Status: Needs work » Closed (duplicate)