Using an install profile that imports local translation files doesn't work with drush si.

The same install profile does import the translation files when you use the web interface.

  module_load_include('fetch.inc', 'l10n_update');
  $options = _l10n_update_default_update_options();
  $batch = l10n_update_batch_update_build(array(), array(), $options);

It think it has something to do with the project type, which is empty in l10n_update_batch_fetch_import

if ($source->type == L10N_UPDATE_REMOTE || $source->type == L10N_UPDATE_LOCAL) { ... }

After the installation is done, the translation files aren't imported. Running the drush commands to refresh and update the translations they get imported.

Comments

robert-os created an issue. See original summary.

robert-io’s picture

Issue summary: View changes
robert-io’s picture

Sorry, added patch for another module

sutharsan’s picture

Wrong patch?

sutharsan’s picture

Status: Active » Postponed (maintainer needs more info)

Can this be reproduced with https://www.drupal.org/project/l10n_install
Can you share the install profile to reproduce and test?

robert-io’s picture

robert-io’s picture

I've tested this with the l10n_install, but I will do this again and provide you more detailed results.

cbccharlie’s picture

I've the same problem with a custom install profile. I've tested with l10n_install and it has the same problem.

Carlos B.

cbccharlie’s picture

I can confirm that cache_set in l10n_update_status_save method is not working correctly. It does not save any value.