hello
when im using the usual way to install modules : "admin/build/modules"
the language files are imported when using "locale"
when im using "features" to install modules, the language files are not imported.

CommentFileSizeAuthor
#1 features_782286.patch634 bytesVolx

Comments

Volx’s picture

Status: Active » Needs review
StatusFileSize
new634 bytes

I'm having the same problem. drupal_install_module does not take care of the translation by itself (which in my opinion it should), but rather the form_submit of the module form does that by calling

// Notify locale module about module changes, so translations can be
// imported. This might start a batch, and only return to the redirect
// path after that.
module_invoke('locale', 'system_update', $new_modules);

Since Drupal doesn't take care of that automatically, Features has to take care of it by itself. So adding this call to the end of features_install_modules() does this. Note that - by the comment above - anything after that call might never be executed, but as far as I can see, nothing happens afterwards, so this should be fine and it works for me.

Volx’s picture

Version: 6.x-1.0-beta6 » 6.x-1.0
wizonesolutions’s picture

Issue tags: +locale

Subscribing to this. Looking to use Features for language configuration...though it seems like I can't featurize the available languages themselves yet...

danylevskyi’s picture

patch #1 worked great for me.
Volx, thanks!

finex’s picture

And what about l10n_update module? Currently it doesn't download the translations of the module enabled by the feature. Is a feature problem or should I open a new issue against l10n_update?

mpotter’s picture

Status: Needs review » Closed (won't fix)

Closing this for lack of activity. Please re-open this issue if you can reproduce it in the latest version.