drush icon indicating copy to clipboard operation
drush copied to clipboard

Allow override language_default->language on command execution

Open alvar0hurtad0 opened this issue 10 years ago • 3 comments

Sometimes it's needed to launch some commands in a language. For exlample reindex search api with entity_api, only index current language items.

I've tryed launch the command in this way:

drush --variables="language_default=(object)array('language' => 'es')" <command>

but it doesn't work.

I think make this (or something similar) work could be a good improvement.

alvar0hurtad0 avatar Mar 07 '16 11:03 alvar0hurtad0

The point here is to add a language global option.

jonhattan avatar Mar 07 '16 22:03 jonhattan

If anyone takes this on, please start with Drupal 8 and support prior versions if you have time and need.

weitzman avatar Mar 17 '16 14:03 weitzman

This should be classified as a bug, not a feature.

For example, I am working on a multilingual site, which is set to a language I do not understand. The output I get from Drush is therefore extremely confusing and in some cases impossible to make sense of.

joachim-n avatar Mar 17 '17 10:03 joachim-n