Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Drupal-l10n #64

Closed
3 tasks done
FlorentTorregrosa opened this issue May 21, 2017 · 6 comments
Closed
3 tasks done

Drupal-l10n #64

FlorentTorregrosa opened this issue May 21, 2017 · 6 comments

Comments

@FlorentTorregrosa
Copy link
Contributor

FlorentTorregrosa commented May 21, 2017

Hello,

I just made a new composer plugin to download Drupal localization files using composer. The structure comes from drupal-scaffold.

Here is the repository: https://github.com/FlorentTorregrosa/drupal-l10n

Here is an usage example: FlorentTorregrosa/docker-drupal-project@183a92c

Why this plugin? (https://github.com/FlorentTorregrosa/drupal-l10n/blob/master/README.md#usage)

This plugin is useful when you want to package your project and then deploy this package on a target environment and that this environment does not have access to a localization servers. So you have to prepare the translations before deploying.

It avoids you to have to put the localization files under your VCS or to have a local site to download the translations.

So does the drupal-composer group would like to incorporate it or should it stay on my Github account?

In TODO I have to:

  • Implement proper Composer events, currently only the download method works.
  • Implement tests
  • Display the name of the file that is downloaded (I have the same problem with drupal-scaffold, the filename is not displayed)

Thanks for your reply.

@greg-1-anderson
Copy link
Collaborator

This looks like a very useful plugin. I think it would be great to have it in the drupal-composer org, but that's up to @webflo and @derhasi.

@FlorentTorregrosa
Copy link
Contributor Author

Hello,

@webflo, @derhasi would it be possible to have a feedback please?

@derhasi
Copy link
Member

derhasi commented Dec 18, 2017

It looks like an interesting plugin, but could not test it yet.

@FlorentTorregrosa
Copy link
Contributor Author

Hello,

Any news on this issue?

@FlorentTorregrosa
Copy link
Contributor Author

Hello,

I talked about that with @webflo at the Drupal dev Days Lisbon.

Suggestions:

  • provide command under drupal namespace like other drupal-composer composer extension: composer drupal:l10n
  • use drupal_rewrite_settings to update settings.php according to the configuration in composer.json file.

@FlorentTorregrosa
Copy link
Contributor Author

Thanks @webflo for creating https://github.com/drupal-composer/drupal-l10n.

I am closing this issue. I have opened followup issues in the new Github repository.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants