function drush_command_translate

8.0.x command.inc drush_command_translate(&$command)
6.x command.inc drush_command_translate(&$command)
7.x command.inc drush_command_translate(&$command)
4.x command.inc drush_command_translate(&$command)
5.x command.inc drush_command_translate(&$command)
master command.inc drush_command_translate(&$command)

Translates description and other keys of a command definition.

Parameters

$command: A command definition.

1 call to drush_command_translate()
drush_get_commands in includes/command.inc
Get a list of all implemented commands. This invokes hook_drush_command().

File

includes/command.inc, line 1204
The drush command engine.

Code

function drush_command_translate(&$command) {
  $command['description'] = _drush_command_translate($command['description']);
  $keys = array('arguments', 'options', 'examples', 'sections');
  foreach ($keys as $key) {
    foreach ($command[$key] as $k => $v) {
      if (is_array($v)) {
        $v['description'] = _drush_command_translate($v['description']);
      }
      else {
        $v = _drush_command_translate($v);
      }
      $command[$key][$k] = $v;
    }
  }
}