diff --git a/src/Commands/core/LocaleCommands.php b/src/Commands/core/LocaleCommands.php index a4bd142edf..337358033f 100644 --- a/src/Commands/core/LocaleCommands.php +++ b/src/Commands/core/LocaleCommands.php @@ -209,7 +209,7 @@ public function exportValidate(CommandData $commandData): void #[CLI\Option(name: 'type', description: 'String types to include, defaults to not-customized. Recognized values: not-customized, customized', suggestedValues: ['not-customized', 'customized'])] #[CLI\Option(name: 'override', description: 'Whether and how imported strings will override existing translations. Defaults to the Import behavior configured in the admin interface. Recognized values: none, customized, not-customized, all', suggestedValues: ['none', 'not-customized', 'customized', 'all'])] #[CLI\Usage(name: 'drush locale:import-all /var/www/translations', description: 'Import all translations from the defined directory (non-recursively). Supported filename patterns are: {project}-{version}.{langcode}.po, {prefix}.{langcode}.po or {langcode}.po.')] - #[CLI\Usage(name: 'drush locale:import-all /var/www/translations/custom --types=customized --override=all', description: 'Import all custom translations from the defined directory (non-recursively) and override any existing translation. Supported filename patterns are: {project}-{version}.{langcode}.po, {prefix}.{langcode}.po or {langcode}.po.')] + #[CLI\Usage(name: 'drush locale:import-all /var/www/translations/custom --type=customized --override=all', description: 'Import all custom translations from the defined directory (non-recursively) and override any existing translation. Supported filename patterns are: {project}-{version}.{langcode}.po, {prefix}.{langcode}.po or {langcode}.po.')] #[CLI\Version(version: '12.2')] #[CLI\ValidateModulesEnabled(modules: ['locale'])] public function importAll($directory, $options = ['type' => self::REQ, 'override' => self::REQ])