function l10n_update_drush_command in Localization update 7.2
Same name and namespace in other branches
- 6 l10n_update.drush.inc \l10n_update_drush_command()
- 7 l10n_update.drush.inc \l10n_update_drush_command()
Implements 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. Example: --languages="nl, fr, de"',
),
);
$commands['l10n-update'] = array(
'description' => 'Update translations.',
'options' => array(
'languages' => 'Comma separated list of languages. Defaults to all available languages. Example: --languages="nl, fr, de"',
'mode' => 'Determine if existing translations are overwitten during import. Use "overwrite" to overwrite any existing translation, "replace" to replace previously imported translations but not overwrite edited strings, "keep" to keep any existing translation and only add new translations. Default value: "keep"',
),
);
return $commands;
}