function drush_command_translate

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

Translates description and other keys of a command definition.


$command: A command definition.

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


includes/, line 1204
The drush command engine.


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;