drupal-composer / drupal-l10n

Composer Plugin for downloading Drupal translation files.
10 stars 3 forks source link

Support modules with semver version #13

Closed Sutharsan closed 4 years ago

Sutharsan commented 4 years ago

For example, when downloading the search404 module (2.0.0) drupal-l10n attempts to download the translation from http://ftp.drupal.org/files/translations/8.x/search404/search404-8.x-2.0.nl.po, while it should actually download this file: search404-2.0.0.nl.po

FlorentTorregrosa commented 4 years ago

Hello,

Thanks a lot for opening this issue.

I have manually reproduced the problem.

I will try to provide a failing automated test and a fix for that.

FlorentTorregrosa commented 4 years ago

I don't think there is the possibility to know if the module is using semantic versioning or not.

So, I will have to adapt:

FlorentTorregrosa commented 4 years ago

PR #14 opened

FlorentTorregrosa commented 4 years ago

I have made the modification and tests are passing locally. But I saw with the PR that Travis integration is broken. It is triggered but Travis result is not sent back to Github.

FlorentTorregrosa commented 4 years ago

I pushed the fix on the PR too, and pinged @webflo on Slack for help with Travis integration.

FlorentTorregrosa commented 4 years ago

PR merged. And new release done.