function potx_drush_help in Translation template extractor 7.3
Same name and namespace in other branches
- 8 potx.drush.inc \potx_drush_help()
- 6.3 potx.drush.inc \potx_drush_help()
- 7.2 potx.drush.inc \potx_drush_help()
Implementation of hook_drush_help().
This function is called whenever a drush user calls 'drush help potx'.
Parameters
A string with the help section (prepended with 'drush:').:
Return value
A string with the help text for our command.
File
- ./
potx.drush.inc, line 54 - Translation template extractor module drush integration.
Code
function potx_drush_help($section) {
if ($section == 'drush:potx') {
$help = dt('Generates translation templates from the given Drupal source code in the current working directory.');
$help .= "\n\n" . dt('Possible potx modes are:');
$help .= "\n" . dt(' single Single file output mode, every file folded into the single output file (default).');
$help .= "\n" . dt(' multiple Multiple file output mode, .info files folded into module .pot files.');
$help .= "\n" . dt(' core Drupal core output mode, .info files folded into general.pot.');
$help .= "\n\n" . dt('If no files are specified, potx will autodiscover files from the current working directory. You can specify concrete files to look at to limit the scope of the operation.');
return $help;
}
}