You are here

function l10n_update_drush_command in Localization update 6

Same name and namespace in other branches
  1. 7.2 l10n_update.drush.inc \l10n_update_drush_command()
  2. 7 l10n_update.drush.inc \l10n_update_drush_command()

Implementation of hook_drush_command().

File

./l10n_update.drush.inc, line 11
Drush interface to l10n-update functionalities.

Code

function l10n_update_drush_command() {
  $commands = array();
  $commands['l10n-update-refresh'] = array(
    'description' => 'Refresh available information.',
  );
  $commands['l10n-update-status'] = array(
    'description' => 'Show translation status of available projects.',
    'options' => array(
      'languages' => 'Comma separated list of languages. Defaults to all available languages.',
    ),
  );
  $commands['l10n-update'] = array(
    'description' => 'Update translations.',
    'options' => array(
      'languages' => 'Comma separated list of languages. Defaults to all available languages.',
      'mode' => 'Allowed values: overwrite, keep. Default value: keep.',
    ),
  );
  return $commands;
}