From 17afd1c2dd59e3908a1f4b335e0063380f7ffeee Mon Sep 17 00:00:00 2001 From: Harold Date: Tue, 16 Jul 2019 18:03:59 -0600 Subject: [PATCH] Update keys to v1.9.1 --- README.md | 2 +- translations/application.yml | 66 +++++------ translations/cache.rebuild.yml | 10 +- translations/cache.tag.invalidate.yml | 10 +- translations/chain.yml | 11 +- translations/check.yml | 14 +-- translations/common.yml | 4 +- translations/composerize.yml | 22 ++-- translations/config.delete.yml | 6 +- translations/config.diff.yml | 12 +- translations/config.edit.yml | 11 +- translations/config.export.content.type.yml | 17 ++- translations/config.export.entity.yml | 26 +++++ translations/config.export.single.yml | 19 ++- translations/config.export.view.yml | 22 ++-- translations/config.export.yml | 20 ++-- translations/config.import.single.yml | 15 +-- translations/config.import.yml | 18 +-- translations/config.override.yml | 14 ++- translations/config.validate.yml | 10 +- translations/create.comments.yml | 21 ++-- translations/create.nodes.yml | 24 ++-- translations/create.roles.yml | 14 +-- translations/create.terms.yml | 20 ++-- translations/create.users.yml | 23 ++-- translations/create.vocabularies.yml | 11 +- translations/cron.execute.yml | 13 +-- translations/cron.release.yml | 7 +- translations/database.add.yml | 37 +++--- translations/database.client.yml | 9 +- translations/database.connect.yml | 13 +-- translations/database.drop.yml | 13 +-- translations/database.dump.yml | 22 ++-- translations/database.log.clear.yml | 16 +-- translations/database.log.common.yml | 3 +- translations/database.log.poll.yml | 13 +-- translations/database.query.yml | 7 +- translations/database.restore.yml | 12 +- translations/debug.breakpoints.yml | 13 +-- translations/debug.cache.context.yml | 8 +- translations/debug.chain.yml | 2 +- translations/debug.config.settings.yml | 6 +- translations/debug.config.validate.yml | 12 +- translations/debug.config.yml | 21 ++-- translations/debug.container.yml | 24 ++-- translations/debug.cron.yml | 6 +- translations/debug.database.log.yml | 24 ++-- translations/debug.database.table.yml | 24 ++-- translations/debug.entity.yml | 16 +-- translations/debug.event.yml | 22 ++-- translations/debug.features.yml | 13 +-- translations/debug.image.styles.yml | 8 +- translations/debug.libraries.yml | 26 ++--- translations/debug.migrate.yml | 6 +- translations/debug.module.yml | 10 +- translations/debug.multisite.yml | 14 +-- translations/debug.permission.yml | 18 +-- translations/debug.plugin.yml | 38 +++--- translations/debug.queue.yml | 12 +- translations/debug.rest.yml | 6 +- translations/debug.roles.yml | 6 +- translations/debug.router.yml | 28 ++--- translations/debug.settings.yml | 6 +- translations/debug.site.yml | 28 +++-- translations/debug.state.yml | 16 +-- translations/debug.test.yml | 6 +- translations/debug.theme.keys.yml | 21 ++-- translations/debug.theme.yml | 30 ++--- translations/debug.update.composer.yml | 13 +++ translations/debug.update.yml | 16 +-- translations/debug.user.yml | 12 +- translations/debug.views.plugins.yml | 14 +-- translations/debug.views.yml | 6 +- translations/devel.dumper.yml | 12 +- translations/dotenv.init.yml | 39 +------ translations/drush.yml | 2 +- translations/entity.delete.yml | 24 ++-- translations/exec.yml | 17 ++- translations/features.import.yml | 18 +-- translations/generate.ajax.command.yml | 16 +-- .../generate.authentication.provider.yml | 21 ++-- translations/generate.breakpoint.yml | 26 ++--- translations/generate.cache.context.yml | 21 ++-- translations/generate.command.yml | 45 ++++--- translations/generate.composer.yml | 89 ++++++-------- translations/generate.controller.yml | 42 +++---- translations/generate.entity.bundle.yml | 23 ++-- translations/generate.entity.config.yml | 35 +++--- translations/generate.entity.content.yml | 58 ++++----- translations/generate.event.subscriber.yml | 34 +++--- translations/generate.form.alter.yml | 44 ++++--- translations/generate.form.config.yml | 88 ++++++-------- translations/generate.form.yml | 88 ++++++-------- translations/generate.help.yml | 18 ++- translations/generate.jstest.yml | 22 +--- translations/generate.module.file.yml | 11 +- translations/generate.module.yml | 74 +++++------- translations/generate.permissions.yml | 18 +-- translations/generate.plugin.block.yml | 55 +++++---- .../generate.plugin.ckeditorbutton.yml | 49 +++----- translations/generate.plugin.condition.yml | 71 ++++------- translations/generate.plugin.field.yml | 78 +++++-------- .../generate.plugin.fieldformatter.yml | 31 +++-- translations/generate.plugin.fieldtype.yml | 54 ++++----- translations/generate.plugin.fieldwidget.yml | 31 +++-- translations/generate.plugin.imageeffect.yml | 33 +++--- .../generate.plugin.imageformatter.yml | 26 ++--- translations/generate.plugin.mail.yml | 34 +++--- .../generate.plugin.migrate.dataparser.yml | 16 +++ .../generate.plugin.migrate.process.yml | 21 ++-- .../generate.plugin.migrate.source.yml | 56 ++++----- translations/generate.plugin.queue.yml | 20 ++++ .../generate.plugin.rest.resource.yml | 38 +++--- translations/generate.plugin.rules.action.yml | 58 ++++----- .../generate.plugin.rules.condition.yml | 46 ++++---- .../generate.plugin.rules.dataprocessor.yml | 32 +++-- translations/generate.plugin.skeleton.yml | 30 +++-- .../generate.plugin.type.annotation.yml | 26 ++--- translations/generate.plugin.type.yaml.yml | 26 ++--- .../generate.plugin.validationconstraint.yml | 39 +++---- translations/generate.plugin.views.field.yml | 28 ++--- translations/generate.post.update.yml | 20 ++-- translations/generate.profile.yml | 51 ++++---- translations/generate.routesubscriber.yml | 21 ++-- translations/generate.service.yml | 56 ++++----- translations/generate.site.alias.yml | 48 ++++---- translations/generate.theme.yml | 110 ++++++++---------- translations/generate.twig.extension.yml | 25 ++-- translations/generate.update.yml | 18 ++- translations/help.yml | 11 +- translations/image.styles.flush.yml | 20 ++-- translations/init.yml | 31 ++--- translations/list.yml | 33 ++---- translations/locale.language.add.yml | 12 +- translations/locale.language.delete.yml | 4 +- translations/locale.translation.status.yml | 30 ++--- translations/migrate.execute.yml | 4 +- translations/migrate.rollback.yml | 2 +- translations/migrate.setup.yml | 4 +- translations/module.dependency.install.yml | 14 +-- translations/module.download.yml | 37 +++--- translations/module.install.yml | 58 ++++----- translations/module.path.yml | 12 +- translations/module.uninstall.yml | 30 ++--- translations/module.update.yml | 25 ++-- translations/multisite.new.yml | 40 +++---- translations/multisite.update.yml | 30 ++--- translations/node.access.rebuild.yml | 14 +-- translations/queue.run.yml | 11 +- translations/role.delete.yml | 16 +-- translations/role.new.yml | 22 ++-- translations/router.rebuild.yml | 13 ++- translations/self-update.yml | 25 ++-- translations/server.yml | 23 ++-- translations/settings.set.yml | 22 ++-- translations/site.import.local.yml | 26 ++--- translations/site.install.yml | 78 ++++++------- translations/site.maintenance.yml | 20 ++-- translations/site.mode.yml | 40 +++---- translations/site.statistics.yml | 26 ++--- translations/site.status.yml | 49 ++++---- translations/snippet.yml | 19 +++ translations/state.delete.yml | 14 +-- translations/state.override.yml | 20 ++-- translations/taxonomy.term.delete.yml | 12 +- translations/theme.download.yml | 26 ++--- translations/theme.install.yml | 40 +++---- translations/theme.path.yml | 12 +- translations/theme.uninstall.yml | 38 +++--- translations/update.entities.yml | 12 +- translations/update.execute.yml | 33 +++--- translations/user.create.yml | 54 ++++----- translations/user.delete.yml | 39 +++---- translations/user.login.url.yml | 18 +-- translations/user.password.hash.yml | 18 +-- translations/user.password.reset.yml | 32 ++--- translations/user.role.yml | 28 ++--- translations/user.unblock.yml | 24 ++-- translations/views.disable.yml | 14 +-- translations/views.enable.yml | 14 +-- 180 files changed, 2097 insertions(+), 2422 deletions(-) create mode 100644 translations/config.export.entity.yml create mode 100644 translations/debug.update.composer.yml create mode 100644 translations/generate.plugin.migrate.dataparser.yml create mode 100644 translations/generate.plugin.queue.yml create mode 100644 translations/snippet.yml diff --git a/README.md b/README.md index 24040ce..ce5922e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# drupal-console-en +# drupal-console-ur ## Usage diff --git a/translations/application.yml b/translations/application.yml index cb084e5..fb482e7 100644 --- a/translations/application.yml +++ b/translations/application.yml @@ -7,7 +7,7 @@ options: generate-doc: 'Shows command options and arguments as markdown' root: 'Define the Drupal root to be used in command execution' uri: 'URI of the Drupal site to use (for multi-site environments or when running on an alternate port)' - yes: 'Skip confirmation and proceed' + 'yes': 'Skip confirmation and proceed' target: 'Site name you want to interact with (for local or remote sites)' help: 'Display this help message' quiet: 'Suppress all output from the command' @@ -33,26 +33,18 @@ messages: path: 'Generation path' learning: route: "In order to to create pages it is necessary to define routes for them.\nA route maps a URL path to a controller. It defines what function\nor method will be called when a URL is accessed.\nIf the user accesses http://drupal8.dev/{{ route.path }}, the routing\nsystem will look for a route with that path. In this case it will find a\nmatch, and execute the _controller callback. In this case the callback is\ndefined as a classname\n(\"\\Drupal\\{{ module }}\\Controller\\{{ class_name }}\")\nand a method (\"{{ route.method }}\")." - autocomplete: | - Bash: Bash support depends on the http://bash-completion.alioth.debian.org/ - project which can be installed with your package manager of choice. Then add - this line to your shell configuration file. - source "$HOME/.console/console.rc" 2>/dev/null - - Bash or Zsh: Add this line to your shell configuration file: - source "$HOME/.console/console.rc" 2>/dev/null - - Fish: Create a symbolic link - ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish + autocomplete: "Bash: Bash support depends on the http://bash-completion.alioth.debian.org/\nproject which can be installed with your package manager of choice. Then add\nthis line to your shell configuration file.\nsource \"$HOME/.console/console.rc\" 2>/dev/null\n\nBash or Zsh: Add this line to your shell configuration file:\nsource \"$HOME/.console/console.rc\" 2>/dev/null\n\nFish: Create a symbolic link\nln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish\n" version: '"%s" version "%s"' disable: - command: - error: 'Command: "%s" is deprecated.' - extra: 'You must execute: "%s" instead' + command: + error: 'Command: "%s" is deprecated.' + extra: 'You must execute: "%s" instead' errors: invalid-command: 'Command "%s", is not a valid command name.' renamed-command: 'Command "%s" was renamed, use "%s" instead.' drush-command: 'Command "%s" is a Drush command (deprecated). Drupal Console equivalent "%s" was executed instead.' + statistics-failed: "The Drupal console failed to send statistics. After 10 attempts, this feature was disabled.\nIf you want to enable it again, use the following command:\n\ndrupal settings:set statistics.enabled true\n" + statistics-url-failed: "The Drupal console failed to send statistics.\nYou must configure it in the global config.yml, use the following command and choose your preference:\n\ndrupal init" site: messages: path: 'Site path' @@ -66,28 +58,26 @@ site: user: messages: path: 'User home path' - remote: - errors: - passphrase-missing: 'Passphrase file is missing' - passphrase-empty: 'Passphrase file is empty' - private-missing: 'Private file is missing' - private-empty: 'Private file is empty' - private-invalid: 'Private file is invalid' - invalid-root: 'Invalid root directory' - console-not-found: 'Drupal Console not found on this site' - + errors: + passphrase-missing: 'Passphrase file is missing' + passphrase-empty: 'Passphrase file is empty' + private-missing: 'Private file is missing' + private-empty: 'Private file is empty' + private-invalid: 'Private file is invalid' + invalid-root: 'Invalid root directory' + console-not-found: 'Drupal Console not found on this site' gitbook: - messages: - title: 'Available Drupal Console Commands' - note: 'Note' - note-description: 'Drupal Console commands *must* be run from the root of a Drupal 8 installation' - command: 'Drupal Console Command' - command_description: 'The **"%s"** command "%s"' - usage: 'Usage' - options: 'Available options' - option: 'Option' - details: 'Details' - arguments: 'Available arguments' - argument: 'Argument' - examples: 'Examples' + messages: + title: 'Available Drupal Console Commands' + note: Note + note-description: 'Drupal Console commands *must* be run from the root of a Drupal 8 installation' + command: 'Drupal Console Command' + command_description: 'The **"%s"** command "%s"' + usage: Usage + options: 'Available options' + option: Option + details: Details + arguments: 'Available arguments' + argument: Argument + examples: Examples diff --git a/translations/cache.rebuild.yml b/translations/cache.rebuild.yml index 3e1b5ff..bd4cee0 100644 --- a/translations/cache.rebuild.yml +++ b/translations/cache.rebuild.yml @@ -9,7 +9,9 @@ messages: questions: cache: 'Select cache.' examples: - - description: Rebuild all caches - execution: drupal cr all - - description: Rebuild discovery cache - execution: drupal cr discovery + - + description: 'Rebuild all caches' + execution: 'drupal cr all' + - + description: 'Rebuild discovery cache' + execution: 'drupal cr discovery' diff --git a/translations/cache.tag.invalidate.yml b/translations/cache.tag.invalidate.yml index dbe22a2..c131e1f 100644 --- a/translations/cache.tag.invalidate.yml +++ b/translations/cache.tag.invalidate.yml @@ -5,7 +5,9 @@ messages: start: 'Invalidating tag(s) "%s".' completed: 'Done invalidating tag(s).' examples: - - description: Invalidate routes - execution: drupal cti routes - - description: Invalidate a specific node - execution: drupal cti node:1 node_list + - + description: 'Invalidate routes' + execution: 'drupal cti routes' + - + description: 'Invalidate a specific node' + execution: 'drupal cti node:1 node_list' diff --git a/translations/chain.yml b/translations/chain.yml index f292475..1c2f337 100644 --- a/translations/chain.yml +++ b/translations/chain.yml @@ -15,11 +15,8 @@ messages: enter-value-for-placeholder: 'Enter value for "%s" placeholder' legacy-inline: 'Update inline legacy placeholders from %{{name}} to {{name}}.' legacy-environment: 'Update environment legacy placeholders from ${{(NAME}} or %env(NAME)% to {{env("NAME")}}.' - metadata-registration: | - You should register your chain file as command by providing metadata, more info at: - https://docs.drupalconsole.com/en/chains/registering.html + metadata-registration: "You should register your chain file as command by providing metadata, more info at:\n https://docs.drupalconsole.com/en/chains/registering.html" examples: - - description: 'Providing a file option using full path. (DEPRECATED' - execution: | - drupal chain \ - --file="/path/to/file/chain-file.yml" + - + description: 'Providing a file option using full path. (DEPRECATED' + execution: "drupal chain \\\n --file=\"/path/to/file/chain-file.yml\"\n" diff --git a/translations/check.yml b/translations/check.yml index b98c5bc..53bd7f3 100644 --- a/translations/check.yml +++ b/translations/check.yml @@ -1,9 +1,9 @@ description: 'System requirement checker' messages: - file: 'Checking requirements using file at:' - php-invalid: 'The current installed version "%s" is invalid, it requires "%s" or higher' - configuration-missing: 'The configuration "%s" is missing.' - configuration-overwritten: 'The PHP-Configuration (php.ini) "%s" was missing and overwritten with "%s".' - extension-missing: 'The extension "%s" is missing.' - extension-recommended: 'The extension "%s" is recommended to install.' - success: 'Checks passed.' + file: 'Checking requirements using file at:' + php-invalid: 'The current installed version "%s" is invalid, it requires "%s" or higher' + configuration-missing: 'The configuration "%s" is missing.' + configuration-overwritten: 'The PHP-Configuration (php.ini) "%s" was missing and overwritten with "%s".' + extension-missing: 'The extension "%s" is missing.' + extension-recommended: 'The extension "%s" is recommended to install.' + success: 'Checks passed.' diff --git a/translations/common.yml b/translations/common.yml index abc9c4c..6977e32 100644 --- a/translations/common.yml +++ b/translations/common.yml @@ -37,8 +37,8 @@ questions: default-value: 'Default value' checkboxes: 'Default value(s) separated by commas' weight: 'Weight for input item' - title: 'Title' - fieldset: 'Fieldset' + title: Title + fieldset: Fieldset new-field: 'Enter a new field properties' errors: module-dependency: 'Missing module dependency "%s" is not installed. Try module:install to install it.' diff --git a/translations/composerize.yml b/translations/composerize.yml index babb4c1..e7798da 100644 --- a/translations/composerize.yml +++ b/translations/composerize.yml @@ -1,14 +1,14 @@ description: 'Converts Drupal codebase to composer.' options: - show-packages: 'Show list of packages.' - include-version: 'Include version on suggested result command.' + show-packages: 'Show list of packages.' + include-version: 'Include version on suggested result command.' messages: - name: 'Name' - version: 'Version' - dependencies: 'Dependencies' - profile: 'Profile(s) detected' - module: 'Module(s) detected' - theme: 'Theme(s) detected' - from: 'From your project root:' - execute: 'Execute this command:' - ignore: 'To ignore third party libraries, profiles, modules and themes add to your .gitignore file:' + name: Name + version: Version + dependencies: Dependencies + profile: 'Profile(s) detected' + module: 'Module(s) detected' + theme: 'Theme(s) detected' + from: 'From your project root:' + execute: 'Execute this command:' + ignore: 'To ignore third party libraries, profiles, modules and themes add to your .gitignore file:' diff --git a/translations/config.delete.yml b/translations/config.delete.yml index 08e4e37..8befe1a 100644 --- a/translations/config.delete.yml +++ b/translations/config.delete.yml @@ -15,6 +15,6 @@ warnings: questions: sure: 'Are you sure to delete all configuration' examples: - - description: 'Provide a config type and a config name' - execution: drupal config:delete active all - + - + description: 'Provide a config type and a config name' + execution: 'drupal config:delete active all' diff --git a/translations/config.diff.yml b/translations/config.diff.yml index 7b3b81f..054a2ab 100644 --- a/translations/config.diff.yml +++ b/translations/config.diff.yml @@ -7,12 +7,12 @@ questions: directories: 'Config directory:' table: headers: - collection: 'Collection' - config-name: 'Configuration item' - operation: 'Operation' + collection: Collection + config-name: 'Configuration item' + operation: Operation messages: no-changes: 'There are no changes.' examples: - - description: 'Provide a config directory' - execution: drupal config:diff ../config/path - + - + description: 'Provide a config directory' + execution: 'drupal config:diff ../config/path' diff --git a/translations/config.edit.yml b/translations/config.edit.yml index 282e4f2..cd44ea4 100644 --- a/translations/config.edit.yml +++ b/translations/config.edit.yml @@ -8,8 +8,9 @@ messages: no-directory: 'An error occurred while creating your directory at: "%s"' choose-configuration: 'Choose a configuration' examples: - - description: 'Edit system cron configurations with "vim" (default editor).' - execution: 'drupal config:edit system.cron' - - description: 'Edit system cron configurations with "gedit".' - execution: 'drupal config:edit system.cron gedit' - + - + description: 'Edit system cron configurations with "vim" (default editor).' + execution: 'drupal config:edit system.cron' + - + description: 'Edit system cron configurations with "gedit".' + execution: 'drupal config:edit system.cron gedit' diff --git a/translations/config.export.content.type.yml b/translations/config.export.content.type.yml index 9664533..15458fc 100644 --- a/translations/config.export.content.type.yml +++ b/translations/config.export.content.type.yml @@ -7,19 +7,18 @@ questions: optional-config: 'Export content type in module as an optional configuration' all: 'All content types' remove-config-hash: 'Content type to be exported without the default site hash key.' + include-module-dependencies: 'Include content type module dependencies in module info YAML file' messages: content-type-exported: 'Exporting content type' options: optional-config: 'Export content type as an optional YAML configuration in your module' remove-uuid: 'If set, the configuration will be exported without uuid key.' remove-config-hash: 'If set, the configuration will be exported without the default site hash key.' + include-module-dependencies: 'Include content type module dependencies in module info YAML file' examples: - - description: 'Provide a content type and module name' - execution: | - drupal config:export:content:type page \ - --module="demo" - - description: 'If you want export content type provide the optional config' - execution: | - drupal config:export:content:type page \ - --module="demo" \ - --optional-config + - + description: 'Provide a content type and module name' + execution: "drupal config:export:content:type page \\\n --module=\"demo\"" + - + description: 'If you want export content type provide the optional config' + execution: "drupal config:export:content:type page \\\n --module=\"demo\" \\\n --optional-config\n" diff --git a/translations/config.export.entity.yml b/translations/config.export.entity.yml new file mode 100644 index 0000000..8d9ce37 --- /dev/null +++ b/translations/config.export.entity.yml @@ -0,0 +1,26 @@ +description: 'Export a specific config entity and their fields.' +arguments: + entity-type: 'An entity type (node_type, taxonomy_vocabulary, paragraphs_type) to be exported' + bundle: 'A bundle to be exported' +questions: + all: All + entity-type: 'Select entity type' + bundle: 'A bundle to be exported' + remove-uuid: 'The bundle to be exported without uuid key.' + optional-config: 'Export the bundle in the module as an optional configuration' + remove-config-hash: 'The bundle to be exported without the default site hash key.' + include-module-dependencies: 'Include bundle module dependencies in module info YAML file' +messages: + bundle-exported: 'Exporting bundle %s' +options: + optional-config: 'Export bundle as an optional YAML configuration in your module' + remove-uuid: 'If set, the configuration will be exported without uuid key.' + remove-config-hash: 'If set, the configuration will be exported without the default site hash key.' + include-module-dependencies: 'Include bundle module dependencies in module info YAML file' +examples: + - + description: 'Provide an entity type, a bundle and a module name' + execution: "drupal config:export:entity node_type page \\\n --module=\"demo\"" + - + description: 'If you want export a bundle as an optional config' + execution: "drupal config:export:entity node_type page \\\n --module=\"demo\" \\\n --optional-config \\\n --remove-uuid \\\n --remove-config-hash\n" diff --git a/translations/config.export.single.yml b/translations/config.export.single.yml index 102cffe..0200c2c 100644 --- a/translations/config.export.single.yml +++ b/translations/config.export.single.yml @@ -1,7 +1,6 @@ description: 'Export a single configuration or a list of configurations as yml file(s).' -arguments: - name: 'Configuration name.' options: + name: 'Configuration name.' include-dependencies: 'Export dependencies of the configuration as well.' simple-configuration: 'Simple configuration' optional: 'Export config as an optional YAML configuration in your module' @@ -20,13 +19,9 @@ messages: invalid-config-name: 'Invalid config name, please select one of the list' config-exported: 'Configuration(s) exported successfully' examples: - - description: 'Provide config settings name to be exported' - execution: | - drupal config:export:single \ - --name=config.settings.name - - description: 'if uuid and/or config hashes will be removed.' - execution: | - drupal config:export:single \ - --name=config.settings.name \ - --remove-uuid \ - --remove-config-hash + - + description: 'Provide config settings name to be exported' + execution: "drupal config:export:single \\\n --name=config.settings.name" + - + description: 'if uuid and/or config hashes will be removed.' + execution: "drupal config:export:single \\\n --name=config.settings.name \\\n --remove-uuid \\\n --remove-config-hash\n" diff --git a/translations/config.export.view.yml b/translations/config.export.view.yml index 7883cee..a12ab65 100644 --- a/translations/config.export.view.yml +++ b/translations/config.export.view.yml @@ -7,18 +7,22 @@ questions: view: 'View to be exported' optional-config: 'Export view in module as an optional configuration' include-module-dependencies: 'Include view module dependencies in module info YAML file' + remove-uuid: 'The view to be exported without uuid key.' + remove-config-hash: 'The view to be exported without the default site hash key.' arguments: view-id: 'View ID' options: optional-config: 'Export view as an optional YAML configuration in your module' include-module-dependencies: 'Include module dependencies in module info YAML file' + remove-uuid: 'If set, the configuration will be exported without uuid key.' + remove-config-hash: 'If set, the configuration will be exported without the default site hash key.' examples: - - description: 'Provide a view id' - execution: drupal config:export:view viewid - - description: 'You can provide the interactive values like parameter.' - execution: | - drupal config:export:view viewid \ - --module="modulename" \ - --optional-config \ - --include-module-dependencies - + - + description: 'Provide a view id' + execution: 'drupal config:export:view viewid' + - + description: 'You can provide the interactive values like parameter.' + execution: "drupal config:export:view viewid \\\n --module=\"modulename\" \\\n --optional-config \\\n --include-module-dependencies\n" + - + description: 'Export as config for the provided module, updating the module''s info.yml with any module dependencies from the view.' + execution: "drupal config:export:view viewid \\\n --module=\"modulename\" \\\n --optional-config \\\n --include-module-dependencies" diff --git a/translations/config.export.yml b/translations/config.export.yml index 66f8328..9627253 100644 --- a/translations/config.export.yml +++ b/translations/config.export.yml @@ -4,19 +4,15 @@ options: tar: 'If set, the configuration will be exported to an archive file.' remove-uuid: 'If set, the configuration will be exported without uuid key.' remove-config-hash: 'If set, the configuration will be exported without the default site hash key.' +questions: + directory: 'Enter the directory name to save the configuration files.' messages: directory: 'The configuration was exported at "%s"' error: 'An error occurred while creating your directory at "%s"' examples: - - description: 'Optional you can add the path to export' - execution: | - drupal config:export \ - --directory="path/to/export" - - description: 'If export will be in a compressed file and/or if uuid and config hashes will be removed.' - execution: | - drupal config:export \ - --directory="path/to/export" \ - --tar \ - --remove-uuid \ - --remove-config-hash - + - + description: 'Optional you can add the path to export' + execution: "drupal config:export \\\n --directory=\"path/to/export\"\n" + - + description: 'If export will be in a compressed file and/or if uuid and config hashes will be removed.' + execution: "drupal config:export \\\n --directory=\"path/to/export\" \\\n --tar \\\n --remove-uuid \\\n --remove-config-hash\n" diff --git a/translations/config.import.single.yml b/translations/config.import.single.yml index 98df609..8811854 100644 --- a/translations/config.import.single.yml +++ b/translations/config.import.single.yml @@ -10,12 +10,9 @@ messages: empty-value: 'Value can not be empty' success: 'Configuration(s) "%s", has been imported successfully.' examples: - - description: 'Providing a file option using full path.' - execution: | - drupal config:import:single \ - --file="/path/to/file/block.block.default_block.yml" - - description: 'Providing file and directory options' - execution: | - drupal config:import:single \ - --file="block.block.default_block.yml" \ - --directory="/path/to/directory" + - + description: 'Providing a file option using full path.' + execution: "drupal config:import:single \\\n --file=\"/path/to/file/block.block.default_block.yml\"\n" + - + description: 'Providing file and directory options' + execution: "drupal config:import:single \\\n --file=\"block.block.default_block.yml\" \\\n --directory=\"/path/to/directory\"\n" diff --git a/translations/config.import.yml b/translations/config.import.yml index 30e1a88..488733e 100644 --- a/translations/config.import.yml +++ b/translations/config.import.yml @@ -3,6 +3,9 @@ options: file: 'Path to an archive file of configuration to import.' directory: 'Path to a directory of configuration to import.' remove-files: 'Remove files after synchronization.' + skip-uuid: 'Skip uuid from files' +questions: + directory: 'Enter the directory name to import the configuration files.' messages: config_files_imported: 'List of config files.' imported: 'Configuration imported successfully.' @@ -10,12 +13,9 @@ messages: already-imported: 'Another request may be synchronizing configuration already.' nothing-to-do: 'There are no changes to import.' examples: - - description: 'Provide a configuration file' - execution: | - drupal config:import \ - --file=/path/to/config/file - - description: 'Provide a configuration directory' - execution: | - drupal config:import \ - --directory=/path/to/config/dir - + - + description: 'Provide a configuration file' + execution: "drupal config:import \\\n --file=/path/to/config/file\n" + - + description: 'Provide a configuration directory' + execution: "drupal config:import \\\n --directory=/path/to/config/dir\n" diff --git a/translations/config.override.yml b/translations/config.override.yml index 94d0e37..fecf9ec 100644 --- a/translations/config.override.yml +++ b/translations/config.override.yml @@ -5,15 +5,19 @@ questions: value: 'Enter the configuration value' arguments: name: 'Configuration name' - key: 'Key' - value: 'Value' + key: Key + value: Value +options: + key: Key + value: Value messages: configuration: 'Configuration name' configuration-key: 'Configuration key' original: 'Original Value' updated: 'Override Value' invalid-name: 'Config object "%s" does not exist.' + invalid-config-file: 'Config file does not exist.' examples: - - description: 'Set the Contact module flood limit to 10.' - execution: 'drupal config:override contact.settings flood.limit 10' - + - + description: 'Set the Contact module flood limit to 10.' + execution: 'drupal config:override contact.settings flood.limit 10' diff --git a/translations/config.validate.yml b/translations/config.validate.yml index b34ac21..4a85ffc 100644 --- a/translations/config.validate.yml +++ b/translations/config.validate.yml @@ -1,10 +1,10 @@ description: 'Validate a drupal config against its schema' -options: {} -arguments: {} +options: { } +arguments: { } messages: success: 'Config was successfully validated' no-conf: 'Config with this name does not exist' examples: - - description: 'Provide the configuration name.' - execution: 'drupal config:validate configuration.name' - + - + description: 'Provide the configuration name.' + execution: 'drupal config:validate configuration.name' diff --git a/translations/create.comments.yml b/translations/create.comments.yml index f3a7a65..fc7920a 100644 --- a/translations/create.comments.yml +++ b/translations/create.comments.yml @@ -2,7 +2,7 @@ description: 'Create dummy comments for your Drupal 8 application.' help: 'The create:comments command helps you create dummy comments.' welcome: 'Welcome to the Drupal comments generator' arguments: - node-id: 'Node ID where the comments will be created' + node-id: 'Node ID where the comments will be created' options: limit: 'How many comments would you like to create' title-words: 'Maximum number of words in comment titles' @@ -14,7 +14,7 @@ questions: title-words: 'Enter the maximum number of words in titles' time-range: 'How far back in time should the comments be dated?' time-ranges: - - 'Now' + - Now - '1 hour ago' - '1 day ago' - '1 week ago' @@ -24,18 +24,15 @@ messages: node-id: 'Node Id' comment-id: 'Comment Id' content-type: 'Content type' - title: 'Title' + title: Title created: 'Created Time' invalid-content-types: 'Content types "%s" are invalid' created-comments: 'Created "%s" comments successfully' error: 'Error creating comments: "%s"' examples: - - description: 'Provide the node id where the comments will be generated.' - execution: drupal create:comments node-id - - description: 'Provide number of comments to generate, max title words and time range.' - execution: | - drupal create:comments node-id \ - --limit="2" \ - --title-words="5" \ - --time-range="1" - + - + description: 'Provide the node id where the comments will be generated.' + execution: 'drupal create:comments node-id' + - + description: 'Provide number of comments to generate, max title words and time range.' + execution: "drupal create:comments node-id \\\n --limit=\"2\" \\\n --title-words=\"5\" \\\n --time-range=\"1\"\n" diff --git a/translations/create.nodes.yml b/translations/create.nodes.yml index 34cdc26..d67015c 100644 --- a/translations/create.nodes.yml +++ b/translations/create.nodes.yml @@ -2,39 +2,37 @@ description: 'Create dummy nodes for your Drupal 8 application.' help: 'The create:nodes command helps you create dummy nodes.' welcome: 'Welcome to the Drupal nodes generator' arguments: - content-types: 'Content type(s) to be used in node creation' + content-types: 'Content type(s) to be used in node creation' options: limit: 'How many nodes would you like to create' title-words: 'Maximum number of words in node titles' time-range: 'How far back in time should the nodes be dated' + revision: 'Create revisions' questions: content-type: 'Select content type(s) to be used on node creation' limit: 'Enter how many nodes would you like to generate' title-words: 'Enter the maximum number of words in titles' time-range: 'How far back in time should the nodes be dated?' time-ranges: - - 'Now' + - Now - '1 hour ago' - '1 day ago' - '1 week ago' - '1 month ago' - '1 year ago' + revision: 'Do you want to add revisions?' messages: node-id: 'Node Id' content-type: 'Content type' - title: 'Title' + title: Title created: 'Created Time' invalid-content-types: 'Content types "%s" are invalid' created-nodes: 'Created "%s" nodes successfully' error: 'Error creating nodes: "%s"' examples: - - description: 'Provide the content type name.' - execution: drupal create:nodes content-name - - description: 'Provide the limit of publications, limit of title words, time range and language.' - execution: | - drupal create:nodes content-name \ - --limit="5" \ - --title-words="5" \ - --time-range="1" \ - --language="und" - + - + description: 'Provide the content type name.' + execution: 'drupal create:nodes content-name' + - + description: 'Provide the limit of publications, limit of title words, time range and language.' + execution: "drupal create:nodes content-name \\\n --limit=\"5\" \\\n --title-words=\"5\" \\\n --time-range=\"1\" \\\n --language=\"und\"\n" diff --git a/translations/create.roles.yml b/translations/create.roles.yml index 7584c5d..ca12085 100644 --- a/translations/create.roles.yml +++ b/translations/create.roles.yml @@ -7,13 +7,13 @@ questions: limit: 'Enter how many roles would you like to create' messages: role-id: 'Role Id' - role-name: 'Rolename' + role-name: Rolename created-roles: 'Created "%s" roles successfully' error: 'Error creating roles: "%s"' examples: - - description: 'Provide roles.' - execution: drupal create:roles - - description: 'Provide the number of roles to create' - execution: | - drupal create:roles - + - + description: 'Provide roles.' + execution: 'drupal create:roles' + - + description: 'Provide the number of roles to create' + execution: "drupal create:roles\n" diff --git a/translations/create.terms.yml b/translations/create.terms.yml index be26f06..877df7a 100644 --- a/translations/create.terms.yml +++ b/translations/create.terms.yml @@ -2,7 +2,7 @@ description: 'Create dummy terms for your Drupal 8 application.' help: 'The create:terms command helps you create dummy terms.' welcome: 'Welcome to the Drupal terms creator' arguments: - vocabularies: 'Vocabulary(s) to be used in terms creation' + vocabularies: 'Vocabulary(s) to be used in terms creation' options: limit: 'How many terms would you like to create' name-words: 'Maximum number of words in term names' @@ -12,17 +12,15 @@ questions: name-words: 'Enter the maximum number of words in term names' messages: term-id: 'Term Id' - vocabulary: 'Vocabulary' - name: 'Name' + vocabulary: Vocabulary + name: Name invalid-vocabularies: 'Vocabulary(s) "%s" are invalid' created-terms: 'Created "%s" terms successfully' error: 'Error creating terms: "%s"' examples: - - description: 'Provide the vocabulary term name.' - execution: drupal create:terms vocabulary - - description: 'Provide the limit of terms to add and limit of title words.' - execution: | - drupal create:terms tags \ - --limit="10" \ - --name-words="5" - + - + description: 'Provide the vocabulary term name.' + execution: 'drupal create:terms vocabulary' + - + description: 'Provide the limit of terms to add and limit of title words.' + execution: "drupal create:terms tags \\\n --limit=\"10\" \\\n --name-words=\"5\"\n" diff --git a/translations/create.users.yml b/translations/create.users.yml index 3225da4..65ba8c0 100644 --- a/translations/create.users.yml +++ b/translations/create.users.yml @@ -2,7 +2,7 @@ description: 'Create dummy users for your Drupal 8 application.' help: 'The create:users command helps you create dummy users.' welcome: 'Welcome to the Drupal users generator' arguments: - roles: 'Role(s) to be used in user creation' + roles: 'Role(s) to be used in user creation' options: limit: 'How many users would you like to create' password: 'Password to be set to users created' @@ -13,7 +13,7 @@ questions: password: 'Enter the password to be set to users created' time-range: 'How far back in time should the users be dated?' time-ranges: - - 'Now' + - Now - '1 hour ago' - '1 day ago' - '1 week ago' @@ -21,18 +21,15 @@ questions: - '1 year ago' messages: user-id: 'User Id' - roles: 'Roles' - username: 'Username' + roles: Roles + username: Username created: 'Created Time' created-users: 'Created "%s" users successfully' error: 'Error creating users: "%s"' examples: - - description: 'Provide the user role.' - execution: drupal create:users role - - description: 'Provide the number of users to create, password and time range to create.' - execution: | - drupal create:users role \ - --limit="5" \ - --password="usersnewpassword" \ - --time-range="1" - + - + description: 'Provide the user role.' + execution: 'drupal create:users role' + - + description: 'Provide the number of users to create, password and time range to create.' + execution: "drupal create:users role \\\n --limit=\"5\" \\\n --password=\"usersnewpassword\" \\\n --time-range=\"1\"\n" diff --git a/translations/create.vocabularies.yml b/translations/create.vocabularies.yml index ca70cf4..81d85f4 100644 --- a/translations/create.vocabularies.yml +++ b/translations/create.vocabularies.yml @@ -9,13 +9,10 @@ questions: name-words: 'Enter the maximum number of words in vocabulary names' messages: vocabulary-id: 'Vocabulary Id' - name: 'Name' + name: Name created-terms: 'Created "%s" vocabularies successfully' error: 'Error creating vocabularies: "%s"' examples: - - description: 'Provide the number of vocabularies to create and maximum number of words in vocabulary names' - execution: | - drupal create:vocabularies \ - --limit="5" \ - --name-words="5" - + - + description: 'Provide the number of vocabularies to create and maximum number of words in vocabulary names' + execution: "drupal create:vocabularies \\\n --limit=\"5\" \\\n --name-words=\"5\"\n" diff --git a/translations/cron.execute.yml b/translations/cron.execute.yml index a4f2b78..338ee68 100644 --- a/translations/cron.execute.yml +++ b/translations/cron.execute.yml @@ -5,10 +5,9 @@ messages: success: 'All cron implementations requested were executed successfully' lock: 'Attempting to re-run cron while it is already running' examples: - - description: 'Execute the cron globally' - execution: | - drupal cron:execute - - description: 'Execute the cron on the specified module' - execution: | - drupal cron:execute \ - + - + description: 'Execute the cron globally' + execution: "drupal cron:execute\n" + - + description: 'Execute the cron on the specified module' + execution: "drupal cron:execute \\\n \n" diff --git a/translations/cron.release.yml b/translations/cron.release.yml index c7a8313..ff3a2d3 100644 --- a/translations/cron.release.yml +++ b/translations/cron.release.yml @@ -2,7 +2,6 @@ description: 'Release cron system lock to run cron again' messages: released: 'Cron lock was released successfully' examples: - - description: 'Execute the cron globally' - execution: | - drupal cron:execute - + - + description: 'Execute the cron globally' + execution: "drupal cron:execute\n" diff --git a/translations/database.add.yml b/translations/database.add.yml index 2fb04a1..6a33bd2 100644 --- a/translations/database.add.yml +++ b/translations/database.add.yml @@ -1,25 +1,22 @@ description: 'Add a database to settings.php' options: - database: 'The database name' - username: 'The database username' - password: 'The database password' - prefix: 'The database prefix' - host: 'The database host address' - port: 'The database host port' - driver: 'The database driver' + database: 'The database name' + username: 'The database username' + password: 'The database password' + prefix: 'The database prefix' + host: 'The database host address' + port: 'The database host port' + driver: 'The database driver' questions: - database: 'Enter the database name' - username: 'Enter the username to access the database' - password: 'Enter password for the database user' - prefix: 'Enter the database prefix' - host: 'Enter the database host address' - port: 'Enter the database host port' - driver: 'Enter the database driver' + database: 'Enter the database name' + username: 'Enter the username to access the database' + password: 'Enter password for the database user' + prefix: 'Enter the database prefix' + host: 'Enter the database host address' + port: 'Enter the database host port' + driver: 'Enter the database driver' error: 'Could not write the site settings file. Either run this command as sudo or temporarily change permissions to allow write access to settings.php.' examples: - - description: 'Add a database to the settings.php' - execution: | - drupal database:add \ - --database=DATABASE \ - --username=USERNAME \ - --password=PASSWORD + - + description: 'Add a database to the settings.php' + execution: "drupal database:add \\\n --database=DATABASE \\\n --username=USERNAME \\\n --password=PASSWORD\n" diff --git a/translations/database.client.yml b/translations/database.client.yml index b2c9a4b..6eb385d 100644 --- a/translations/database.client.yml +++ b/translations/database.client.yml @@ -1,9 +1,10 @@ description: 'Launch a DB client if it''s available' arguments: - database: "Database key from settings.php" + database: 'Database key from settings.php' + target: 'Database target from settings.php' messages: connection: 'Connection: "%s"' examples: - - description: 'Launch the default client or could launch another regarding the specification on the argument' - execution: | - drupal database:client + - + description: 'Launch the default client or could launch another regarding the specification on the argument' + execution: "drupal database:client \n" diff --git a/translations/database.connect.yml b/translations/database.connect.yml index 8b42502..2d4e53f 100644 --- a/translations/database.connect.yml +++ b/translations/database.connect.yml @@ -1,14 +1,13 @@ -description: "Shows DB connection" +description: 'Shows DB connection' arguments: - key: "Database key from settings.php" - target: "Database target from settings.php" + key: 'Database key from settings.php' + target: 'Database target from settings.php' messages: database-not-found: 'Database connection with key "%s" and target "%s" info wasn''t found' database-not-supported: 'Database type "%s" is not supported yet' database-client-not-found: 'Database client "%s" wasn''t found' connection: 'Connection: "%s"' examples: - - description: 'Connects to an specified database with key and target, or if no arguments default key and default target will be passed' - execution: | - drupal database:connect \ - + - + description: 'Connects to an specified database with key and target, or if no arguments default key and default target will be passed' + execution: "drupal database:connect \\\n \n" diff --git a/translations/database.drop.yml b/translations/database.drop.yml index adf64b1..35b677d 100644 --- a/translations/database.drop.yml +++ b/translations/database.drop.yml @@ -1,15 +1,14 @@ description: 'Drop all tables in a given database.' help: 'The database:drop command helps you drop database tables.' arguments: - database: 'Database key from settings.php' - target: 'Database target from settings.php' + database: 'Database key from settings.php' + target: 'Database target from settings.php' question: drop-tables: 'Confirm you really want to drop all tables in the database "%s"?' messages: - table: 'Table' + table: Table table-drop: 'Drop "%s" tables successfully' examples: - - description: 'Drop the tables on the database specified on the argument' - execution: | - drupal database:drop \ - + - + description: 'Drop the tables on the database specified on the argument' + execution: "drupal database:drop \\\n \n" diff --git a/translations/database.dump.yml b/translations/database.dump.yml index 4abeb0a..e90f252 100644 --- a/translations/database.dump.yml +++ b/translations/database.dump.yml @@ -1,17 +1,17 @@ description: 'Dump structure and contents of a database' arguments: - database: 'Database key from settings.php' + database: 'Database key from settings.php' + target: 'Database target from settings.php' options: - file: 'The filename for your database backup' - gz: 'Pass this option if you want the sql result file gzipped' + file: 'The filename for your database backup' + gz: 'Pass this option if you want the sql result file gzipped' + exclude-cache: 'Pass this option if you want to exclude cache tables.' messages: success: 'Database exported to:' examples: - - description: 'Dump default database or the one specified on the argument' - execution: | - drupal database:dump \ - - - description: 'Dump in gz compressed format' - execution: | - drupal database:dump \ - --gz \ No newline at end of file + - + description: 'Dump default database or the one specified on the argument' + execution: "drupal database:dump \\\n \n" + - + description: 'Dump in gz compressed format' + execution: "drupal database:dump \\\n --gz" diff --git a/translations/database.log.clear.yml b/translations/database.log.clear.yml index a5812dc..ebb1106 100644 --- a/translations/database.log.clear.yml +++ b/translations/database.log.clear.yml @@ -10,13 +10,9 @@ messages: clear-error: 'Clear process fail, please check used filters' clear-sucess: 'Clear of events was successfully' examples: - - description: 'Clear the database log from DBLog table' - execution: | - drupal database:log:clear \ - - - description: 'Clear the database log from DBLog table using filters' - execution: | - drupal database:log:clear \ - \ - --type=TYPE \ - --severity=SEVERITY \ No newline at end of file + - + description: 'Clear the database log from DBLog table' + execution: "drupal database:log:clear \\\n \n" + - + description: 'Clear the database log from DBLog table using filters' + execution: "drupal database:log:clear \\\n \\\n --type=TYPE \\\n --severity=SEVERITY" diff --git a/translations/database.log.common.yml b/translations/database.log.common.yml index a0afaf3..46aca72 100644 --- a/translations/database.log.common.yml +++ b/translations/database.log.common.yml @@ -9,4 +9,5 @@ messages: message: Message user: User severity: Severity - invalid-severity: 'Severity type is invalid, filter was ignored' \ No newline at end of file + invalid-severity: 'Severity type is invalid, filter was ignored' + user-deleted: 'User has been deleted' diff --git a/translations/database.log.poll.yml b/translations/database.log.poll.yml index d7d80c6..d9185b6 100644 --- a/translations/database.log.poll.yml +++ b/translations/database.log.poll.yml @@ -2,13 +2,8 @@ description: 'Poll the watchdog and print new log entries every x seconds' arguments: duration: 'Duration in seconds which to sleep between database reads' messages: - warning: | - Do not use in production environments - As this script blocks you are advised to only run it on vm's with multiple cores for performance reasons - Stop this polling mechanism before you clean/truncate the watchdog table! - Quit with ^C + warning: "Do not use in production environments\nAs this script blocks you are advised to only run it on vm's with multiple cores for performance reasons\nStop this polling mechanism before you clean/truncate the watchdog table!\nQuit with ^C\n" examples: - - description: 'Print the log entries on screen every x seconds' - execution: | - drupal database:log:poll \ - 100 + - + description: 'Print the log entries on screen every x seconds' + execution: "drupal database:log:poll \\\n 100\n" diff --git a/translations/database.query.yml b/translations/database.query.yml index 4e010a3..273b067 100644 --- a/translations/database.query.yml +++ b/translations/database.query.yml @@ -2,6 +2,7 @@ description: 'Executes a SQL statement directly as argument' arguments: query: 'The SQL statement to execute' database: 'Database key from settings.php' + target: 'Database target from settings.php' options: quick: 'Do not cache each query result, print each row as it is received' debug: 'Prints debugging information and memory and CPU usage statistics when the program exits' @@ -14,6 +15,6 @@ messages: connection: 'Connection: "%s"' help: 'First argument should be the SQL statement. Second argument could be the name of the affected database.' examples: - - description: 'Send a database query' - execution: | - drupal database:query 'select * from node limit 0,1' + - + description: 'Send a database query' + execution: "drupal database:query 'select * from node limit 0,1'\n" diff --git a/translations/database.restore.yml b/translations/database.restore.yml index b11d5f2..1d7ed28 100644 --- a/translations/database.restore.yml +++ b/translations/database.restore.yml @@ -1,14 +1,14 @@ description: 'Restore structure and contents of a database.' arguments: - database: 'Database key from settings.php' + database: 'Database key from settings.php' + target: 'Database target from settings.php' options: - file: 'The filename for your database backup file. If using a .sql.gz file, the gunzip command needs to be installed.' + file: 'The filename for your database backup file. If using a .sql.gz file, the gunzip command needs to be installed.' messages: success: 'Database imported from:' no-file: 'Missing file option' help: 'Restore structure and contents of a database.' examples: - - description: 'Restore the database file dump to the database default or another one specified' - execution: | - drupal database:restore \ - --file='/srv/dump/db.sql' + - + description: 'Restore the database file dump to the database default or another one specified' + execution: "drupal database:restore \\\n --file='/srv/dump/db.sql'\n" diff --git a/translations/debug.breakpoints.yml b/translations/debug.breakpoints.yml index e88c54f..27eb105 100644 --- a/translations/debug.breakpoints.yml +++ b/translations/debug.breakpoints.yml @@ -1,12 +1,9 @@ description: 'Displays breakpoints available in application' options: - group-name: 'Enter Breakpoint Group Name' + group-name: 'Enter Breakpoint Group Name' messages: - name: 'Extensions with breakpoints' + name: 'Extensions with breakpoints' examples: - - description: 'Provide a group name.' - execution: drupal debug:breakpoints bartik -examples: - - description: 'Displays the breakpoints available on the site' - execution: | - drupal debug:breakpoints + - + description: 'Provide a group name.' + execution: 'drupal debug:breakpoints bartik' diff --git a/translations/debug.cache.context.yml b/translations/debug.cache.context.yml index be9ec82..eb7963e 100644 --- a/translations/debug.cache.context.yml +++ b/translations/debug.cache.context.yml @@ -1,9 +1,9 @@ description: 'Displays current cache context for the application.' messages: code: 'Context ID' - label: 'Label' + label: Label class: 'Class path' examples: - - description: 'Displays cache context' - execution: | - drupal debug:cache:context + - + description: 'Displays cache context' + execution: "drupal debug:cache:context\n" diff --git a/translations/debug.chain.yml b/translations/debug.chain.yml index a74e31d..4ad5149 100644 --- a/translations/debug.chain.yml +++ b/translations/debug.chain.yml @@ -1,6 +1,6 @@ description: 'List available chain files.' messages: - directory: 'Directory' + directory: Directory file: 'File name.' command: 'Command name.' no-files: 'No chain files found.' diff --git a/translations/debug.config.settings.yml b/translations/debug.config.settings.yml index 34087fb..ce8d01b 100644 --- a/translations/debug.config.settings.yml +++ b/translations/debug.config.settings.yml @@ -4,6 +4,6 @@ welcome: 'Welcome to the Drupal Config Settings Debug command' messages: current: 'Current Key:value on settings file' examples: - - description: 'Displays key:value as per the settings file' - execution: | - drupal debug:config:settings + - + description: 'Displays key:value as per the settings file' + execution: "drupal debug:config:settings\n" diff --git a/translations/debug.config.validate.yml b/translations/debug.config.validate.yml index e6d78eb..5d28032 100644 --- a/translations/debug.config.validate.yml +++ b/translations/debug.config.validate.yml @@ -1,14 +1,12 @@ description: 'Validate a schema implementation before a module is installed.' help: 'Helper function to validate a schema implementation before a module is installed. Specify the config and the schema file paths as arguments and validation will be run against them, making schema easier to debug without time consuming installs' -options: {} -arguments: {} +options: { } +arguments: { } messages: noConfFile: 'Config file at the specified path does not exist' noConfSchema: 'Config schema at the specified path does not exist' noSchemaName: 'Could not find schema definition in schema file. Using definition name:' examples: - - description: 'Validates a schema' - execution: | - drupal debug:config:validate \ - /path/to/file \ - /path/to/schema-filepath + - + description: 'Validates a schema' + execution: "drupal debug:config:validate \\\n /path/to/file \\\n /path/to/schema-filepath\n" diff --git a/translations/debug.config.yml b/translations/debug.config.yml index d471355..2dc9b08 100644 --- a/translations/debug.config.yml +++ b/translations/debug.config.yml @@ -5,13 +5,16 @@ options: show-overridden: 'Show overridden configurations.' errors: not-exists: 'The configuration "%s" does not exist.' - examples: - - description: 'List all configuration object names.' - execution: 'drupal debug:config' - - description: 'Display system site configurations values.' - execution: 'drupal debug:config system.site' - - description: 'List all system configuration names.' - execution: 'drupal debug:config | grep system' - - description: 'List all configuration including overridden values.' - execution: 'drupal debug:config --show-overridden' + - + description: 'List all configuration object names.' + execution: 'drupal debug:config' + - + description: 'Display system site configurations values.' + execution: 'drupal debug:config system.site' + - + description: 'List all system configuration names.' + execution: 'drupal debug:config | grep system' + - + description: 'List all configuration including overridden values.' + execution: 'drupal debug:config --show-overridden' diff --git a/translations/debug.container.yml b/translations/debug.container.yml index 9a2e740..f0f6117 100644 --- a/translations/debug.container.yml +++ b/translations/debug.container.yml @@ -4,22 +4,22 @@ arguments: method: 'Method name.' arguments: 'Array of Arguments in CSV or JSON format.' options: - tag: 'Service tag ' + tag: 'Service tag ' messages: service-id: 'Service ID' class-name: 'Class Name' - service: 'Service' - class: 'Class' - interface: 'Interface(s)' + service: Service + class: Class + interface: Interface(s) parent: 'Parent class' - variables: 'Variables' - methods: 'Methods' - arguments: 'Arguments' - method: 'Method' - return: 'Return' + variables: Variables + methods: Methods + arguments: Arguments + method: Method + return: Return errors: method-not-exists: 'This method doesn''t exists in this service.' examples: - - description: 'Displays the views.views_data_helper services' - execution: | - drupal debug:container views.views_data_helper + - + description: 'Displays the views.views_data_helper services' + execution: "drupal debug:container views.views_data_helper\n" diff --git a/translations/debug.cron.yml b/translations/debug.cron.yml index cf931e6..bc84dfa 100644 --- a/translations/debug.cron.yml +++ b/translations/debug.cron.yml @@ -3,6 +3,6 @@ messages: module-list: 'Modules implementing a cron method' module: Module examples: - - description: 'This will show a list with modules implementing the cron hook' - execution: | - drupal debug:cron + - + description: 'This will show a list with modules implementing the cron hook' + execution: "drupal debug:cron\n" diff --git a/translations/debug.database.log.yml b/translations/debug.database.log.yml index fb23aaf..3dfbb34 100644 --- a/translations/debug.database.log.yml +++ b/translations/debug.database.log.yml @@ -1,17 +1,17 @@ description: 'Displays current log events for the application' arguments: - event-id: 'DBLog event ID' + event-id: 'DBLog event ID' options: - asc: 'List events in ascending order' - limit: 'Limit results to a specific number' - offset: 'Starting point of a limit' - yml: 'Print in a yml style' + asc: 'List events in ascending order' + limit: 'Limit results to a specific number' + offset: 'Starting point of a limit' + yml: 'Print in a yml style' messages: - not-found: 'DBLog event "%s" wasn''t found' + not-found: 'DBLog event "%s" wasn''t found' examples: - - description: 'List all the entries on the log' - execution: | - drupal debug:database:log - - description: 'List specific log entry by Event ID' - execution: | - drupal debug:database:log 21228 + - + description: 'List all the entries on the log' + execution: "drupal debug:database:log\n" + - + description: 'List specific log entry by Event ID' + execution: "drupal debug:database:log 21228\n" diff --git a/translations/debug.database.table.yml b/translations/debug.database.table.yml index 8258c29..c83a84c 100644 --- a/translations/debug.database.table.yml +++ b/translations/debug.database.table.yml @@ -1,18 +1,18 @@ description: 'Show all tables in a given database.' help: 'The debug:database:table command helps you debug database tables.' arguments: - table: 'Table to debug' + table: 'Table to debug' options: - database: 'Database key from settings.php' + database: 'Database key from settings.php' messages: - table-show: 'Showing tables for "%s" database' - table: 'Table' - column: 'Column' - type: 'Type' + table-show: 'Showing tables for "%s" database' + table: Table + column: Column + type: Type examples: - - description: 'Show all tables in a database' - execution: | - drupal debug:database:table - - description: 'Show fields in the node table or another specified in the argument' - execution: | - drupal debug:database:table node + - + description: 'Show all tables in a database' + execution: "drupal debug:database:table\n" + - + description: 'Show fields in the node table or another specified in the argument' + execution: "drupal debug:database:table node\n" diff --git a/translations/debug.entity.yml b/translations/debug.entity.yml index f217073..07091c5 100644 --- a/translations/debug.entity.yml +++ b/translations/debug.entity.yml @@ -1,12 +1,12 @@ description: 'Debug entities available in the system' help: 'The debug:entity command helps get a list of entities.' -arguments: -questions: -messages: +arguments: null +questions: null +messages: null table-headers: - entity-name: 'Entity name' - entity-type: 'Entity type' + entity-name: 'Entity name' + entity-type: 'Entity type' examples: - - description: 'Displays the available entities' - execution: | - drupal debug:entity + - + description: 'Displays the available entities' + execution: "drupal debug:entity\n" diff --git a/translations/debug.event.yml b/translations/debug.event.yml index e9197b3..9459d19 100644 --- a/translations/debug.event.yml +++ b/translations/debug.event.yml @@ -1,16 +1,16 @@ description: 'Displays current events ' help: 'The debug:event command helps you debug events.' arguments: - event: 'Event to debug' + event: 'Event to debug' messages: - event: Event Name - class: 'Class' - method: 'Method' - no-events: 'This event does not exist, try to execute command: debug:event' + event: 'Event Name' + class: Class + method: Method + no-events: 'This event does not exist, try to execute command: debug:event' examples: - - description: 'List all the events that could be debugged' - execution: | - drupal debug:evet - - description: 'Show the information for the kernel.request event' - execution: | - drupal debug:event kernel.request \ No newline at end of file + - + description: 'List all the events that could be debugged' + execution: "drupal debug:evet\n" + - + description: 'Show the information for the kernel.request event' + execution: "drupal debug:event kernel.request\n" diff --git a/translations/debug.features.yml b/translations/debug.features.yml index 5ef07c5..b11465f 100644 --- a/translations/debug.features.yml +++ b/translations/debug.features.yml @@ -1,11 +1,10 @@ description: 'List registered features.' help: 'List registered features.' arguments: - bundle: 'Bundle name' + bundle: 'Bundle name' messages: - bundle: 'Bundle' - name: 'Name' - machine-name: 'Machine Name' - status: 'Status' - state: 'State' - + bundle: Bundle + name: Name + machine-name: 'Machine Name' + status: Status + state: State diff --git a/translations/debug.image.styles.yml b/translations/debug.image.styles.yml index 0aff919..b48962a 100644 --- a/translations/debug.image.styles.yml +++ b/translations/debug.image.styles.yml @@ -1,9 +1,9 @@ description: 'List image styles on the site' messages: styles-list: 'Image Styles defined in the site' - styles-label: 'Label' + styles-label: Label styles-name: 'Machine Name' examples: - - description: 'List all images styles on the site' - execution: | - drupal debug:image:styles + - + description: 'List all images styles on the site' + execution: "drupal debug:image:styles\n" diff --git a/translations/debug.libraries.yml b/translations/debug.libraries.yml index c431b65..351ee8d 100644 --- a/translations/debug.libraries.yml +++ b/translations/debug.libraries.yml @@ -1,17 +1,17 @@ description: 'Displays libraries available in application' options: - name: 'Extension or Library Name' + name: 'Extension or Library Name' messages: - extension: 'Extension' - library: 'Library' - info: 'Library Information' + extension: Extension + library: Library + info: 'Library Information' examples: - - description: 'List all extensions with libraries' - execution: | - drupal debug:libraries - - description: 'List block extension libraries' - execution: | - drupal debug:libraries block - - description: 'List block/drupal.block library' - execution: | - drupal debug:libraries block/drupal.block + - + description: 'List all extensions with libraries' + execution: "drupal debug:libraries\n" + - + description: 'List block extension libraries' + execution: "drupal debug:libraries block\n" + - + description: 'List block/drupal.block library' + execution: "drupal debug:libraries block/drupal.block\n" diff --git a/translations/debug.migrate.yml b/translations/debug.migrate.yml index 779730f..c55feea 100644 --- a/translations/debug.migrate.yml +++ b/translations/debug.migrate.yml @@ -7,6 +7,6 @@ messages: no-migrations: 'There aren''t migrations available try to execute command: migrate:setup:migrations' tags: Tags examples: - - description: 'Displays current migration' - execution: | - drupal debug:migrate + - + description: 'Displays current migration' + execution: "drupal debug:migrate\n" diff --git a/translations/debug.module.yml b/translations/debug.module.yml index 034d88a..2a075ed 100644 --- a/translations/debug.module.yml +++ b/translations/debug.module.yml @@ -18,7 +18,9 @@ messages: total-daily: 'Daily installs' no-results: 'Module "%s" was not found in the repository' examples: - - description: 'Display all installed modules' - execution: 'drupal mod --status=installed' - - description: 'Display all installed and no core modules' - execution: 'drupal mod --status=installed --type=no-core' + - + description: 'Display all installed modules' + execution: 'drupal mod --status=installed' + - + description: 'Display all installed and no core modules' + execution: 'drupal mod --status=installed --type=no-core' diff --git a/translations/debug.multisite.yml b/translations/debug.multisite.yml index 4e1fbb4..d578455 100644 --- a/translations/debug.multisite.yml +++ b/translations/debug.multisite.yml @@ -1,11 +1,11 @@ description: 'List all multi-sites available in system' help: 'The debug:multisite list all known multi-sites.' messages: - no-multisites: 'No multi-sites configured' - site: 'Site' - directory: 'Directory' - site-format: 'Sites are written using the format: ..' + no-multisites: 'No multi-sites configured' + site: Site + directory: Directory + site-format: 'Sites are written using the format: ..' examples: - - description: 'Displays multi-site information' - execution: | - drupal debug:multisite + - + description: 'Displays multi-site information' + execution: "drupal debug:multisite\n" diff --git a/translations/debug.permission.yml b/translations/debug.permission.yml index aade16b..3350620 100644 --- a/translations/debug.permission.yml +++ b/translations/debug.permission.yml @@ -1,13 +1,5 @@ description: 'Displays all user permissions.' -help: | - Display all user permissions and also list all user permissions from a specific user role. - - List all user permissions: - drupal debug:permission - - List all user permissions from a user role - drupal debug:permission authenticated - +help: "Display all user permissions and also list all user permissions from a specific user role.\n\nList all user permissions:\ndrupal debug:permission\n\nList all user permissions from a user role\ndrupal debug:permission authenticated\n" arguments: role: 'User role' messages: @@ -15,8 +7,8 @@ messages: table-headers: permission-name: 'Permission name' permission-label: 'Permission Label' - permission-role: 'Role' + permission-role: Role examples: - - description: 'Displays all the permissions availables on the site' - execution: | - drupal debug:permission + - + description: 'Displays all the permissions availables on the site' + execution: "drupal debug:permission\n" diff --git a/translations/debug.plugin.yml b/translations/debug.plugin.yml index 8553725..49a78aa 100644 --- a/translations/debug.plugin.yml +++ b/translations/debug.plugin.yml @@ -1,17 +1,5 @@ description: 'Displays all plugin types.' -help: | - Display all plugin types, plugin instances of a specific type, or the definition for a specific plugin. - - List all plugin types: - drupal debug:plugin - - List all instances of the image effect plugin type: - drupal debug:plugin image.effect - - Show the definition for the image convert plugin: - drupal debug:plugin image.effect image_convert - - NOTE: Only plugin types exposed through services are supported. When developing a custom plugin type, expose it as a service by adding it to modulename.services.yml with the name "plugin.manager.PLUGIN_TYPE". +help: "Display all plugin types, plugin instances of a specific type, or the definition for a specific plugin.\n\nList all plugin types:\ndrupal debug:plugin\n\nList all instances of the image effect plugin type:\ndrupal debug:plugin image.effect\n\nShow the definition for the image convert plugin:\ndrupal debug:plugin image.effect image_convert\n\nNOTE: Only plugin types exposed through services are supported. When developing a custom plugin type, expose it as a service by adding it to modulename.services.yml with the name \"plugin.manager.PLUGIN_TYPE\".\n" arguments: type: 'Plugin type' id: 'Plugin ID' @@ -24,16 +12,16 @@ table-headers: plugin-type-class: 'Plugin manager class' plugin-id: 'Plugin ID' plugin-class: 'Plugin class' - definition-key: 'Key' - definition-value: 'Value' - setting: 'Setting' + definition-key: Key + definition-value: Value + setting: Setting examples: - - description: 'Displays a list with all the plugins on the current site' - execution: | - drupal debug:plugin - - description: 'Displays block plugin information' - execution: | - drupal debug:plugin block - - description: 'Displays block broken information' - execution: | - drupal debug:plugin block broken + - + description: 'Displays a list with all the plugins on the current site' + execution: 'drupal debug:plugin' + - + description: 'Displays block plugin information' + execution: 'drupal debug:plugin block' + - + description: 'Displays block broken information' + execution: "drupal debug:plugin block broken\n" diff --git a/translations/debug.queue.yml b/translations/debug.queue.yml index 667e352..ad93fb2 100644 --- a/translations/debug.queue.yml +++ b/translations/debug.queue.yml @@ -1,9 +1,9 @@ description: 'Displays the queues of your application' messages: - queue: 'Queue' - items: 'Items' - class: 'Class' + queue: Queue + items: Items + class: Class examples: - - description: 'Displays the queues of the application' - execution: | - drupal debug:queue + - + description: 'Displays the queues of the application' + execution: "drupal debug:queue\n" diff --git a/translations/debug.rest.yml b/translations/debug.rest.yml index 6c6f101..b22fa66 100644 --- a/translations/debug.rest.yml +++ b/translations/debug.rest.yml @@ -16,6 +16,6 @@ messages: supported-auth: 'Supported Authentication Providers' not-found: 'Rest resource "%s" not found' examples: - - description: 'Displays rest hooks' - execution: | - drupal debug:rest + - + description: 'Displays rest hooks' + execution: "drupal debug:rest\n" diff --git a/translations/debug.roles.yml b/translations/debug.roles.yml index b1bb15a..4507549 100644 --- a/translations/debug.roles.yml +++ b/translations/debug.roles.yml @@ -5,6 +5,6 @@ messages: role-id: 'Role ID' role-name: 'Role Name' examples: - - description: 'Roles list on the site' - execution: | - drupal debug:roles + - + description: 'Roles list on the site' + execution: "drupal debug:roles\n" diff --git a/translations/debug.router.yml b/translations/debug.router.yml index 3488391..8f4fca4 100644 --- a/translations/debug.router.yml +++ b/translations/debug.router.yml @@ -12,16 +12,18 @@ messages: requirements: Requirements options: Options examples: - - description: 'Displays current routes for the application' - execution: 'drupal rod' - - description: 'Displays details for the route user.page (/user)' - execution: 'drupal rod user.page' - - description: 'Shows the routes list on the site' - execution: | - drupal debug:router - - description: 'Display information on the user.login' - execution: | - drupal debug:router user.login - - description: 'Display information for the routes by pattern (/user/login)' - execution: | - drupal debug:router --pattern=/user/login \ No newline at end of file + - + description: 'Displays current routes for the application' + execution: 'drupal rod' + - + description: 'Displays details for the route user.page (/user)' + execution: 'drupal rod user.page' + - + description: 'Shows the routes list on the site' + execution: 'drupal debug:router' + - + description: 'Display information on the user.login' + execution: 'drupal debug:router user.login' + - + description: 'Display information for the routes by pattern (/user/login)' + execution: 'drupal debug:router --pattern=/user/login' diff --git a/translations/debug.settings.yml b/translations/debug.settings.yml index 725bf0f..b6a9605 100644 --- a/translations/debug.settings.yml +++ b/translations/debug.settings.yml @@ -4,6 +4,6 @@ messages: config-value: 'Config value' config-file: 'Config file' examples: - - description: 'List user Drupal Console settings.' - execution: | - drupal debug:settings + - + description: 'List user Drupal Console settings.' + execution: "drupal debug:settings\n" diff --git a/translations/debug.site.yml b/translations/debug.site.yml index e7f37b8..53869f0 100644 --- a/translations/debug.site.yml +++ b/translations/debug.site.yml @@ -1,20 +1,18 @@ description: 'List all known local and remote sites.' help: 'The debug:site list all known local and remote sites.' messages: - site: 'Site' - host: 'Host' - root: 'Root' - invalid-sites: 'No sites defined.' - invalid-sites-using: | - Using a site alias requires local configuration, more info at: - https://docs.drupalconsole.com/en/alias/using-site-alias.html - invalid-site: 'Invalid site name' - private-key: 'Error with private key' - connect-error: 'Error connecting to remote machine' + site: Site + host: Host + root: Root + invalid-sites: 'No sites defined.' + invalid-sites-using: "Using a site alias requires local configuration, more info at:\n https://docs.drupalconsole.com/en/alias/using-site-alias.html\n" + invalid-site: 'Invalid site name' + private-key: 'Error with private key' + connect-error: 'Error connecting to remote machine' options: - target: 'Target' - property: 'Property' + target: Target + property: Property examples: - - description: 'List all known local and remote sites.' - execution: | - drupal debug:site + - + description: 'List all known local and remote sites.' + execution: "drupal debug:site\n" diff --git a/translations/debug.state.yml b/translations/debug.state.yml index 9d995a2..f5d7b5c 100644 --- a/translations/debug.state.yml +++ b/translations/debug.state.yml @@ -1,13 +1,13 @@ description: 'Show the current State keys.' help: 'Show the current State keys.' arguments: - key: 'The State key to debug.' + key: 'The State key to debug.' messages: - key: 'The State key' + key: 'The State key' examples: - - description: 'List of the states on the site' - execution: | - drupal debug:state - - description: 'Displays a detail of the state install_task tok from the list of states' - execution: | - drupal debug:state install_task + - + description: 'List of the states on the site' + execution: "drupal debug:state\n" + - + description: 'Displays a detail of the state install_task tok from the list of states' + execution: "drupal debug:state install_task\n" diff --git a/translations/debug.test.yml b/translations/debug.test.yml index 3299674..a354375 100644 --- a/translations/debug.test.yml +++ b/translations/debug.test.yml @@ -15,6 +15,6 @@ messages: success-groups: 'All testing groups were listed sucessfully, use the group argument to filter Test unit by group i.e $ drupal debug:test Url' success-group: 'All test units for group "%s" were listed sucessfully' examples: - - description: '' - execution: | - drupal debug:test + - + description: '' + execution: "drupal debug:test\n" diff --git a/translations/debug.theme.keys.yml b/translations/debug.theme.keys.yml index 976ce00..1caecad 100644 --- a/translations/debug.theme.keys.yml +++ b/translations/debug.theme.keys.yml @@ -1,22 +1,15 @@ description: 'Displays all theme keys provided by hook_theme functions' -help: | - Display all theme keys, or the definition for a specific theme key. - - List all theme keys: - drupal debug:theme:keys - - Show the definition for the item_list theme key: - drupal debug:theme:keys item_list +help: "Display all theme keys, or the definition for a specific theme key.\n\nList all theme keys:\ndrupal debug:theme:keys\n\nShow the definition for the item_list theme key:\ndrupal debug:theme:keys item_list\n" arguments: - key: 'Key' + key: Key table-headers: - key: 'Key' + key: Key provider-type: 'Provider type' - provider: 'Provider' - value: 'Value' + provider: Provider + value: Value provider-types: - module: 'Module' + module: Module base-theme-engine: 'Base theme engine' base-theme: 'Base theme' theme-engine: 'Theme engine' - theme: 'Theme' + theme: Theme diff --git a/translations/debug.theme.yml b/translations/debug.theme.yml index fac0258..675c771 100644 --- a/translations/debug.theme.yml +++ b/translations/debug.theme.yml @@ -2,21 +2,21 @@ description: 'Displays current themes for the application' arguments: theme: 'Specific theme to debug' messages: - theme-id: 'Id' - theme-name: 'Name' - status: 'Status' - version: 'Version' - installed: 'Installed' - uninstalled: 'Uninstalled' + theme-id: Id + theme-name: Name + status: Status + version: Version + installed: Installed + uninstalled: Uninstalled default-theme: 'Default theme' - properties: 'Properties' - regions: 'Regions' + properties: Properties + regions: Regions invalid-theme: 'Theme "%s" is invalid' - theme-properties: 'Properties' + theme-properties: Properties examples: - - description: 'List of themes on the site' - execution: | - drupal debug:theme - - description: 'Bartik theme information' - execution: | - drupal debug:theme bartik \ No newline at end of file + - + description: 'List of themes on the site' + execution: 'drupal debug:theme' + - + description: 'Bartik theme information' + execution: 'drupal debug:theme bartik' diff --git a/translations/debug.update.composer.yml b/translations/debug.update.composer.yml new file mode 100644 index 0000000..da6b2ad --- /dev/null +++ b/translations/debug.update.composer.yml @@ -0,0 +1,13 @@ +description: 'Displays current updates available from the composer file' +options: + only-drupal: 'Show only drupal (modules/themes) updates' +messages: + description: Description + current-version: Version + latest-version: Latest + name: Name + composer-list: 'Composer with pending updates' +examples: + - + description: 'List of pending updates from composer' + execution: "drupal debug:update:composer\n" diff --git a/translations/debug.update.yml b/translations/debug.update.yml index 9ed7fc7..ac512a3 100644 --- a/translations/debug.update.yml +++ b/translations/debug.update.yml @@ -1,17 +1,17 @@ description: 'Displays current updates available for the application' messages: no-updates: 'No pending updates' - severity: 'Severity' - title: 'Title' - value: 'Value' - description: 'Description' + severity: Severity + title: Title + value: Value + description: Description requirements-error: 'The following requirement weren''t completed' module-list: 'Modules with pending updates' module-list-post-update: 'Modules with pending post updates' - module: 'Module' + module: Module update-n: 'Update N' post-update: 'Post update function' examples: - - description: 'List of pending updates' - execution: | - drupal debug:update + - + description: 'List of pending updates' + execution: "drupal debug:update\n" diff --git a/translations/debug.user.yml b/translations/debug.user.yml index 29cb406..46e35f2 100644 --- a/translations/debug.user.yml +++ b/translations/debug.user.yml @@ -12,10 +12,10 @@ questions: limit: 'Enter how many users would you like to show' messages: user-id: 'User ID' - username: 'Username' - roles: 'Roles' - status: 'Status' + username: Username + roles: Roles + status: Status examples: - - description: 'Users list on the site' - execution: | - drupal debug:user + - + description: 'Users list on the site' + execution: "drupal debug:user\n" diff --git a/translations/debug.views.plugins.yml b/translations/debug.views.plugins.yml index b3b9b42..85f1df2 100644 --- a/translations/debug.views.plugins.yml +++ b/translations/debug.views.plugins.yml @@ -2,11 +2,11 @@ description: 'Displays current views plugins for the application' arguments: type: 'Filter views plugins by type' messages: - type: 'Type' - name: 'Name' - provider: 'Provider' - views: 'Views' + type: Type + name: Name + provider: Provider + views: Views examples: - - description: 'List of views plugins' - execution: | - drupal debug:views:plugins + - + description: 'List of views plugins' + execution: "drupal debug:views:plugins\n" diff --git a/translations/debug.views.yml b/translations/debug.views.yml index 91b877e..8c92d41 100644 --- a/translations/debug.views.yml +++ b/translations/debug.views.yml @@ -17,6 +17,6 @@ messages: display-description: Description display-paths: Paths examples: - - description: 'List of views on the site' - execution: | - drupal debug:views + - + description: 'List of views on the site' + execution: "drupal debug:views\n" diff --git a/translations/devel.dumper.yml b/translations/devel.dumper.yml index e27a518..811a108 100644 --- a/translations/devel.dumper.yml +++ b/translations/devel.dumper.yml @@ -1,7 +1,7 @@ messages: - change-devel-dumper-plugin: 'Change the devel dumper plugin' - name-devel-dumper-plugin: 'Name of the devel dumper plugin' - devel-must-be-installed: 'Devel must be installed' - select-debug-dumper: 'Select a Debug Dumper' - dumper-not-exist: 'Dumper does not exist' - devel-dumper-set: 'Devel Dumper set to: "%s"' + change-devel-dumper-plugin: 'Change the devel dumper plugin' + name-devel-dumper-plugin: 'Name of the devel dumper plugin' + devel-must-be-installed: 'Devel must be installed' + select-debug-dumper: 'Select a Debug Dumper' + dumper-not-exist: 'Dumper does not exist' + devel-dumper-set: 'Devel Dumper set to: "%s"' diff --git a/translations/dotenv.init.yml b/translations/dotenv.init.yml index deec7ee..ea7cd46 100644 --- a/translations/dotenv.init.yml +++ b/translations/dotenv.init.yml @@ -1,38 +1,5 @@ description: 'Add support and required config to work with an .env file' messages: - template-env: | - This file is a "template" of which env vars need to be defined - for your application, use only on development stages. - Create real environment variables when deploying to production. - load-from-env: | - If not using real environment variables. - Make sure you add the dependency using composer - - Drupal 8.5 and up versions `composer require symfony/dotenv` - if (file_exists(dirname(DRUPAL_ROOT) . '/.env')) { - $dotenv = new \Symfony\Component\Dotenv\Dotenv(dirname(DRUPAL_ROOT)); - $dotenv->load(); - } - - Drupal 8.4 and minor versions `composer require vlucas/phpdotenv` - if (file_exists(dirname(DRUPAL_ROOT) . '/.env')) { - $dotenv = new \Dotenv\Dotenv(dirname(DRUPAL_ROOT)); - $dotenv->load(); - } - load-settings: | - # Load key/value settings - $settings_drupal = array_filter( - $_SERVER, - function($key) { - return strpos($key, 'SETTINGS_') === 0; - }, - ARRAY_FILTER_USE_KEY - ); - - # Set key/value settings - foreach ($settings_drupal as $name => $value) { - if (substr($name, 0, 9) === 'SETTINGS_') { - $key = strtolower(substr($name, 9)); - $settings['settings'][$key] = $value; - } - } + template-env: "This file is a \"template\" of which env vars need to be defined\nfor your application, use only on development stages.\nCreate real environment variables when deploying to production.\n" + load-from-env: "If not using real environment variables.\nMake sure you add the dependency using composer\n\nDrupal 8.5 and up versions `composer require symfony/dotenv`\nif (file_exists(dirname(DRUPAL_ROOT) . '/.env')) {\n $dotenv = new \\Symfony\\Component\\Dotenv\\Dotenv(dirname(DRUPAL_ROOT));\n $dotenv->load();\n}\n\nDrupal 8.4 and minor versions `composer require vlucas/phpdotenv`\nif (file_exists(dirname(DRUPAL_ROOT) . '/.env')) {\n $dotenv = new \\Dotenv\\Dotenv(dirname(DRUPAL_ROOT));\n $dotenv->load();\n}\n" + load-settings: "# Load key/value settings\n$settings_drupal = array_filter(\n $_SERVER,\n function($key) {\n return strpos($key, 'SETTINGS_') === 0;\n },\n ARRAY_FILTER_USE_KEY\n);\n\n# Set key/value settings\nforeach ($settings_drupal as $name => $value) {\n if (substr($name, 0, 9) === 'SETTINGS_') {\n $key = strtolower(substr($name, 9));\n $settings['settings'][$key] = $value;\n }\n}\n" diff --git a/translations/drush.yml b/translations/drush.yml index 7a398a9..78ab236 100644 --- a/translations/drush.yml +++ b/translations/drush.yml @@ -1,3 +1,3 @@ description: 'Drupal Console equivalents' messages: - not-found: 'Drush command not found' + not-found: 'Drush command not found' diff --git a/translations/entity.delete.yml b/translations/entity.delete.yml index d4fd13b..cec08df 100644 --- a/translations/entity.delete.yml +++ b/translations/entity.delete.yml @@ -1,19 +1,19 @@ description: 'Delete a specific entity' help: 'The entity:delete command helps you delete entities.' arguments: - entity-definition-id: 'Entity definition id' - entity-id: 'Entity ID to be deleted' + entity-definition-id: 'Entity definition id' + entity-id: 'Entity ID to be deleted' options: - all: 'Delete all entities of the given type.' + all: 'Delete all entities of the given type.' questions: - entity-type: 'Enter the Entity type' - entity-definition-id: 'Enter the Entity definitin id' - entity-id: 'Enter the Entity ID to be deleted' + entity-type: 'Enter the Entity type' + entity-definition-id: 'Enter the Entity definitin id' + entity-id: 'Enter the Entity ID to be deleted' messages: - confirm-delete-all: 'Do you want to delete all entities of type "%s" ("%d")?' - deleted: 'Entity "%s" with id "%s" was deleted successfully' - deleted-all: 'All entities of type "%s" ("%d") were deleted.' + confirm-delete-all: 'Do you want to delete all entities of type "%s" ("%d")?' + deleted: 'Entity "%s" with id "%s" was deleted successfully' + deleted-all: 'All entities of type "%s" ("%d") were deleted.' examples: - - description: 'Delete entity type content using node id' - execution: | - drupal entity:delete node 1 + - + description: 'Delete entity type content using node id' + execution: "drupal entity:delete node 1\n" diff --git a/translations/exec.yml b/translations/exec.yml index 9f4d52c..0d9da0e 100644 --- a/translations/exec.yml +++ b/translations/exec.yml @@ -1,13 +1,12 @@ description: 'Execute an external command.' arguments: - bin: 'Executable command.' + bin: 'Executable command.' options: - working-directory: 'The current working directory.' + working-directory: 'The current working directory.' messages: - success: 'Executed the command.' - invalid-bin: 'Error executing the command.' - missing-bin: 'Provide an executable command.' - binary-not-found: 'Unable to find the binary "%s" to execute.' - working-directory: 'Working directory' - executing-command: 'Executing command' - + success: 'Executed the command.' + invalid-bin: 'Error executing the command.' + missing-bin: 'Provide an executable command.' + binary-not-found: 'Unable to find the binary "%s" to execute.' + working-directory: 'Working directory' + executing-command: 'Executing command' diff --git a/translations/features.import.yml b/translations/features.import.yml index 1de3642..32eadb2 100644 --- a/translations/features.import.yml +++ b/translations/features.import.yml @@ -1,15 +1,15 @@ description: 'Import module config.' help: '' options: - bundle: 'Bundle name' + bundle: 'Bundle name' arguments: - packages: 'Package name' + packages: 'Package name' questions: - packages: 'Enter package name to import' + packages: 'Enter package name to import' messages: - no-packages: 'No packages available.' - not-available: 'Package "%s", not available.' - importing: 'Importing package "%s".' - uninstall: 'Package "%s" already installed.' - reverting: 'Reverting package "%s".' - nothing: 'Nothing to import.' + no-packages: 'No packages available.' + not-available: 'Package "%s", not available.' + importing: 'Importing package "%s".' + uninstall: 'Package "%s" already installed.' + reverting: 'Reverting package "%s".' + nothing: 'Nothing to import.' diff --git a/translations/generate.ajax.command.yml b/translations/generate.ajax.command.yml index 3983681..1aeb4dd 100644 --- a/translations/generate.ajax.command.yml +++ b/translations/generate.ajax.command.yml @@ -2,12 +2,12 @@ description: 'Generate & Register a custom ajax command' help: 'The generate:ajax:command command helps you generate a new custom ajax command.' welcome: 'Welcome to the Drupal Ajax generator' options: - module: 'The Module name.' - class: 'Ajax Class name' - method: 'Custom ajax method' - js-name: 'Custom javascript name' + module: 'The Module name.' + class: 'Ajax Class name' + method: 'Custom ajax method' + js-name: 'Custom javascript name' questions: - module: 'Enter the module name' - class: 'Enter the Ajax class name' - method: 'Enter the render method name' - js-name: 'Enter a custom javascript name' \ No newline at end of file + module: 'Enter the module name' + class: 'Enter the Ajax class name' + method: 'Enter the render method name' + js-name: 'Enter a custom javascript name' diff --git a/translations/generate.authentication.provider.yml b/translations/generate.authentication.provider.yml index a867018..6ffec22 100644 --- a/translations/generate.authentication.provider.yml +++ b/translations/generate.authentication.provider.yml @@ -2,17 +2,14 @@ description: 'Generate an Authentication Provider' help: 'The generate:authentication:provider command helps you generate a new Authentication Provider.' welcome: 'Welcome to the Drupal Authentication Provider generator' options: - module: 'The Module name.' - class: 'Authentication Provider class' - provider-id: 'Provider ID' + module: 'The Module name.' + class: 'Authentication Provider class' + provider-id: 'Provider ID' questions: - module: 'Enter the module name' - class: 'Enter the Authentication Provider class' - provider-id: 'Enter the Provider ID' + module: 'Enter the module name' + class: 'Enter the Authentication Provider class' + provider-id: 'Enter the Provider ID' examples: - - description: 'Generate an authentication provider specifying the module, the class and the provider id' - execution: | - drupal generate:authentication:provider \ - --module="modulename" \ - --class="DefaultAuthenticationProvider" \ - --provider-id="default_authentication_provider" + - + description: 'Generate an authentication provider specifying the module, the class and the provider id' + execution: "drupal generate:authentication:provider \\\n --module=\"modulename\" \\\n --class=\"DefaultAuthenticationProvider\" \\\n --provider-id=\"default_authentication_provider\"\n" diff --git a/translations/generate.breakpoint.yml b/translations/generate.breakpoint.yml index 9b79cbd..37b39d6 100644 --- a/translations/generate.breakpoint.yml +++ b/translations/generate.breakpoint.yml @@ -2,19 +2,17 @@ description: 'Generate breakpoint' help: 'The generate:breakpoint command helps you generates a new breakpoint' welcome: 'Welcome to the Drupal breakpoint generator' options: - theme: 'Theme name' - breakpoints: Breakpoints + theme: 'Theme name' + breakpoints: Breakpoints questions: - theme: 'Enter the theme name (i.e. classy, stable)' - breakpoint-name: 'Enter breakpoint name' - breakpoint-label: 'Enter breakpoint label' - breakpoint-media-query: 'Enter breakpoint media query' - breakpoint-weight: 'Enter breakpoint weight' - breakpoint-multipliers: 'Enter breakpoint multipliers' - breakpoint-add: 'Do you want to add another breakpoint?' + theme: 'Enter the theme name (i.e. classy, stable)' + breakpoint-name: 'Enter breakpoint name' + breakpoint-label: 'Enter breakpoint label' + breakpoint-media-query: 'Enter breakpoint media query' + breakpoint-weight: 'Enter breakpoint weight' + breakpoint-multipliers: 'Enter breakpoint multipliers' + breakpoint-add: 'Do you want to add another breakpoint?' examples: - - description: 'Generate a breakpoint specifying the theme, a breakpoint name, its label, the media query, its weight and multipliers' - execution: | - drupal generate:breakpoint \ - --theme="classy" \ - --breakpoints='"breakpoint_name":"narrow", "breakpoint_label":"narrow", "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)", "breakpoint_weight":"1", "breakpoint_multipliers":"1x"' \ No newline at end of file + - + description: 'Generate a breakpoint specifying the theme, a breakpoint name, its label, the media query, its weight and multipliers' + execution: "drupal generate:breakpoint \\\n --theme=\"classy\" \\\n --breakpoints='\"breakpoint_name\":\"narrow\", \"breakpoint_label\":\"narrow\", \"breakpoint_media_query\":\"all and (min-width: 560px) and (max-width: 850px)\", \"breakpoint_weight\":\"1\", \"breakpoint_multipliers\":\"1x\"'" diff --git a/translations/generate.cache.context.yml b/translations/generate.cache.context.yml index 6058d4a..5ad2784 100644 --- a/translations/generate.cache.context.yml +++ b/translations/generate.cache.context.yml @@ -2,17 +2,14 @@ description: 'Generate a cache context' help: 'The generate:cache:context command helps you generates a new cache context' welcome: 'Welcome to the Drupal Cache Context generator' options: - module: 'The Module name.' - name: 'The cache context name' - class: 'Cache context class name' + module: 'The Module name.' + name: 'The cache context name' + class: 'Cache context class name' questions: - module: 'Enter the module name' - name: 'Enter the cache context name' - class: 'Cache context class name' + module: 'Enter the module name' + name: 'Enter the cache context name' + class: 'Cache context class name' examples: - - description: 'Generate cache for a context specifying the module, the context name and its class' - execution: | - drupal generate:cache:context \ - --module="modulename" \ - --cache-context="ContextName" \ - --class="DefaultCacheContext" \ No newline at end of file + - + description: 'Generate cache for a context specifying the module, the context name and its class' + execution: "drupal generate:cache:context \\\n --module=\"modulename\" \\\n --cache-context=\"ContextName\" \\\n --class=\"DefaultCacheContext\"" diff --git a/translations/generate.command.yml b/translations/generate.command.yml index 7452034..0a80774 100644 --- a/translations/generate.command.yml +++ b/translations/generate.command.yml @@ -2,30 +2,27 @@ description: 'Generate commands for the console.' help: 'The generate:command command helps you generate a new command.' welcome: 'Welcome to the Drupal Command generator' options: - extension: 'The name of the Extension (that will contain the command).' - class: 'The Class that describes the command. (Must end with the word ''Command'').' - name: 'The Command name.' - interact: 'Add interact method.' - initialize: 'Add initialize method.' - container-aware: 'Is the command aware of the drupal site installation when executed?' - services: 'Load services from the container.' - generator: 'Add a Generator class for this command.' + extension: 'The name of the Extension (that will contain the command).' + extension-type: 'The type of the Extension (can be module, profile or theme).' + class: 'The Class that describes the command. (Must end with the word ''Command'').' + name: 'The Command name.' + interact: 'Add interact method.' + initialize: 'Add initialize method.' + container-aware: 'Is the command aware of the drupal site installation when executed?' + services: 'Load services from the container.' + generator: 'Add a Generator class for this command.' questions: - extension: 'Enter the extension name' - class: 'Enter the Command Class. (Must end with the word ''Command'').' - name: 'Enter the Command name.' - interact: 'Do you want to add the interact method?' - initialize: 'Do you want to add the initialize method?' - container-aware: 'Is the command aware of the drupal site installation when executed?' - services: 'Enter your service' - generator: 'Do you want to add a Generator class?.' + extension: 'Enter the extension name' + class: 'Enter the Command Class. (Must end with the word ''Command'').' + name: 'Enter the Command name.' + interact: 'Do you want to add the interact method?' + initialize: 'Do you want to add the initialize method?' + container-aware: 'Is the command aware of the drupal site installation when executed?' + services: 'Enter your service' + generator: 'Do you want to add a Generator class?.' messages: - title-not-empty: 'Title cannot be empty' + title-not-empty: 'Title cannot be empty' examples: - - description: 'Generate a command specifying the extension name and type, its class and the name.' - execution: | - drupal generate:command \ - --extension="ExtensionName" \ - --extension-type="module" \ - --class="DefaultCommand" \ - --name="CommandName" \ No newline at end of file + - + description: 'Generate a command specifying the extension name and type, its class and the name.' + execution: "drupal generate:command \\\n --extension=\"ExtensionName\" \\\n --extension-type=\"module\" \\\n --class=\"DefaultCommand\" \\\n --name=\"CommandName\"" diff --git a/translations/generate.composer.yml b/translations/generate.composer.yml index 32e425f..31ce664 100644 --- a/translations/generate.composer.yml +++ b/translations/generate.composer.yml @@ -2,57 +2,44 @@ description: 'Generate a composer.json file' help: 'The "%s" command helps you generate a new composer.json file' welcome: 'Welcome to the Drupal Composer file generator' options: - module: common.options.module - name: 'Package name' - type: 'Package type' - description: 'Package description' - keywords: 'Package keywords' - license: 'License' - homepage: 'Project homepage' - minimum-stability: 'Mininmal stability' - authors: 'Authors of the project' - support: 'Support channels' - required: 'Required packages' + module: common.options.module + name: 'Package name' + type: 'Package type' + description: 'Package description' + keywords: 'Package keywords' + license: License + homepage: 'Project homepage' + minimum-stability: 'Mininmal stability' + authors: 'Authors of the project' + support: 'Support channels' + required: 'Required packages' questions: - module: common.questions.module - name: 'Enter package name' - type: 'Enter package type' - description: 'Enter package description' - add-keywords: 'Do you want to add package keywords?' - keyword: 'Enter a keyword or press enter to continue' - license: 'Enter license information' - homepage: 'Enter project homepage' - minimum-stability: 'Enter mininmal stability (stable, dev, alpha, beta and RC)' - add-author: 'Do you want to add authors of the project?' - add-another-author: 'Do you want to add another authors of the project?' - author-name: 'Enter author name or press enter to skip it' - author-email: 'Enter author email or press enter to skip it' - author-homepage: 'Enter author homepage or press enter to skip it' - author-role: 'Enter author role or press enter to skip it' - add-support: 'Do you want to add information about support channels?' - add-another-support: 'Do you want to add another information about support channels?' - support-channel: 'Enter support channel (email, issues, forum, wiki, irc, source, docs, rss)' - support-value: 'Enter support channel value' - add-required: 'Do you want to add required packages for the project?' - add-another-required: 'Do you want to add another required packages for the project?' - required-name: 'Enter required package name' - required-version: 'Enter required package version' + module: common.questions.module + name: 'Enter package name' + type: 'Enter package type' + description: 'Enter package description' + add-keywords: 'Do you want to add package keywords?' + keyword: 'Enter a keyword or press enter to continue' + license: 'Enter license information' + homepage: 'Enter project homepage' + minimum-stability: 'Enter mininmal stability (stable, dev, alpha, beta and RC)' + add-author: 'Do you want to add authors of the project?' + add-another-author: 'Do you want to add another authors of the project?' + author-name: 'Enter author name or press enter to skip it' + author-email: 'Enter author email or press enter to skip it' + author-homepage: 'Enter author homepage or press enter to skip it' + author-role: 'Enter author role or press enter to skip it' + add-support: 'Do you want to add information about support channels?' + add-another-support: 'Do you want to add another information about support channels?' + support-channel: 'Enter support channel (email, issues, forum, wiki, irc, source, docs, rss)' + support-value: 'Enter support channel value' + add-required: 'Do you want to add required packages for the project?' + add-another-required: 'Do you want to add another required packages for the project?' + required-name: 'Enter required package name' + required-version: 'Enter required package version' suggestions: - description-for-menu: 'A description for the menu entry' + description-for-menu: 'A description for the menu entry' examples: - - description: 'Generate composer file specifying the module machine name, package name, package type, package description, keywords, lincense, homepage, minimum stability, authors, support channels and required packages' - execution: | - drupal generate:composer \ - --module="module_name" \ - --name="drupal/module_name" \ - --type="drupal-module" \ - --description="Package description" \ - --keywords='Drupal' --keywords='logging' \ - --license="GPL-2.0+" \ - --homepage="https://www.drupal.org/project/module_name" \ - --minimum-stability="stable" \ - --authors='"name":"Author name", "email":"author@email.com", "homepage":"http://website.com", "role":"Developer"' \ - --support='"channel":"email", "url":"author@email.com"' \ - --support='"channel":"source", "url":"http://github.com"' \ - --required='"name":"drupal/views", "version":"^1.0"' \ - --required='"name":"drupal/token", "version":"^2.0"' + - + description: 'Generate composer file specifying the module machine name, package name, package type, package description, keywords, lincense, homepage, minimum stability, authors, support channels and required packages' + execution: "drupal generate:composer \\\n --module=\"module_name\" \\\n --name=\"drupal/module_name\" \\\n --type=\"drupal-module\" \\\n --description=\"Package description\" \\\n --keywords='Drupal' --keywords='logging' \\\n --license=\"GPL-2.0+\" \\\n --homepage=\"https://www.drupal.org/project/module_name\" \\\n --minimum-stability=\"stable\" \\\n --authors='\"name\":\"Author name\", \"email\":\"author@email.com\", \"homepage\":\"http://website.com\", \"role\":\"Developer\"' \\\n --support='\"channel\":\"email\", \"url\":\"author@email.com\"' \\\n --support='\"channel\":\"source\", \"url\":\"http://github.com\"' \\\n --required='\"name\":\"drupal/views\", \"version\":\"^1.0\"' \\\n --required='\"name\":\"drupal/token\", \"version\":\"^2.0\"'\n" diff --git a/translations/generate.controller.yml b/translations/generate.controller.yml index 5b05332..77d5b24 100644 --- a/translations/generate.controller.yml +++ b/translations/generate.controller.yml @@ -2,29 +2,25 @@ description: 'Generate & Register a controller' help: 'The generate:controller command helps you generate a new controller.' welcome: 'Welcome to the Drupal Controller generator' options: - module: 'The Module name.' - class: 'Controller Class name' - routes: 'The routes, must be an array containing [title, method, path]' - services: 'Load services from the container.' - test: 'Generate a test class' + module: 'The Module name.' + class: 'Controller Class name' + routes: 'The routes, must be an array containing [title, method, path]' + services: 'Load services from the container.' + test: 'Generate a test class' questions: - module: 'Enter the module name' - class: 'Enter the Controller class name' - title: 'Enter the Controller method title (to stop adding more methods, leave this empty)' - method: 'Enter the action method name' - path: 'Enter the route path' - services: 'Enter your service' - test: 'Do you want to generate a unit test class?' + module: 'Enter the module name' + class: 'Enter the Controller class name' + title: 'Enter the Controller method title (to stop adding more methods, leave this empty)' + method: 'Enter the action method name' + path: 'Enter the route path' + services: 'Enter your service' + test: 'Do you want to generate a unit test class?' messages: - title-empty: 'Title must contain a value (you must enter at least one method)' - title-already-added: 'Title was already added' - method-name-already-added: 'Method name was already added' - path-already-added: 'Path was already added' + title-empty: 'Title must contain a value (you must enter at least one method)' + title-already-added: 'Title was already added' + method-name-already-added: 'Method name was already added' + path-already-added: 'Path was already added' examples: - - description: 'Generate controller specifying the module name, the class name and its routes' - execution: | - drupal generate:controller \ - --module="modulename" \ - --class="DefaultController" \ - --routes='"title":"ControllerMethod", "name":"modulename.default_controller_hello", "method":"hello", "path":"/modulename/hello/{name}"' \ - --test \ No newline at end of file + - + description: 'Generate controller specifying the module name, the class name and its routes' + execution: "drupal generate:controller \\\n --module=\"modulename\" \\\n --class=\"DefaultController\" \\\n --routes='\"title\":\"ControllerMethod\", \"name\":\"modulename.default_controller_hello\", \"method\":\"hello\", \"path\":\"/modulename/hello/{name}\"' \\\n --test" diff --git a/translations/generate.entity.bundle.yml b/translations/generate.entity.bundle.yml index f3106b3..db34812 100644 --- a/translations/generate.entity.bundle.yml +++ b/translations/generate.entity.bundle.yml @@ -2,19 +2,16 @@ description: 'Generate a new content type (node / entity bundle)' help: 'The generate:contenttype command helps you generate a new content type.' welcome: 'Welcome to the Drupal Content Type generator' options: - module: 'The Module name.' - bundle-name: 'The content type''s machine name' - bundle-title: 'The content type''s human-readable name' + module: 'The Module name.' + bundle-name: 'The content type''s machine name' + bundle-title: 'The content type''s human-readable name' questions: - module: 'Enter the module name' - bundle-name: 'Enter the machine name of your new content type' - bundle-title: 'Enter the human-readable name of your new content type' + module: 'Enter the module name' + bundle-name: 'Enter the machine name of your new content type' + bundle-title: 'Enter the human-readable name of your new content type' message: - error-state1: placeholder + error-state1: placeholder examples: - - description: 'Generate bundle entity specifying the module, the bundle name and its title' - execution: | - drupal generate:entity:bundle \ - --module="modulename" \ - --bundle-name="default" \ - --bundle-title="default" \ No newline at end of file + - + description: 'Generate bundle entity specifying the module, the bundle name and its title' + execution: "drupal generate:entity:bundle \\\n --module=\"modulename\" \\\n --bundle-name=\"default\" \\\n --bundle-title=\"default\"" diff --git a/translations/generate.entity.config.yml b/translations/generate.entity.config.yml index 67b06b4..0732f16 100644 --- a/translations/generate.entity.config.yml +++ b/translations/generate.entity.config.yml @@ -2,25 +2,20 @@ description: 'Generate a new config entity' help: 'The generate:config:entity command helps you generate a new config entity.' welcome: 'Welcome to the Drupal Config Entity generator' options: - module: 'The Module name.' - entity-class: 'The config entity class' - entity-name: 'The config entity name' - label: 'The label' - bundle-of: 'Acts as bundle for content entities' - base-path: 'The base-path for the config entity routes' + module: 'The Module name.' + entity-class: 'The config entity class' + entity-name: 'The config entity name' + label: 'The label' + bundle-of: 'Acts as bundle for content entities' + base-path: 'The base-path for the config entity routes' questions: - module: 'Enter the module name' - entity-class: 'Enter the class of your new config entity' - entity-name: 'Enter the name of your new config entity' - label: 'Enter the label of your new config entity' - bundle-of: 'Name of the content entity you want this (config) entity to act as a bundle for' - base-path: 'Enter the base-path for the config entity routes' + module: 'Enter the module name' + entity-class: 'Enter the class of your new config entity' + entity-name: 'Enter the name of your new config entity' + label: 'Enter the label of your new config entity' + bundle-of: 'Name of the content entity you want this (config) entity to act as a bundle for' + base-path: 'Enter the base-path for the config entity routes' examples: - - description: 'Generate config entity specifying the module, the entity class, the entity name, its path and label' - execution: | - drupal generate:entity:config \ - --module="modulename" \ - --entity-class="DefaultEntity" \ - --entity-name="default_entity" \ - --base-path="/admin/structure" \ - --label="Default entity" \ No newline at end of file + - + description: 'Generate config entity specifying the module, the entity class, the entity name, its path and label' + execution: "drupal generate:entity:config \\\n --module=\"modulename\" \\\n --entity-class=\"DefaultEntity\" \\\n --entity-name=\"default_entity\" \\\n --base-path=\"/admin/structure\" \\\n --label=\"Default entity\"" diff --git a/translations/generate.entity.content.yml b/translations/generate.entity.content.yml index 8be970c..0c7f1d9 100644 --- a/translations/generate.entity.content.yml +++ b/translations/generate.entity.content.yml @@ -2,38 +2,30 @@ description: 'Generate a new content entity' help: 'The generate:content:entity command helps you generate a new content entity.' welcome: 'Welcome to the Drupal Content Entity generator' options: - module: 'The Module name.' - entity-class: 'The content entity class' - entity-name: 'The content entity name' - label: 'The label' - has-bundles: 'Entity has bundles' - base-path: 'The base-path for the content entity routes' - is-translatable: 'Content entity translatable' + module: 'The Module name.' + entity-class: 'The content entity class' + entity-name: 'The content entity name' + label: 'The label' + has-bundles: 'Entity has bundles' + has-forms: 'Entity has forms' + has-owner: 'Entity has owner' + base-path: 'The base-path for the content entity routes' + is-translatable: 'Content entity translatable' questions: - module: 'Enter the module name' - entity-class: 'Enter the class of your new content entity' - entity-name: 'Enter the machine name of your new content entity' - label: 'Enter the label of your new content entity' - has-bundles: 'Do you want this (content) entity to have bundles?' - base-path: 'Enter the base-path for the content entity routes' - is-translatable: 'Is your entity translatable?' - revisionable: 'Is your entity revisionable?' + module: 'Enter the module name' + entity-class: 'Enter the class of your new content entity' + entity-name: 'Enter the machine name of your new content entity' + label: 'Enter the label of your new content entity' + has-bundles: 'Do you want this (content) entity to have bundles?' + has-forms: 'Do you want this (content) entity to have forms?' + has-owner: 'Do you want this (content) entity to have an owner?' + base-path: 'Enter the base-path for the content entity routes' + is-translatable: 'Is your entity translatable?' + revisionable: 'Is your entity revisionable?' examples: - - description: 'Generate a content entity specifying the module, the entity class, the entity name, its path and label' - execution: | - drupal generate:entity:content \ - --module="modulename" \ - --entity-class="DefaultEntity" \ - --entity-name="default_entity" \ - --base-path="/admin/structure" \ - --label="Default entity" - - description: 'Generate a translatable and revisionable content entity specifying the module, the entity class, the entity name, its path and label' - execution: | - drupal generate:entity:content \ - --module="modulename" \ - --entity-class="DefaultEntity" \ - --entity-name="default_entity" \ - --base-path="/admin/structure" \ - --label="Default entity" \ - --is-translatable \ - --revisionable \ No newline at end of file + - + description: 'Generate a content entity specifying the module, the entity class, the entity name, its path and label' + execution: "drupal generate:entity:content \\\n --module=\"modulename\" \\\n --entity-class=\"DefaultEntity\" \\\n --entity-name=\"default_entity\" \\\n --base-path=\"/admin/structure\" \\\n --label=\"Default entity\"" + - + description: 'Generate a translatable and revisionable content entity specifying the module, the entity class, the entity name, its path and label' + execution: "drupal generate:entity:content \\\n --module=\"modulename\" \\\n --entity-class=\"DefaultEntity\" \\\n --entity-name=\"default_entity\" \\\n --base-path=\"/admin/structure\" \\\n --label=\"Default entity\" \\\n --is-translatable \\\n --revisionable" diff --git a/translations/generate.event.subscriber.yml b/translations/generate.event.subscriber.yml index 2556149..e115a63 100644 --- a/translations/generate.event.subscriber.yml +++ b/translations/generate.event.subscriber.yml @@ -2,24 +2,20 @@ description: 'Generate an event subscriber' help: 'The generate:event:subscriber command helps you generate a new event subscriber.' welcome: 'Welcome to the Drupal Event Subscriber generator' options: - module: 'The Module name.' - name: 'Service name' - class: 'Class name' - services: 'Load services from the container.' - event-name: 'Enter event name' - callback-name: 'Callback function name to handle event' + module: 'The Module name.' + name: 'Service name' + class: 'Class name' + services: 'Load services from the container.' + event-name: 'Enter event name' + callback-name: 'Callback function name to handle event' questions: - module: 'Enter the module name' - name: 'Enter the service name' - class: 'Enter the class name' - services: 'Enter your service' - event-name: 'Enter event name' - callback-name: 'Enter the callback function name to handle event' + module: 'Enter the module name' + name: 'Enter the service name' + class: 'Enter the class name' + services: 'Enter your service' + event-name: 'Enter event name' + callback-name: 'Enter the callback function name to handle event' examples: - - description: 'Generate an event subscriber specifying the module name, its name, the class and the events to subscribe' - execution: | - drupal generate:event:subscriber \ - --module="modulename" \ - --name="modulename.default" \ - --class="DefaultSubscriber" \ - --events='kernel_request' + - + description: 'Generate an event subscriber specifying the module name, its name, the class and the events to subscribe' + execution: "drupal generate:event:subscriber \\\n --module=\"modulename\" \\\n --name=\"modulename.default\" \\\n --class=\"DefaultSubscriber\" \\\n --events='kernel_request'\n" diff --git a/translations/generate.form.alter.yml b/translations/generate.form.alter.yml index afd16b8..133ebfc 100644 --- a/translations/generate.form.alter.yml +++ b/translations/generate.form.alter.yml @@ -2,30 +2,26 @@ description: 'Generate an implementation of hook_form_alter() or hook_form_FORM_ help: 'The "%s" command helps you generate a new "%s"' welcome: 'Welcome to the Drupal Form Alter generator' options: - module: 'The Module name.' - form-id: 'Form ID to alter' - inputs: 'Create inputs in a form.' + module: 'The Module name.' + form-id: 'Form ID to alter' + inputs: 'Create inputs in a form.' questions: - module: 'Enter the module name' - form-id: 'Enter the Form ID to alter' - type: 'Enter New field type' - label: 'Input label' - description: 'Description' - default-value: 'Default value' - weight: 'Weight for input item' + module: 'Enter the module name' + form-id: 'Enter the Form ID to alter' + type: 'Enter New field type' + label: 'Input label' + description: Description + default-value: 'Default value' + weight: 'Weight for input item' messages: - inputs: "You can add form fields to modify form.\nThis is optional, press enter to continue" - loading-forms: 'Loading forms definition from Webprofiler module' - hide-form-elements: 'Optionally you can select form items for hide' - help-already-implemented: 'The hook form alter was already implemented in module "%s"' + inputs: "You can add form fields to modify form.\nThis is optional, press enter to continue" + loading-forms: 'Loading forms definition from Webprofiler module' + hide-form-elements: 'Optionally you can select form items for hide' + help-already-implemented: 'The hook form alter was already implemented in module "%s"' examples: - - description: 'Generate a hook form alter for an empty form specifying the module name' - execution: | - drupal generate:form:alter \ - --module="modulename" - - description: 'Generate a hook form alter with 2 fields specifying the module name and the inputs' - execution: | - drupal generate:form:alter \ - --module="modulename" \ - --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ - --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ No newline at end of file + - + description: 'Generate a hook form alter for an empty form specifying the module name' + execution: "drupal generate:form:alter \\\n --module=\"modulename\"" + - + description: 'Generate a hook form alter with 2 fields specifying the module name and the inputs' + execution: "drupal generate:form:alter \\\n --module=\"modulename\" \\\n --inputs='\"name\":\"inputtext\", \"type\":\"text_format\", \"label\":\"InputText\", \"options\":\"\", \"description\":\"Just an input text\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"' \\\n --inputs='\"name\":\"email\", \"type\":\"email\", \"label\":\"Email\", \"options\":\"\", \"description\":\"Just an email input\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"'" diff --git a/translations/generate.form.config.yml b/translations/generate.form.config.yml index 7590be7..dcfb6ac 100644 --- a/translations/generate.form.config.yml +++ b/translations/generate.form.config.yml @@ -2,56 +2,44 @@ description: 'Generate a new form config' help: 'The generate:form:config command helps you generate a new form config' welcome: 'Welcome to the Drupal Form Config generator' options: - module: 'The Module name.' - class: 'The form class name' - form-id: 'The Form id' - services: 'Load services from the container.' - config-file: 'Add a config file' - inputs: 'Create inputs in a form.' - path: 'Enter the form path' - menu-link-gen: 'Generate a menu link' - menu-link-title: 'A title for the menu link' - menu-parent: 'Menu parent' - menu-link-desc: 'A description for the menu link' + module: 'The Module name.' + class: 'The form class name' + form-id: 'The Form id' + services: 'Load services from the container.' + config-file: 'Add a config file' + inputs: 'Create inputs in a form.' + path: 'Enter the form path' + menu-link-gen: 'Generate a menu link' + menu-link-title: 'A title for the menu link' + menu-parent: 'Menu parent' + menu-link-desc: 'A description for the menu link' questions: - module: 'Enter the module name' - class: 'Enter the Form Class name' - form-id: 'Enter the Form id' - services: 'Enter your service' - config-file: 'Do you want to generate a config file?' - routing: 'Would you like to register a route for this form?' - path: 'Enter the route path' - max-amount-characters: 'Maximum amount of characters' - textfield-width-in-chars: 'Width of the textfield (in characters)' - multiselect-size-in-lines: 'Size of multiselect box (in lines)' - input-options: 'Input options separated by comma' - menu-link-gen: 'Generate a menu link' - menu-link-title: 'Enter a title for the menu link' - menu-parent: 'Enter Menu parent' - menu-link-desc: 'Enter a description for the menu link' - type: 'Enter New field type' - label: 'Input label' - description: 'Description' - default-value: 'Default value' - weight: 'Weight for input item' + module: 'Enter the module name' + class: 'Enter the Form Class name' + form-id: 'Enter the Form id' + services: 'Enter your service' + config-file: 'Do you want to generate a config file?' + routing: 'Would you like to register a route for this form?' + path: 'Enter the route path' + max-amount-characters: 'Maximum amount of characters' + textfield-width-in-chars: 'Width of the textfield (in characters)' + multiselect-size-in-lines: 'Size of multiselect box (in lines)' + input-options: 'Input options separated by comma' + menu-link-gen: 'Generate a menu link' + menu-link-title: 'Enter a title for the menu link' + menu-parent: 'Enter Menu parent' + menu-link-desc: 'Enter a description for the menu link' + type: 'Enter New field type' + label: 'Input label' + description: Description + default-value: 'Default value' + weight: 'Weight for input item' suggestions: - description-for-menu: 'A description for the menu entry' + description-for-menu: 'A description for the menu entry' examples: - - description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path' - execution: | - drupal generate:form:config \ - --module="modulename" \ - --class="DefaultForm" \ - --form-id="default_form" \ - --config-file \ - --path="/modulename/form/default" - - description: 'Generate a form with 2 fields and a config file specifying the module name, the class, a form id, the inputs and the path' - execution: | - drupal generate:form:config \ - --module="modulename" \ - --class="DefaultForm" \ - --form-id="default_form" \ - --config-file \ - --inputs='"name":"inputname", "type":"text_format", "label":"InputName", "options":"", "description":"Just a text input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ - --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ - --path="/modulename/form/default" + - + description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path' + execution: "drupal generate:form:config \\\n --module=\"modulename\" \\\n --class=\"DefaultForm\" \\\n --form-id=\"default_form\" \\\n --config-file \\\n --path=\"/modulename/form/default\"" + - + description: 'Generate a form with 2 fields and a config file specifying the module name, the class, a form id, the inputs and the path' + execution: "drupal generate:form:config \\\n --module=\"modulename\" \\\n --class=\"DefaultForm\" \\\n --form-id=\"default_form\" \\\n --config-file \\\n --inputs='\"name\":\"inputname\", \"type\":\"text_format\", \"label\":\"InputName\", \"options\":\"\", \"description\":\"Just a text input\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"' \\\n --inputs='\"name\":\"email\", \"type\":\"email\", \"label\":\"Email\", \"options\":\"\", \"description\":\"Just an email input\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"' \\\n --path=\"/modulename/form/default\"\n" diff --git a/translations/generate.form.yml b/translations/generate.form.yml index 75ec09e..9c0665d 100644 --- a/translations/generate.form.yml +++ b/translations/generate.form.yml @@ -2,56 +2,44 @@ description: 'Generate a new "%s"' help: 'The "%s" command helps you generate a new "%s"' welcome: 'Welcome to the Drupal Form generator' options: - module: 'The Module name.' - class: 'The form class name' - form-id: 'The Form id' - services: 'Load services from the container.' - config-file: 'Add a config file' - inputs: 'Create inputs in a form.' - path: 'Enter the form path' - menu-link-gen: 'Generate a menu link' - menu-link-title: 'A title for the menu link' - menu-parent: 'Menu parent' - menu-link-desc: 'A description for the menu link' + module: 'The Module name.' + class: 'The form class name' + form-id: 'The Form id' + services: 'Load services from the container.' + config-file: 'Add a config file' + inputs: 'Create inputs in a form.' + path: 'Enter the form path' + menu-link-gen: 'Generate a menu link' + menu-link-title: 'A title for the menu link' + menu-parent: 'Menu parent' + menu-link-desc: 'A description for the menu link' questions: - module: 'Enter the module name' - class: 'Enter the Form Class name' - form-id: 'Enter the Form id' - services: 'Enter your service' - config-file: 'Do you want to generate a config file?' - routing: 'Would you like to register a route for this form?' - path: 'Enter the route path' - max-amount-characters: 'Maximum amount of characters' - textfield-width-in-chars: 'Width of the textfield (in characters)' - multiselect-size-in-lines: 'Size of multiselect box (in lines)' - input-options: 'Input options separated by comma' - menu-link-gen: 'Generate a menu link' - menu-link-title: 'Enter a title for the menu link' - menu-parent: 'Enter Menu parent' - menu-link-desc: 'Enter a description for the menu link' - type: 'Enter New field type' - label: 'Input label' - description: 'Description' - default-value: 'Default value' - weight: 'Weight for input item' + module: 'Enter the module name' + class: 'Enter the Form Class name' + form-id: 'Enter the Form id' + services: 'Enter your service' + config-file: 'Do you want to generate a config file?' + routing: 'Would you like to register a route for this form?' + path: 'Enter the route path' + max-amount-characters: 'Maximum amount of characters' + textfield-width-in-chars: 'Width of the textfield (in characters)' + multiselect-size-in-lines: 'Size of multiselect box (in lines)' + input-options: 'Input options separated by comma' + menu-link-gen: 'Generate a menu link' + menu-link-title: 'Enter a title for the menu link' + menu-parent: 'Enter Menu parent' + menu-link-desc: 'Enter a description for the menu link' + type: 'Enter New field type' + label: 'Input label' + description: Description + default-value: 'Default value' + weight: 'Weight for input item' suggestions: - description-for-menu: 'A description for the menu entry' + description-for-menu: 'A description for the menu entry' examples: - - description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path' - execution: | - drupal generate:form \ - --module="modulename" \ - --class="DefaultForm" \ - --form-id="default_form" \ - --config-file \ - --path="/modulename/form/default" - - description: 'Generate a form with 2 fields and a config file specifying the module name, the class, a form id, the inputs and the path' - execution: | - drupal generate:form \ - --module="modulename" \ - --class="DefaultForm" \ - --form-id="default_form" \ - --config-file \ - --inputs='"name":"inputname", "type":"text_format", "label":"InputName", "options":"", "description":"Just a text input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ - --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ - --path="/modulename/form/default" + - + description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path' + execution: "drupal generate:form \\\n --module=\"modulename\" \\\n --class=\"DefaultForm\" \\\n --form-id=\"default_form\" \\\n --config-file \\\n --path=\"/modulename/form/default\"" + - + description: 'Generate a form with 2 fields and a config file specifying the module name, the class, a form id, the inputs and the path' + execution: "drupal generate:form \\\n --module=\"modulename\" \\\n --class=\"DefaultForm\" \\\n --form-id=\"default_form\" \\\n --config-file \\\n --inputs='\"name\":\"inputname\", \"type\":\"text_format\", \"label\":\"InputName\", \"options\":\"\", \"description\":\"Just a text input\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"' \\\n --inputs='\"name\":\"email\", \"type\":\"email\", \"label\":\"Email\", \"options\":\"\", \"description\":\"Just an email input\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"' \\\n --path=\"/modulename/form/default\"\n" diff --git a/translations/generate.help.yml b/translations/generate.help.yml index 7f04a2d..e5c23ee 100644 --- a/translations/generate.help.yml +++ b/translations/generate.help.yml @@ -2,16 +2,14 @@ description: 'Generate an implementation of hook_help()' help: 'The "%s" command helps you generate a hook help "%s"' welcome: 'Welcome to the Drupal Help generator' options: - module: 'The Module name.' - description: 'Module description' + module: 'The Module name.' + description: 'Module description' questions: - module: 'Enter the module name' - description: 'Enter module description' + module: 'Enter the module name' + description: 'Enter module description' messages: - help-already-implemented: 'The hook help was already implemented in module "%s"' + help-already-implemented: 'The hook help was already implemented in module "%s"' examples: - - description: 'Generate a hook help specifying the module name and the description' - execution: | - drupal generate:help \ - --module="modulename" \ - --description="My Awesome Module" \ No newline at end of file + - + description: 'Generate a hook help specifying the module name and the description' + execution: "drupal generate:help \\\n --module=\"modulename\" \\\n --description=\"My Awesome Module\"" diff --git a/translations/generate.jstest.yml b/translations/generate.jstest.yml index 3d6f828..b6e9db2 100644 --- a/translations/generate.jstest.yml +++ b/translations/generate.jstest.yml @@ -2,21 +2,11 @@ description: 'Generate a JavaScript test.' help: 'The generate:jstest command helps you to generate a new JavaScript test.' welcome: 'Welcome to the Drupal module generator' options: - class: 'JavaScript test Class name' + class: 'JavaScript test Class name' questions: - module: common.questions.module - class: 'Enter the JavaScript test class name' + module: common.questions.module + class: 'Enter the JavaScript test class name' examples: - - description: 'Generate a module specifying the module name, machine name, the path, its description, drupal core and the package name. In this example the composer file, the unit test and twig template are generated too' - execution: | - drupal generate:module \ - --module="modulename" \ - --machine-name="modulename" \ - --module-path="/modules/custom" \ - --description="My Awesome Module" \ - --core="8.x" \ - --package="Custom" \ - --module-file \ - --composer \ - --test \ - --twigtemplate + - + description: 'Generate a module specifying the module name, machine name, the path, its description, drupal core and the package name. In this example the composer file, the unit test and twig template are generated too' + execution: "drupal generate:module \\\n --module=\"modulename\" \\\n --machine-name=\"modulename\" \\\n --module-path=\"/modules/custom\" \\\n --description=\"My Awesome Module\" \\\n --core=\"8.x\" \\\n --package=\"Custom\" \\\n --module-file \\\n --composer \\\n --test \\\n --twigtemplate\n" diff --git a/translations/generate.module.file.yml b/translations/generate.module.file.yml index abaedd5..1018d25 100644 --- a/translations/generate.module.file.yml +++ b/translations/generate.module.file.yml @@ -2,11 +2,10 @@ description: 'Generate a .module file' help: 'The generate:module:file command helps you to generate a new .module file' welcome: 'Welcome to the Drupal Module File generator' options: - module: 'The Module name' + module: 'The Module name' questions: - module: 'Enter the new module name' + module: 'Enter the new module name' examples: - - description: 'Generate the .module file specifying the module name' - execution: | - drupal generate:module:file \ - --module="modulename" \ No newline at end of file + - + description: 'Generate the .module file specifying the module name' + execution: "drupal generate:module:file \\\n --module=\"modulename\"\n" diff --git a/translations/generate.module.yml b/translations/generate.module.yml index 12925f2..ce8eefc 100644 --- a/translations/generate.module.yml +++ b/translations/generate.module.yml @@ -2,50 +2,40 @@ description: 'Generate a module.' help: 'The generate:module command helps you generates a new module.' welcome: 'Welcome to the Drupal module generator' options: - module: 'The Module name' - machine-name: 'The machine name (lowercase and underscore only)' - module-path: 'The path of the module' - description: 'Module description' - core: 'Core version' - features-bundle: 'Define module as feature using the given Features bundle name' - package: 'Module package' - module-file: 'Add a .module file' - composer: 'Add a composer.json file' - dependencies: 'Module dependencies separated by commas (i.e. context, panels)' - test: 'Generate a test class' - twigtemplate: 'Generate theme template' + module: 'The Module name' + machine-name: 'The machine name (lowercase and underscore only)' + module-path: 'The path of the module' + description: 'Module description' + core: 'Core version' + features-bundle: 'Define module as feature using the given Features bundle name' + package: 'Module package' + module-file: 'Add a .module file' + composer: 'Add a composer.json file' + dependencies: 'Module dependencies separated by commas (i.e. context, panels)' + test: 'Generate a test class' + twigtemplate: 'Generate theme template' questions: - module: 'Enter the new module name' - machine-name: 'Enter the module machine name' - module-path: 'Enter the module Path' - description: 'Enter module description' - core: 'Enter Drupal Core version' - package: 'Enter package name' - features-support: 'Define module as feature' - features-bundle: 'Enter Features bundle name' - module-file: 'Do you want to generate a .module file?' - composer: 'Do you want to add a composer.json file to your module?' - dependencies: 'Would you like to add module dependencies?' - test: 'Do you want to generate a unit test class?' - twigtemplate: 'Do you want to generate a themeable template?' + module: 'Enter the new module name' + machine-name: 'Enter the module machine name' + module-path: 'Enter the module Path' + description: 'Enter module description' + core: 'Enter Drupal Core version' + package: 'Enter package name' + features-support: 'Define module as feature' + features-bundle: 'Enter Features bundle name' + module-file: 'Do you want to generate a .module file?' + composer: 'Do you want to add a composer.json file to your module?' + dependencies: 'Would you like to add module dependencies?' + test: 'Do you want to generate a unit test class?' + twigtemplate: 'Do you want to generate a themeable template?' suggestions: - my-awesome-module: 'My Awesome Module' + my-awesome-module: 'My Awesome Module' warnings: - module-unavailable: 'Warning The following modules are not available "%s"' + module-unavailable: 'Warning The following modules are not available "%s"' errors: - invalid-core: 'The core version "%s" is invalid.' - directory-exists: 'The target directory "%s" is not empty.' + invalid-core: 'The core version "%s" is invalid.' + directory-exists: 'The target directory "%s" is not empty.' examples: - - description: 'Generate a module specifying the module name, machine name, the path, its description, drupal core and the package name. In this example the composer file, the unit test and twig template are generated too' - execution: | - drupal generate:module \ - --module="modulename" \ - --machine-name="modulename" \ - --module-path="/modules/custom" \ - --description="My Awesome Module" \ - --core="8.x" \ - --package="Custom" \ - --module-file \ - --composer \ - --test \ - --twigtemplate + - + description: 'Generate a module specifying the module name, machine name, the path, its description, drupal core and the package name. In this example the composer file, the unit test and twig template are generated too' + execution: "drupal generate:module \\\n --module=\"modulename\" \\\n --machine-name=\"modulename\" \\\n --module-path=\"/modules/custom\" \\\n --description=\"My Awesome Module\" \\\n --core=\"8.x\" \\\n --package=\"Custom\" \\\n --module-file \\\n --composer \\\n --test \\\n --twigtemplate\n" diff --git a/translations/generate.permissions.yml b/translations/generate.permissions.yml index 83a30fb..28b31ff 100644 --- a/translations/generate.permissions.yml +++ b/translations/generate.permissions.yml @@ -2,14 +2,14 @@ description: 'Generate module permissions' help: 'The generate:permissions command helps you generate new permissions' welcome: 'Welcome to the Drupal Permission generator' options: - module: 'The Module name.' + module: 'The Module name.' questions: - module: 'Enter the module name' - permission: 'Enter a permission' - title: 'Enter a title for the permission' - description: 'Enter a description for the permission' - restrict-access: 'Restrict Access' - add: 'Do you want to add another permission?' + module: 'Enter the module name' + permission: 'Enter a permission' + title: 'Enter a title for the permission' + description: 'Enter a description for the permission' + restrict-access: 'Restrict Access' + add: 'Do you want to add another permission?' suggestions: - access-content: 'Access content' - allow-access-content: 'Allow access to my content' + access-content: 'Access content' + allow-access-content: 'Allow access to my content' diff --git a/translations/generate.plugin.block.yml b/translations/generate.plugin.block.yml index 6510194..8ffc3c0 100644 --- a/translations/generate.plugin.block.yml +++ b/translations/generate.plugin.block.yml @@ -2,35 +2,32 @@ description: 'Generate a plugin block' help: 'The generate:plugin:block command helps you generate a new Plugin block.' welcome: 'Welcome to the Drupal Plugin Block generator' options: - module: 'The Module name.' - class: 'Plugin class name' - label: 'Plugin label' - plugin-id: 'Plugin id' - inputs: 'Create inputs in a form.' - services: 'Load services from the container.' - theme-region: 'Theme region to render Plugin Block' + module: 'The Module name.' + class: 'Plugin class name' + plugin-label: 'Plugin label' + plugin-id: 'Plugin id' + inputs: 'Create inputs in a form.' + services: 'Load services from the container.' + theme-region: 'Theme region to render Plugin Block' + twigtemplate: 'Generate theme template' + label: 'Plugin label' questions: - module: 'Enter the module name' - class: 'Enter the plugin class name' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' - services: 'Enter your service' - theme-region: 'Enter the theme region to render the Plugin Block.' - type: 'Enter New field type' - label: 'Input label' - description: 'Description' - default-value: 'Default value' - weight: 'Weight for input item' + module: 'Enter the module name' + class: 'Enter the plugin class name' + plugin-label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' + services: 'Enter your service' + theme-region: 'Enter the theme region to render the Plugin Block.' + type: 'Enter New field type' + label: 'Enter the plugin label' + description: Description + default-value: 'Default value' + weight: 'Weight for input item' + twigtemplate: 'Do you want to generate a themeable template?' messages: - inputs: "\nYou can add input fields to create special configurations in the block.\nThis is optional, press enter to continue" - invalid-theme-region: 'Region "%s" is invalid' + inputs: "\nYou can add input fields to create special configurations in the block.\nThis is optional, press enter to continue" + invalid-theme-region: 'Region "%s" is invalid' examples: - - description: 'Generate a plugin block in the header region with an input field specifying the module name, the class, the label, its id, the region and the input' - execution: | - drupal generate:plugin:block \ - --module="modulename" \ - --class="DefaultBlock" \ - --label="Default block" \ - --plugin-id="default_block" \ - --theme-region="header" \ - --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ No newline at end of file + - + description: 'Generate a plugin block in the header region with an input field specifying the module name, the class, the label, its id, the region and the input' + execution: "drupal generate:plugin:block \\\n --module=\"modulename\" \\\n --class=\"DefaultBlock\" \\\n --label=\"Default block\" \\\n --plugin-id=\"default_block\" \\\n --theme-region=\"header\" \\\n --inputs='\"name\":\"inputtext\", \"type\":\"text_format\", \"label\":\"InputText\", \"options\":\"\", \"description\":\"Just an input text\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"'" diff --git a/translations/generate.plugin.ckeditorbutton.yml b/translations/generate.plugin.ckeditorbutton.yml index 607b0f7..1a7f078 100644 --- a/translations/generate.plugin.ckeditorbutton.yml +++ b/translations/generate.plugin.ckeditorbutton.yml @@ -2,37 +2,22 @@ description: 'Generate CKEditor button plugin.' help: 'The generate:plugin:ckeditorbutton command helps you generate a new CKEditor button plugin.' welcome: 'Welcome to the Drupal CKEditor Button Plugin generator' options: - module: 'The Module name.' - class: 'Plugin class name' - label: 'Plugin label' - plugin-id: 'Plugin ID. NOTE: This corresponds to the CKEditor plugin name. It is the first argument of the CKEDITOR.plugins.add() function in the plugin.js file.' - buttons: 'CKEditor buttons.' - button-properties: 'Enter a new button properties.' + module: 'The Module name.' + class: 'Plugin class name' + label: 'Plugin label' + plugin-id: 'Plugin ID. NOTE: This corresponds to the CKEditor plugin name. It is the first argument of the CKEDITOR.plugins.add() function in the plugin.js file.' + buttons: 'CKEditor buttons.' + button-properties: 'Enter a new button properties.' questions: - module: 'Enter the module name' - class: 'Enter the plugin class name' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin ID. NOTE: This corresponds to the CKEditor plugin name. It is the first argument of the CKEDITOR.plugins.add() function in the plugin.js file.' - button-name: 'Enter the button name. NOTE: This corresponds to the CKEditor button name. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.' - button-icon-path: 'Enter the button icon path' - button-label: 'Enter the button label' - button-add: 'Do you want to add another button?' + module: 'Enter the module name' + class: 'Enter the plugin class name' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin ID. NOTE: This corresponds to the CKEditor plugin name. It is the first argument of the CKEDITOR.plugins.add() function in the plugin.js file.' + button-name: 'Enter the button name. NOTE: This corresponds to the CKEditor button name. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.' + button-icon-path: 'Enter the button icon path' + button-label: 'Enter the button label' + button-add: 'Do you want to add another button?' examples: - - description: 'Generate plugin CKEditor button specifying the module name, the class, the label, its id, the button name and the icon path' - execution: | - drupal generate:plugin:ckeditorbutton \ - --module="modulename" \ - --class="DefaultCKEditorButton" \ - --label="Default ckeditor button" \ - --plugin-id="default_ckeditor_button" \ - --buttons='name":"Default ckeditor button", "label":"Default ckeditor button", "icon":"modules/custom/modulename/js/plugins/default_ckeditor_button/images/icon.png"' \ - --buttons='name":"My ckeditor button", "label":"My ckeditor button", "icon":"modules/custom/modulename/js/plugins/my_ckeditor_button/images/icon.png"' \ - --no-interaction - - drupal generate:plugin:ckeditorbutton \ - --module="modulename" \ - --class="DefaultCKEditorButton" \ - --label="Default ckeditor button" \ - --plugin-id="default ckeditor button" \ - --button-name="Default ckeditor button" \ - --button-icon-path="modules/custom/modulename/js/plugins/default ckeditor button/images/icon.png" \ No newline at end of file + - + description: 'Generate plugin CKEditor button specifying the module name, the class, the label, its id, the button name and the icon path' + execution: "drupal generate:plugin:ckeditorbutton \\\n --module=\"modulename\" \\\n --class=\"DefaultCKEditorButton\" \\\n --label=\"Default ckeditor button\" \\\n --plugin-id=\"default_ckeditor_button\" \\\n --buttons='name\":\"Default ckeditor button\", \"label\":\"Default ckeditor button\", \"icon\":\"modules/custom/modulename/js/plugins/default_ckeditor_button/images/icon.png\"' \\\n --buttons='name\":\"My ckeditor button\", \"label\":\"My ckeditor button\", \"icon\":\"modules/custom/modulename/js/plugins/my_ckeditor_button/images/icon.png\"' \\\n --no-interaction\n\ndrupal generate:plugin:ckeditorbutton \\\n --module=\"modulename\" \\\n --class=\"DefaultCKEditorButton\" \\\n --label=\"Default ckeditor button\" \\\n --plugin-id=\"default ckeditor button\" \\\n --button-name=\"Default ckeditor button\" \\\n --button-icon-path=\"modules/custom/modulename/js/plugins/default ckeditor button/images/icon.png\"" diff --git a/translations/generate.plugin.condition.yml b/translations/generate.plugin.condition.yml index 0f8d78b..fdf99b8 100644 --- a/translations/generate.plugin.condition.yml +++ b/translations/generate.plugin.condition.yml @@ -2,51 +2,30 @@ description: 'Generate a plugin condition.' help: 'The generate:plugin:conditon command helps you generate a plugin condition.' welcome: 'Welcome to the Drupal Plugin Condition generator' options: - module: 'The Module name.' - class: 'Plugin condition class name' - label: 'Plugin condition label' - plugin-id: 'Plugin condition id' - context-definition-id: 'Context definition ID' - context-definition-label: 'Context definition label' - context-definition-required: 'Context definition is required (TRUE/FALSE)' + module: 'The Module name.' + class: 'Plugin condition class name' + label: 'Plugin condition label' + plugin-id: 'Plugin condition id' + context-definition-id: 'Context definition ID' + context-definition-label: 'Context definition label' + context-definition-required: 'Context definition is required (TRUE/FALSE)' questions: - module: 'Enter the module name' - class: 'Enter the plugin condition class name' - label: 'Enter the plugin condition label' - plugin-id: 'Enter the plugin condition id' - context-type: 'Context type' - context-entity-type: 'Context entity type' - context-definition-id: 'Context definition ID' - context-definition-label: 'Context definition label' - context-definition-required: 'Context definition is required' + module: 'Enter the module name' + class: 'Enter the plugin condition class name' + label: 'Enter the plugin condition label' + plugin-id: 'Enter the plugin condition id' + context-type: 'Context type' + context-entity-type: 'Context entity type' + context-definition-id: 'Context definition ID' + context-definition-label: 'Context definition label' + context-definition-required: 'Context definition is required' examples: - - description: 'Generate a plugin condition for a node entity type specifying the module name, the class, the label, its id and the context definition' - execution: | - drupal generate:plugin:condition \ - --module="modulename" \ - --class="ExampleCondition" \ - --label="Example condition" \ - --plugin-id="example_condition" \ - --context-definition-id="entity:node" \ - --context-definition-label="node" \ - --context-definition-required - - description: 'Generate a plugin condition for language specifying the module name, the class, the label, its id and the context definition' - execution: | - drupal generate:plugin:condition \ - --module="modulename" \ - --class="ExampleCondition" \ - --label="Example condition" \ - --plugin-id="example_condition" \ - --context-definition-id="language" \ - --context-definition-label="Language" \ - --context-definition-required - - description: 'Generate a plugin condition for role configuration specifying the module name, the class, the label, its id and the context definition' - execution: | - drupal generate:plugin:condition \ - --module="modulename" \ - --class="ExampleCondition" \ - --label="Example condition" \ - --plugin-id="example_condition" \ - --context-definition-id="entity:user_role" \ - --context-definition-label="user_role" \ - --context-definition-required + - + description: 'Generate a plugin condition for a node entity type specifying the module name, the class, the label, its id and the context definition' + execution: "drupal generate:plugin:condition \\\n --module=\"modulename\" \\\n --class=\"ExampleCondition\" \\\n --label=\"Example condition\" \\\n --plugin-id=\"example_condition\" \\\n --context-definition-id=\"entity:node\" \\\n --context-definition-label=\"node\" \\\n --context-definition-required" + - + description: 'Generate a plugin condition for language specifying the module name, the class, the label, its id and the context definition' + execution: "drupal generate:plugin:condition \\\n --module=\"modulename\" \\\n --class=\"ExampleCondition\" \\\n --label=\"Example condition\" \\\n --plugin-id=\"example_condition\" \\\n --context-definition-id=\"language\" \\\n --context-definition-label=\"Language\" \\\n --context-definition-required" + - + description: 'Generate a plugin condition for role configuration specifying the module name, the class, the label, its id and the context definition' + execution: "drupal generate:plugin:condition \\\n --module=\"modulename\" \\\n --class=\"ExampleCondition\" \\\n --label=\"Example condition\" \\\n --plugin-id=\"example_condition\" \\\n --context-definition-id=\"entity:user_role\" \\\n --context-definition-label=\"user_role\" \\\n --context-definition-required\n" diff --git a/translations/generate.plugin.field.yml b/translations/generate.plugin.field.yml index 3435068..51b983a 100644 --- a/translations/generate.plugin.field.yml +++ b/translations/generate.plugin.field.yml @@ -2,52 +2,38 @@ description: 'Generate field type, widget and formatter plugins.' help: 'The generate:plugin:field command helps you generate a full set of field plugin: field type, field formatter and field widget.' welcome: 'Welcome to the Drupal Field Plugin generator' options: - module: 'The Module name.' - type-class: 'Field type plugin class name' - type-label: 'Field type plugin label' - type-plugin-id: 'Field type plugin id' - type-description: 'Field type plugin description' - formatter-class: 'Field formatter plugin class name' - formatter-label: 'Field formatter plugin label' - formatter-plugin-id: 'Field formatter plugin id' - widget-class: 'Field widget plugin class name' - widget-label: 'Field widget plugin label' - widget-plugin-id: 'Field widget plugin id' - field-type: 'Field type the formatter and widget plugin can be used with' - default-widget: 'Default field widget of the field type plugin' - default-formatter: 'Default field formatter of field type plugin' + module: 'The Module name.' + type-class: 'Field type plugin class name' + type-label: 'Field type plugin label' + type-plugin-id: 'Field type plugin id' + type-description: 'Field type plugin description' + formatter-class: 'Field formatter plugin class name' + formatter-label: 'Field formatter plugin label' + formatter-plugin-id: 'Field formatter plugin id' + widget-class: 'Field widget plugin class name' + widget-label: 'Field widget plugin label' + widget-plugin-id: 'Field widget plugin id' + field-type: 'Field type the formatter and widget plugin can be used with' + default-widget: 'Default field widget of the field type plugin' + default-formatter: 'Default field formatter of field type plugin' questions: - module: 'Enter the module name' - type-class: 'Enter field type plugin class name' - type-label: 'Enter the field type plugin label' - type-plugin-id: 'Enter the field type plugin id' - type-description: 'Enter the field type plugin description' - formatter-class: 'Enter the field formatter plugin class name' - formatter-label: 'Enter the field formatter plugin label' - formatter-plugin-id: 'Enter the field formatter plugin id' - widget-class: 'Enter the field widget plugin class name' - widget-label: 'Enter the field widget plugin label' - widget-plugin-id: 'Enter the field widget plugin id' - field-type: 'Enter the field type the formatter and widget plugin can be used with' - default-widget: 'Enter the default field widget of the field type plugin' - default-formatter: 'Enter the default field formatter of field type plugin' + module: 'Enter the module name' + type-class: 'Enter field type plugin class name' + type-label: 'Enter the field type plugin label' + type-plugin-id: 'Enter the field type plugin id' + type-description: 'Enter the field type plugin description' + formatter-class: 'Enter the field formatter plugin class name' + formatter-label: 'Enter the field formatter plugin label' + formatter-plugin-id: 'Enter the field formatter plugin id' + widget-class: 'Enter the field widget plugin class name' + widget-label: 'Enter the field widget plugin label' + widget-plugin-id: 'Enter the field widget plugin id' + field-type: 'Enter the field type the formatter and widget plugin can be used with' + default-widget: 'Enter the default field widget of the field type plugin' + default-formatter: 'Enter the default field formatter of field type plugin' suggestions: - my-field-type: 'My Field Type' + my-field-type: 'My Field Type' examples: - - description: 'Generate field type, widget and formatter plugins specifying the module name, the type (class, label, plugin id and description), the formatter (class, label, plugin id) and the widget (class, label and plugin id)' - execution: | - drupal generate:plugin:field \ - --module="modulename" \ - --type-class="ExampleFieldType" \ - --type-label="Example field type" \ - --type-plugin-id="example_field_type" \ - --type-description="My Field Type" \ - --formatter-class="ExampleFormatterType" \ - --formatter-label="Example formatter type" \ - --formatter-plugin-id="example_formatter_type" \ - --widget-class="ExampleWidgetType" \ - --widget-label="Example widget type" \ - --widget-plugin-id="example_widget_type" \ - --field-type="example_field_type" \ - --default-widget="example_widget_type" \ - --default-formatter="example_formatter_type" + - + description: 'Generate field type, widget and formatter plugins specifying the module name, the type (class, label, plugin id and description), the formatter (class, label, plugin id) and the widget (class, label and plugin id)' + execution: "drupal generate:plugin:field \\\n --module=\"modulename\" \\\n --type-class=\"ExampleFieldType\" \\\n --type-label=\"Example field type\" \\\n --type-plugin-id=\"example_field_type\" \\\n --type-description=\"My Field Type\" \\\n --formatter-class=\"ExampleFormatterType\" \\\n --formatter-label=\"Example formatter type\" \\\n --formatter-plugin-id=\"example_formatter_type\" \\\n --widget-class=\"ExampleWidgetType\" \\\n --widget-label=\"Example widget type\" \\\n --widget-plugin-id=\"example_widget_type\" \\\n --field-type=\"example_field_type\" \\\n --default-widget=\"example_widget_type\" \\\n --default-formatter=\"example_formatter_type\"\n" diff --git a/translations/generate.plugin.fieldformatter.yml b/translations/generate.plugin.fieldformatter.yml index b8189e8..9fbc114 100644 --- a/translations/generate.plugin.fieldformatter.yml +++ b/translations/generate.plugin.fieldformatter.yml @@ -2,23 +2,18 @@ description: 'Generate field formatter plugin.' help: 'The generate:plugin:fieldformatter command helps you generate a new field formatter plugin.' welcome: 'Welcome to the Drupal Field Formatter Plugin generator' options: - module: 'The Module name.' - class: 'Plugin class name' - label: 'Plugin label' - plugin-id: 'Plugin id' - field-type: 'Field type the plugin can be used with' + module: 'The Module name.' + class: 'Plugin class name' + label: 'Plugin label' + plugin-id: 'Plugin id' + field-type: 'Field type the plugin can be used with' questions: - module: 'Enter the module name' - class: 'Enter the plugin class name' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' - field-type: 'Enter the field type the plugin can be used with' + module: 'Enter the module name' + class: 'Enter the plugin class name' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' + field-type: 'Enter the field type the plugin can be used with' examples: - - description: 'Generate a text field formatter plugin specifying the module name, the class, the label its plugin id and the field type' - execution: | - drupal generate:plugin:fieldformatter \ - --module="modulename" \ - --class="ExampleFieldFormatter" \ - --label="Example field formatter" \ - --plugin-id="example_field_formatter" \ - --field-type="text" + - + description: 'Generate a text field formatter plugin specifying the module name, the class, the label its plugin id and the field type' + execution: "drupal generate:plugin:fieldformatter \\\n --module=\"modulename\" \\\n --class=\"ExampleFieldFormatter\" \\\n --label=\"Example field formatter\" \\\n --plugin-id=\"example_field_formatter\" \\\n --field-type=\"text\"\n" diff --git a/translations/generate.plugin.fieldtype.yml b/translations/generate.plugin.fieldtype.yml index e2c5b3e..b947e65 100644 --- a/translations/generate.plugin.fieldtype.yml +++ b/translations/generate.plugin.fieldtype.yml @@ -2,39 +2,27 @@ description: 'Generate field type plugin.' help: 'The generate:plugin:fieldtype command helps you generate a new field type plugin.' welcome: 'Welcome to the Drupal Field Type Plugin generator' options: - module: 'The Module name.' - class: 'Plugin class name' - label: 'Plugin label' - plugin-id: 'Plugin id' - description: 'Plugin Description' - default-widget: 'Default field widget of this plugin' - default-formatter: 'Default field formatter of this plugin' + module: 'The Module name.' + class: 'Plugin class name' + label: 'Plugin label' + plugin-id: 'Plugin id' + description: 'Plugin Description' + default-widget: 'Default field widget of this plugin' + default-formatter: 'Default field formatter of this plugin' questions: - module: 'Enter the module name' - class: 'Enter the plugin class name' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' - description: 'Enter the plugin Description' - default-widget: 'Enter the default field widget of this plugin' - default-formatter: 'Enter the default field formatter of this plugin' + module: 'Enter the module name' + class: 'Enter the plugin class name' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' + description: 'Enter the plugin Description' + default-widget: 'Enter the default field widget of this plugin' + default-formatter: 'Enter the default field formatter of this plugin' suggestions: - my-field-type: 'My Field Type' + my-field-type: 'My Field Type' examples: - - description: 'Generate a field type plugin specifying the module name, the class, its label, the plugin id and a description' - execution: | - drupal generate:plugin:fieldtype \ - --module="modulename" \ - --class="ExampleFieldType" \ - --label="Example field type" \ - --plugin-id="example_field_type" \ - --description="My Field Type" - - description: 'Generate a field type plugin with a default widget and formatter specifying the module name, the class, its label, the plugin id and a description' - execution: | - drupal generate:plugin:fieldtype \ - --module="modulename" \ - --class="ExampleFieldType" \ - --label="Example field type" \ - --plugin-id="example_field_type" \ - --description="My Field Type" \ - --default-widget="DefaultWidget" \ - --default-formatter="DefaultFormatter" + - + description: 'Generate a field type plugin specifying the module name, the class, its label, the plugin id and a description' + execution: "drupal generate:plugin:fieldtype \\\n --module=\"modulename\" \\\n --class=\"ExampleFieldType\" \\\n --label=\"Example field type\" \\\n --plugin-id=\"example_field_type\" \\\n --description=\"My Field Type\"" + - + description: 'Generate a field type plugin with a default widget and formatter specifying the module name, the class, its label, the plugin id and a description' + execution: "drupal generate:plugin:fieldtype \\\n --module=\"modulename\" \\\n --class=\"ExampleFieldType\" \\\n --label=\"Example field type\" \\\n --plugin-id=\"example_field_type\" \\\n --description=\"My Field Type\" \\\n --default-widget=\"DefaultWidget\" \\\n --default-formatter=\"DefaultFormatter\"\n" diff --git a/translations/generate.plugin.fieldwidget.yml b/translations/generate.plugin.fieldwidget.yml index 3b28469..9303d74 100644 --- a/translations/generate.plugin.fieldwidget.yml +++ b/translations/generate.plugin.fieldwidget.yml @@ -2,23 +2,18 @@ description: 'Generate field widget plugin.' help: 'The generate:plugin:fieldwidget command helps you generate a new field widget plugin.' welcome: 'Welcome to the Drupal Field Widget Plugin generator' options: - module: 'The Module name.' - class: 'Plugin class name' - label: 'Plugin label' - plugin-id: 'Plugin id' - field-type: 'Field type the plugin can be used with' + module: 'The Module name.' + class: 'Plugin class name' + label: 'Plugin label' + plugin-id: 'Plugin id' + field-type: 'Field type the plugin can be used with' questions: - module: 'Enter the module name' - class: 'Enter the plugin class name' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' - field-type: 'Enter the field type the plugin can be used with' + module: 'Enter the module name' + class: 'Enter the plugin class name' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' + field-type: 'Enter the field type the plugin can be used with' examples: - - description: 'Generate a text type field widget plugin specifying the module name, the class, its label, the plugin id and the field type' - execution: | - drupal generate:plugin:fieldwidget \ - --module="modulename" \ - --class="ExampleFieldWidget" \ - --label="Example field widget" \ - --plugin-id="example_field_widget" \ - --field-type="text" + - + description: 'Generate a text type field widget plugin specifying the module name, the class, its label, the plugin id and the field type' + execution: "drupal generate:plugin:fieldwidget \\\n --module=\"modulename\" \\\n --class=\"ExampleFieldWidget\" \\\n --label=\"Example field widget\" \\\n --plugin-id=\"example_field_widget\" \\\n --field-type=\"text\"\n" diff --git a/translations/generate.plugin.imageeffect.yml b/translations/generate.plugin.imageeffect.yml index f03b61e..0340386 100644 --- a/translations/generate.plugin.imageeffect.yml +++ b/translations/generate.plugin.imageeffect.yml @@ -2,25 +2,20 @@ description: 'Generate image effect plugin.' help: 'The generate:plugin:imageeffect command helps you generate a new image effect plugin.' welcome: 'Welcome to the Drupal Image Effect Plugin generator' options: - module: 'The Module name.' - class: 'Plugin class name' - label: 'Plugin label' - plugin-id: 'Plugin id' - description: 'Plugin Description' + module: 'The Module name.' + class: 'Plugin class name' + label: 'Plugin label' + plugin-id: 'Plugin id' + description: 'Plugin Description' questions: - module: 'Enter the module name' - class: 'Enter the plugin class name' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' - description: 'Enter the plugin Description' + module: 'Enter the module name' + class: 'Enter the plugin class name' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' + description: 'Enter the plugin Description' suggestions: - my-image-effect: 'My Image Effect' + my-image-effect: 'My Image Effect' examples: - - description: 'Generate a image effect plugin specifying the module name, the class, its label, the plugin id and a description' - execution: | - drupal generate:plugin:imageeffect \ - --module="modulename" \ - --class="DefaultImageEffect" \ - --label="Default image effect" \ - --plugin-id="default_image_effect" \ - --description="My Image Effect" + - + description: 'Generate a image effect plugin specifying the module name, the class, its label, the plugin id and a description' + execution: "drupal generate:plugin:imageeffect \\\n --module=\"modulename\" \\\n --class=\"DefaultImageEffect\" \\\n --label=\"Default image effect\" \\\n --plugin-id=\"default_image_effect\" \\\n --description=\"My Image Effect\"\n" diff --git a/translations/generate.plugin.imageformatter.yml b/translations/generate.plugin.imageformatter.yml index 9505b8f..af7148d 100644 --- a/translations/generate.plugin.imageformatter.yml +++ b/translations/generate.plugin.imageformatter.yml @@ -2,20 +2,16 @@ description: 'Generate image formatter plugin.' help: 'The generate:plugin:imageformatter command helps you generate a new image formatter plugin.' welcome: 'Welcome to the Drupal Image Formatter Plugin generator' options: - module: 'The Module name.' - class: 'Plugin class name' - label: 'Plugin label' - plugin-id: 'Plugin id' + module: 'The Module name.' + class: 'Plugin class name' + label: 'Plugin label' + plugin-id: 'Plugin id' questions: - module: 'Enter the module name' - class: 'Enter the plugin class name' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' + module: 'Enter the module name' + class: 'Enter the plugin class name' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' examples: - - description: 'Generate a image formatter plugin specifying the module name, the class, its label and the plugin id' - execution: | - drupal generate:plugin:imageformatter \ - --module="modulename" \ - --class="ExampleImageFormatter" \ - --label="Example image formatter" \ - --plugin-id="example_image_formatter" + - + description: 'Generate a image formatter plugin specifying the module name, the class, its label and the plugin id' + execution: "drupal generate:plugin:imageformatter \\\n --module=\"modulename\" \\\n --class=\"ExampleImageFormatter\" \\\n --label=\"Example image formatter\" \\\n --plugin-id=\"example_image_formatter\"\n" diff --git a/translations/generate.plugin.mail.yml b/translations/generate.plugin.mail.yml index b44e937..9567d6e 100644 --- a/translations/generate.plugin.mail.yml +++ b/translations/generate.plugin.mail.yml @@ -2,24 +2,20 @@ description: 'Generate a plugin mail' help: 'The generate:plugin:mail command helps you generate a new Plugin mail.' welcome: 'Welcome to the Drupal Plugin Mail generator' options: - module: 'The Module name.' - class: 'Plugin class name' - label: 'Plugin label' - plugin-id: 'Plugin id' - inputs: 'Create inputs in a form.' - services: 'Load services from the container.' + module: 'The Module name.' + class: 'Plugin class name' + label: 'Plugin label' + plugin-id: 'Plugin id' + inputs: 'Create inputs in a form.' + services: 'Load services from the container.' questions: - module: 'Enter the module name' - class: 'Enter the plugin class name' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' - inputs: common.questions.inputs - services: 'Enter your service' + module: 'Enter the module name' + class: 'Enter the plugin class name' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' + inputs: common.questions.inputs + services: 'Enter your service' examples: - - description: 'Generate an email plugin specifying the module name, the class, its label and the plugin id' - execution: | - drupal generate:plugin:mail \ - --module="modulename" \ - --class="HtmlFormatterMail" \ - --label="Html formatter mail" \ - --plugin-id="html_formatter_mail" + - + description: 'Generate an email plugin specifying the module name, the class, its label and the plugin id' + execution: "drupal generate:plugin:mail \\\n --module=\"modulename\" \\\n --class=\"HtmlFormatterMail\" \\\n --label=\"Html formatter mail\" \\\n --plugin-id=\"html_formatter_mail\"\n" diff --git a/translations/generate.plugin.migrate.dataparser.yml b/translations/generate.plugin.migrate.dataparser.yml new file mode 100644 index 0000000..a81c3a9 --- /dev/null +++ b/translations/generate.plugin.migrate.dataparser.yml @@ -0,0 +1,16 @@ +description: 'Generate a migrate data parser' +help: 'The generate:plugin:migrate:dataparser command helps you generate a new migrate data parser.' +welcome: 'Welcome to the Drupal Migrate Data Parser generator' +options: + module: 'The Module name.' + class: 'Plugin class name' + plugin-id: 'Plugin id' + plugin-title: 'Plugin title' +questions: + class: 'Enter the plugin class name' + plugin-id: 'Enter the plugin id' + plugin-title: 'Enter the plugin title' +examples: + - + description: 'Generate a migration data parser specifying the module name, the class, the plugin id and the plugin title' + execution: "drupal generate:plugin:migrate:source \\\n --module=\"modulename\" \\\n --class=\"PluginClassName\" \\\n --plugin-id=\"plugin_class_name\" \\\n --plugin-title=\"Data parser\"\n" diff --git a/translations/generate.plugin.migrate.process.yml b/translations/generate.plugin.migrate.process.yml index 1990ba0..28ca4c1 100644 --- a/translations/generate.plugin.migrate.process.yml +++ b/translations/generate.plugin.migrate.process.yml @@ -2,17 +2,14 @@ description: 'Generate a migrate process plugin' help: 'Creates new process plugin for the migration.' welcome: 'Welcome to the Drupal Migrate Process Plugin generator' options: - module: 'The Module name.' - class: 'Plugin class name' - plugin-id: 'Plugin id' + module: 'The Module name.' + class: 'Plugin class name' + plugin-id: 'Plugin id' questions: - module: 'Enter the module name' - class: 'Enter the migration process plugin class name' - plugin-id: 'Enter the migration process plugin id' + module: 'Enter the module name' + class: 'Enter the migration process plugin class name' + plugin-id: 'Enter the migration process plugin id' examples: - - description: 'Generate a migration plugin process specifying the module name, the class and its id' - execution: | - drupal generate:plugin:migrate:process \ - --module="modulename" \ - --class="MigrationProcess" \ - --plugin-id="migrationprocess" + - + description: 'Generate a migration plugin process specifying the module name, the class and its id' + execution: "drupal generate:plugin:migrate:process \\\n --module=\"modulename\" \\\n --class=\"MigrationProcess\" \\\n --plugin-id=\"migrationprocess\"\n" diff --git a/translations/generate.plugin.migrate.source.yml b/translations/generate.plugin.migrate.source.yml index 081b520..b7aa66f 100644 --- a/translations/generate.plugin.migrate.source.yml +++ b/translations/generate.plugin.migrate.source.yml @@ -2,40 +2,26 @@ description: 'Generate a migrate source plugin' help: 'The generate:migrate:plugin:source command helps you generate a new migrate source plugin.' welcome: 'Welcome to the Drupal Migrate Source Plugin generator' options: - module: 'The Module name.' - class: 'Plugin class name' - plugin-id: 'Plugin id' - table: 'Table to query' - alias: 'Short alias to refer to the table as' - group-by: 'Field to group results by' - fields: 'Fields to export' + module: 'The Module name.' + class: 'Plugin class name' + plugin-id: 'Plugin id' + table: 'Table to query' + alias: 'Short alias to refer to the table as' + group-by: 'Field to group results by' + fields: 'Fields to export' questions: - module: 'Enter the module name' - class: 'Enter the plugin class name' - plugin-id: 'Enter the plugin id' - table: 'Enter the table name' - alias: 'Enter the alias for the table' - group-by: 'Enter a field to group by if desired' - id: 'Enter the field id or press enter if done' - description: 'Enter the field description' + module: 'Enter the module name' + class: 'Enter the plugin class name' + plugin-id: 'Enter the plugin id' + table: 'Enter the table name' + alias: 'Enter the alias for the table' + group-by: 'Enter a field to group by if desired' + id: 'Enter the field id or press enter if done' + description: 'Enter the field description' examples: - - description: 'Generate a migration source plugin specifying the module name, the class, its plugin id, the table and its alias' - execution: | - drupal generate:plugin:migrate:source \ - --module="modulename" \ - --class="PluginClassName" \ - --plugin-id="plugin_class_name" \ - --table="DefaultTableName" \ - --alias="D" - - description: 'Generate a migration source plugin for specific fields of the users table specifying the module name, the class, its plugin id, the table, its alias and the fields' - execution: | - drupal generate:plugin:migrate:source \ - --module="modulename" \ - --class="DefaultPluginClass" \ - --plugin-id="default_plugin_class" \ - --table="users" \ - --alias="u" \ - --fields='"id":"id", "description":"the user id"' \ - --fields='"id":"username", "description":"the username"' \ - --fields='"id":"password", "description":"the user password"' \ - --fields='"id":"email", "description":"the user email"' + - + description: 'Generate a migration source plugin specifying the module name, the class, its plugin id, the table and its alias' + execution: "drupal generate:plugin:migrate:source \\\n --module=\"modulename\" \\\n --class=\"PluginClassName\" \\\n --plugin-id=\"plugin_class_name\" \\\n --table=\"DefaultTableName\" \\\n --alias=\"D\"" + - + description: 'Generate a migration source plugin for specific fields of the users table specifying the module name, the class, its plugin id, the table, its alias and the fields' + execution: "drupal generate:plugin:migrate:source \\\n --module=\"modulename\" \\\n --class=\"DefaultPluginClass\" \\\n --plugin-id=\"default_plugin_class\" \\\n --table=\"users\" \\\n --alias=\"u\" \\\n --fields='\"id\":\"id\", \"description\":\"the user id\"' \\\n --fields='\"id\":\"username\", \"description\":\"the username\"' \\\n --fields='\"id\":\"password\", \"description\":\"the user password\"' \\\n --fields='\"id\":\"email\", \"description\":\"the user email\"'\n" diff --git a/translations/generate.plugin.queue.yml b/translations/generate.plugin.queue.yml new file mode 100644 index 0000000..545d0ba --- /dev/null +++ b/translations/generate.plugin.queue.yml @@ -0,0 +1,20 @@ +description: 'Drupal Console Queueworker generator.' +help: 'The generate:plugin:queue command helps you generate a new queue worker plugin.' +welcome: 'Welcome to the Drupal Queue Worker Plugin generator' +options: + module: 'The module name' + class: 'QueueWorker file name' + plugin-id: 'Plugin QueueWorker id' + cron-time: 'Cron time' + label: 'Queue description' +questions: + class: 'Enter the QueueWorker class name' + plugin-id: 'Enter the Plugin QueueWorker id' + cron-time: 'Enter the cron time to execute you queue' + label: 'Enter the Queue description' +examples: + - + description: 'Generate a queue worker plugin specifying the module name, the class and its plugin id' + execution: "drupal generate:plugin:queue \\\n --module=\"modulename\" \\\n --class=\"PluginClassName\" \\\n --plugin-id=\"plugin_class_name\" \\\n --cron-time=\"30\" \\\n --label=\"Example QueueWorker\"" +messages: + success: 'The Queueworker was generated successfully.' diff --git a/translations/generate.plugin.rest.resource.yml b/translations/generate.plugin.rest.resource.yml index aa56387..c289f70 100644 --- a/translations/generate.plugin.rest.resource.yml +++ b/translations/generate.plugin.rest.resource.yml @@ -2,28 +2,22 @@ description: 'Generate plugin rest resource' help: 'The generate:plugin:rest:resource command helps you generate a new rest resource.' welcome: 'Welcome to the Drupal Plugin Rest Resource generator' options: - module: 'The Module name.' - class: 'Plugin Rest Resource class' - plugin-id: 'Plugin Rest Resource id' - plugin-label: 'Plugin Rest Resource Label' - plugin-url: 'Plugin Rest Resource URL' - plugin-states: 'Plugin Rest Resource States' + module: 'The Module name.' + class: 'Plugin Rest Resource class' + plugin-id: 'Plugin Rest Resource id' + plugin-label: 'Plugin Rest Resource Label' + plugin-url: 'Plugin Rest Resource URL' + plugin-states: 'Plugin Rest Resource States' questions: - module: 'Enter the module name' - class: 'Enter the plugin rest resource class name' - plugin-id: 'Enter the plugin rest resource id' - plugin-label: 'Enter the plugin rest resource label' - plugin-url: 'Enter the plugin rest resource url' - plugin-states: 'Please select what REST States implement in your resource (GET is selected by default)' + module: 'Enter the module name' + class: 'Enter the plugin rest resource class name' + plugin-id: 'Enter the plugin rest resource id' + plugin-label: 'Enter the plugin rest resource label' + plugin-url: 'Enter the plugin rest resource url' + plugin-states: 'Please select what REST States implement in your resource (GET is selected by default)' messages: - selected-states: 'States selected' + selected-states: 'States selected' examples: - - description: 'Generate a rest resource plugin using GET specifying the module name, the class, the plugin id, its label, the target url and the request type' - execution: | - drupal generate:plugin:rest:resource \ - --module="modulename" \ - --class="DefaultRestResource" \ - --plugin-id="default_rest_resource" \ - --plugin-label="Default rest resource" \ - --plugin-url="http://rest.resources.example.com" \ - --plugin-states='GET' + - + description: 'Generate a rest resource plugin using GET specifying the module name, the class, the plugin id, its label, the target url and the request type' + execution: "drupal generate:plugin:rest:resource \\\n --module=\"modulename\" \\\n --class=\"DefaultRestResource\" \\\n --plugin-id=\"default_rest_resource\" \\\n --plugin-label=\"Default rest resource\" \\\n --plugin-url=\"http://rest.resources.example.com\" \\\n --plugin-states='GET'\n" diff --git a/translations/generate.plugin.rules.action.yml b/translations/generate.plugin.rules.action.yml index 1fe7907..664ada3 100644 --- a/translations/generate.plugin.rules.action.yml +++ b/translations/generate.plugin.rules.action.yml @@ -2,40 +2,28 @@ description: 'Generate a plugin rule action' help: 'The generate:plugin:rules:action command helps you generate a new plugin rule action.' welcome: 'Welcome to the Drupal Plugin Rules Action generator' options: - module: common.options.module - class: 'Plugin class' - label: 'Plugin label' - plugin-id: 'Plugin id' - category: 'Plugin category' - context: 'Plugin context' + module: common.options.module + class: 'Plugin class' + label: 'Plugin label' + plugin-id: 'Plugin id' + category: 'Plugin category' + context: 'Plugin context' questions: - module: common.questions.module - class: 'Enter plugin class' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' - category: 'Enter plugin category' - context: 'Would you like to add a context?' - another-context: 'Would you like to add another context?' - context-name: 'Enter context name' - context-type: 'Enter context type (entity, entity:user_role, entity:user, language, any, string and etc.)' - context-label: 'Enter context label' - context-description: 'Enter context description' + module: common.questions.module + class: 'Enter plugin class' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' + category: 'Enter plugin category' + context: 'Would you like to add a context?' + another-context: 'Would you like to add another context?' + context-name: 'Enter context name' + context-type: 'Enter context type (entity, entity:user_role, entity:user, language, any, string and etc.)' + context-label: 'Enter context label' + context-description: 'Enter context description' examples: - - description: 'Generate a user rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context' - execution: | - drupal generate:plugin:rules:action \ - --module="modulename" \ - --class="DefaultAction" \ - --label="Default Action" \ - --plugin-id="default_action" \ - --category="Action category" \ - --context='"name":"user", "type":"entity:user", "label":"Context label", "description":"Context description"' - - description: 'Generate a entity rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context' - execution: | - drupal generate:plugin:rules:action \ - --module="modulename" \ - --class="DefaultAction" \ - --label="Default Action" \ - --plugin-id="default_action" \ - --category="Action category" \ - --context='"entity":"node", "type":"entity", "label":"Context label", "description":"Context description"' + - + description: 'Generate a user rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context' + execution: "drupal generate:plugin:rules:action \\\n --module=\"modulename\" \\\n --class=\"DefaultAction\" \\\n --label=\"Default Action\" \\\n --plugin-id=\"default_action\" \\\n --category=\"Action category\" \\\n --context='\"name\":\"user\", \"type\":\"entity:user\", \"label\":\"Context label\", \"description\":\"Context description\"'" + - + description: 'Generate a entity rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context' + execution: "drupal generate:plugin:rules:action \\\n --module=\"modulename\" \\\n --class=\"DefaultAction\" \\\n --label=\"Default Action\" \\\n --plugin-id=\"default_action\" \\\n --category=\"Action category\" \\\n --context='\"entity\":\"node\", \"type\":\"entity\", \"label\":\"Context label\", \"description\":\"Context description\"'\n" diff --git a/translations/generate.plugin.rules.condition.yml b/translations/generate.plugin.rules.condition.yml index 9d27219..da80025 100644 --- a/translations/generate.plugin.rules.condition.yml +++ b/translations/generate.plugin.rules.condition.yml @@ -2,31 +2,25 @@ description: 'Generate a plugin rule condition' help: 'The generate:plugin:rules:condition command helps you generate a new plugin rule condition.' welcome: 'Welcome to the Drupal Plugin Rules Action generator' options: - module: common.options.module - class: 'Plugin class' - label: 'Plugin label' - plugin-id: 'Plugin id' - category: 'Plugin category' - context: 'Plugin context' + module: common.options.module + class: 'Plugin class' + label: 'Plugin label' + plugin-id: 'Plugin id' + category: 'Plugin category' + context: 'Plugin context' questions: - module: common.questions.module - class: 'Enter plugin class' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' - category: 'Enter plugin category' - context: 'Would you like to add a context?' - another-context: 'Would you like to add another context?' - context-name: 'Enter context name' - context-type: 'Enter context type (entity, entity:user_role, entity:user, language, any, string and etc.)' - context-label: 'Enter context label' - context-description: 'Enter context description' + module: common.questions.module + class: 'Enter plugin class' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' + category: 'Enter plugin category' + context: 'Would you like to add a context?' + another-context: 'Would you like to add another context?' + context-name: 'Enter context name' + context-type: 'Enter context type (entity, entity:user_role, entity:user, language, any, string and etc.)' + context-label: 'Enter context label' + context-description: 'Enter context description' examples: - - description: 'Generate a rule condition plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context' - execution: | - drupal generate:plugin:rules:condition \ - --module="modulename" \ - --class="DefaultAction" \ - --label="Default Action" \ - --plugin-id="default_condition" \ - --category="Action category" \ - --context='"name":"user", "type":"entity:user", "label":"Context label", "description":"Context description"' \ No newline at end of file + - + description: 'Generate a rule condition plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context' + execution: "drupal generate:plugin:rules:condition \\\n --module=\"modulename\" \\\n --class=\"DefaultAction\" \\\n --label=\"Default Action\" \\\n --plugin-id=\"default_condition\" \\\n --category=\"Action category\" \\\n --context='\"name\":\"user\", \"type\":\"entity:user\", \"label\":\"Context label\", \"description\":\"Context description\"'" diff --git a/translations/generate.plugin.rules.dataprocessor.yml b/translations/generate.plugin.rules.dataprocessor.yml index 3896ddb..e66dfbf 100644 --- a/translations/generate.plugin.rules.dataprocessor.yml +++ b/translations/generate.plugin.rules.dataprocessor.yml @@ -2,23 +2,19 @@ description: 'Generate a plugin rule dataprocessor' help: 'The generate:plugin:rules:dataprocessor command helps you generate a new Plugin rule dataprocessor.' welcome: 'Welcome to the Drupal Plugin Rules Dataprocessor generator' options: - module: common.options.module - class: 'Plugin class name' - label: 'Plugin label' - plugin-id: 'Plugin id' - category: 'Plugin category' - context: 'Plugin context' - type: 'Dataprocessor Type (user or node)' + module: common.options.module + class: 'Plugin class name' + label: 'Plugin label' + plugin-id: 'Plugin id' + category: 'Plugin category' + context: 'Plugin context' + type: 'Dataprocessor Type (user or node)' questions: - module: 'Enter the module name' - class: 'Enter the plugin class name' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' + module: 'Enter the module name' + class: 'Enter the plugin class name' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' examples: - - description: 'Generate a user rule dataprocessor plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context' - execution: | - drupal generate:plugin:rules:dataprocessor \ - --module="modulename" \ - --class="DefaultDataprocessor" \ - --label="Default dataprocessor" \ - --plugin-id="default_dataprocessor" \ + - + description: 'Generate a user rule dataprocessor plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context' + execution: "drupal generate:plugin:rules:dataprocessor \\\n --module=\"modulename\" \\\n --class=\"DefaultDataprocessor\" \\\n --label=\"Default dataprocessor\" \\\n --plugin-id=\"default_dataprocessor\" \\\n" diff --git a/translations/generate.plugin.skeleton.yml b/translations/generate.plugin.skeleton.yml index 1bf61e7..2a58ba8 100644 --- a/translations/generate.plugin.skeleton.yml +++ b/translations/generate.plugin.skeleton.yml @@ -1,24 +1,20 @@ description: 'Generate an implementation of a skeleton plugin' help: 'The "%s" command helps you generate a skeleton plugin "%s".' welcome: 'Welcome to the Drupal Skeleton Plugin generator' - options: - module: 'The Module name.' - plugin: 'The Plugin Id.' - class: 'Plugin class name' - services: 'Load services from the container.' + module: 'The Module name.' + plugin: 'The Plugin Id.' + class: 'Plugin class name' + services: 'Load services from the container.' questions: - module: 'Enter the module name' - plugin: 'Enter the Plugin Id' - class: 'Enter the plugin class name' - services: 'Enter your service' + module: 'Enter the module name' + plugin: 'Enter the Plugin Id' + class: 'Enter the plugin class name' + services: 'Enter your service' messages: - plugin-dont-exist: 'The plugin "%s" does not exist.' - plugin-generator-implemented: 'Plugin "%s" already has an advanced command generator, please use "%s"' + plugin-dont-exist: 'The plugin "%s" does not exist.' + plugin-generator-implemented: 'Plugin "%s" already has an advanced command generator, please use "%s"' examples: - - description: 'Generate a plugin skeleton specifying module name, the plugin id and the class' - execution: | - drupal generate:plugin:skeleton \ - --module="modulename" \ - --plugin-id="link_relation_type" \ - --class="DefaultLinkRelationType" + - + description: 'Generate a plugin skeleton specifying module name, the plugin id and the class' + execution: "drupal generate:plugin:skeleton \\\n --module=\"modulename\" \\\n --plugin-id=\"link_relation_type\" \\\n --class=\"DefaultLinkRelationType\"\n" diff --git a/translations/generate.plugin.type.annotation.yml b/translations/generate.plugin.type.annotation.yml index b75e064..7f51ddb 100644 --- a/translations/generate.plugin.type.annotation.yml +++ b/translations/generate.plugin.type.annotation.yml @@ -2,20 +2,16 @@ description: 'Generate a plugin type with annotation discovery' help: 'The generate:plugin:type:annotation command helps you generate a new Plugin type that uses annotation discovery.' welcome: 'Welcome to the Drupal Plugin Type Annotation generator' options: - module: common.options.module - class: 'Plugin type class name' - machine-name: 'Plugin type machine name' - label: 'Plugin type label' + module: common.options.module + class: 'Plugin type class name' + machine-name: 'Plugin type machine name' + label: 'Plugin type label' questions: - module: common.questions.module - class: 'Enter the plugin type class name' - machine-name: 'Enter the plugin type machine name' - label: 'Enter the plugin type label' + module: common.questions.module + class: 'Enter the plugin type class name' + machine-name: 'Enter the plugin type machine name' + label: 'Enter the plugin type label' examples: - - description: 'Generate a plugin with annotation discovery specifying module name, class name, machine name and label' - execution: | - drupal generate:plugin:type:annotation \ - --module="modulename" \ - --class="ExamplePlugin" \ - --machine-name="example_plugin" \ - --label="Example plugin" + - + description: 'Generate a plugin with annotation discovery specifying module name, class name, machine name and label' + execution: "drupal generate:plugin:type:annotation \\\n --module=\"modulename\" \\\n --class=\"ExamplePlugin\" \\\n --machine-name=\"example_plugin\" \\\n --label=\"Example plugin\"\n" diff --git a/translations/generate.plugin.type.yaml.yml b/translations/generate.plugin.type.yaml.yml index 63f0963..89ee42b 100644 --- a/translations/generate.plugin.type.yaml.yml +++ b/translations/generate.plugin.type.yaml.yml @@ -2,20 +2,16 @@ description: 'Generate a plugin type with Yaml discovery' help: 'The generate:plugin:type:yaml command helps you generate a new Plugin type that uses Yaml discovery.' welcome: 'Welcome to the Drupal Plugin Type Yaml generator' options: - module: 'The Module name.' - class: 'Plugin type class name' - plugin-name: 'Plugin type machine name' - plugin-file-name: 'Plugin file name' + module: 'The Module name.' + class: 'Plugin type class name' + plugin-name: 'Plugin type machine name' + plugin-file-name: 'Plugin file name' questions: - module: 'Enter the module name' - class: 'Enter the plugin type class name' - plugin-name: 'Enter the plugin type machine name' - plugin-file-name: 'Enter the plugin file name (e.g. MODULE.plugin.filename.yml)' + module: 'Enter the module name' + class: 'Enter the plugin type class name' + plugin-name: 'Enter the plugin type machine name' + plugin-file-name: 'Enter the plugin file name (e.g. MODULE.plugin.filename.yml)' examples: - - description: 'Generate a plugin with Yaml discovery specifying module name, class name, plugin name and plugin file name' - execution: | - drupal generate:plugin:type:yaml \ - --module="modulename" \ - --class="ExamplePlugin" \ - --plugin-name="example_plugin" \ - --plugin-file-name="example.plugin" + - + description: 'Generate a plugin with Yaml discovery specifying module name, class name, plugin name and plugin file name' + execution: "drupal generate:plugin:type:yaml \\\n --module=\"modulename\" \\\n --class=\"ExamplePlugin\" \\\n --plugin-name=\"example_plugin\" \\\n --plugin-file-name=\"example.plugin\"\n" diff --git a/translations/generate.plugin.validationconstraint.yml b/translations/generate.plugin.validationconstraint.yml index d0dd8b2..be4ca83 100644 --- a/translations/generate.plugin.validationconstraint.yml +++ b/translations/generate.plugin.validationconstraint.yml @@ -2,29 +2,20 @@ description: 'Generate a validation constraint plugin.' help: 'The generate:plugin:validationconstraint command helps you generate a new validation constraint plugin.' welcome: 'Welcome to the Drupal Validation Constraint Plugin generator' options: - class: 'Plugin class name' - label: 'Plugin label' - plugin-id: 'Plugin id' - hook: 'Generate hook to validate a field' - bundle: 'Bundle' - field-id: 'Field id' + class: 'Plugin class name' + label: 'Plugin label' + plugin-id: 'Plugin id' + hook: 'Generate hook to validate a field' + bundle: Bundle + field-id: 'Field id' questions: - class: 'Enter the plugin class name' - label: 'Enter the plugin label' - plugin-id: 'Enter the plugin id' - hook: 'Do you want to generate a hook to validate a field?' - bundle: 'Enter entity bundle' - field-id: 'Enter field id' + class: 'Enter the plugin class name' + label: 'Enter the plugin label' + plugin-id: 'Enter the plugin id' + hook: 'Do you want to generate a hook to validate a field?' + bundle: 'Enter entity bundle' + field-id: 'Enter field id' examples: - - description: 'Generate a validation constraint plugin specifying the module name, the class, its label, the plugin id, the entity bundle and the field id' - execution: | - drupal generate:plugin:validationconstraint \ - --module="modulename" \ - --class="ExampleConstraint" \ - --label="Example validation constraint" \ - -plugin-id="example_validation_constraint" \ - --hook \ - --field-id="field_exmaple_id" \ - --bundle="entity_example_bundle" \ - --no-interaction - + - + description: 'Generate a validation constraint plugin specifying the module name, the class, its label, the plugin id, the entity bundle and the field id' + execution: "drupal generate:plugin:validationconstraint \\\n --module=\"modulename\" \\\n --class=\"ExampleConstraint\" \\\n --label=\"Example validation constraint\" \\\n -plugin-id=\"example_validation_constraint\" \\\n --hook \\\n --field-id=\"field_exmaple_id\" \\\n --bundle=\"entity_example_bundle\" \\\n --no-interaction\n" diff --git a/translations/generate.plugin.views.field.yml b/translations/generate.plugin.views.field.yml index 0750835..3c617fc 100644 --- a/translations/generate.plugin.views.field.yml +++ b/translations/generate.plugin.views.field.yml @@ -2,22 +2,18 @@ description: 'Generate a custom plugin view field.' help: 'The generate:plugin:views:field command helps you generate a new custom views field plugin.' welcome: 'Welcome to the Drupal Plugin View Field generator' options: - module: 'The Module name.' - fields: 'Fields definition (class name, title and description).' + module: 'The Module name.' + fields: 'Fields definition (class name, title and description).' questions: - module: 'Enter the module name' - class: 'Enter the views plugin field class name' - title: 'Enter the views plugin field title' - description: 'Enter the views plugin field description' - description_default: 'My awesome custom views field plugin.' - field-add: 'Do you want to add another field?' + module: 'Enter the module name' + class: 'Enter the views plugin field class name' + title: 'Enter the views plugin field title' + description: 'Enter the views plugin field description' + description_default: 'My awesome custom views field plugin.' + field-add: 'Do you want to add another field?' messages: - views-data-already-implemented: 'The hook views data was already implemented in module "%s". Please, merge the code manually' + views-data-already-implemented: 'The hook views data was already implemented in module "%s". Please, merge the code manually' examples: - - description: 'Generate a custom view field plugin specifying the module name, the class, a title and its description' - execution: | - drupal generate:plugin:views:field \ - --module="modulename" \ - --class="CustomViewsField" \ - --title="Custom views field" \ - --description="My awesome custom views field plugin." + - + description: 'Generate a custom view field plugin specifying the module name, the class, a title and its description' + execution: "drupal generate:plugin:views:field \\\n --module=\"modulename\" \\\n --class=\"CustomViewsField\" \\\n --title=\"Custom views field\" \\\n --description=\"My awesome custom views field plugin.\"\n" diff --git a/translations/generate.post.update.yml b/translations/generate.post.update.yml index 6957876..8b7eb95 100644 --- a/translations/generate.post.update.yml +++ b/translations/generate.post.update.yml @@ -2,17 +2,15 @@ description: 'Generate an implementation of hook_post_update_NAME()' help: 'The "%s" command helps you generate a hook post update NAME "%s"' welcome: 'Welcome to the Drupal Post Updat generator' options: - module: 'The Module name.' - post-update-name: 'Post Update Name' + module: 'The Module name.' + post-update-name: 'Post Update Name' questions: - module: 'Enter the module name' - post-update-name: 'Please provide the Post Update Name to be implemeted' + module: 'Enter the module name' + post-update-name: 'Please provide the Post Update Name to be implemeted' messages: - wrong-post-update-name: 'The post update name "%s" is invalid' - post-update-name-already-implemented: 'The post update name "%s" was already implemented' + wrong-post-update-name: 'The post update name "%s" is invalid' + post-update-name-already-implemented: 'The post update name "%s" was already implemented' examples: - - description: 'Generate an implementation of post update hook specifying the module name and the post update name' - execution: | - drupal generate:post:update \ - --module="modulename" \ - --post-update-name="PostUpdateName" + - + description: 'Generate an implementation of post update hook specifying the module name and the post update name' + execution: "drupal generate:post:update \\\n --module=\"modulename\" \\\n --post-update-name=\"PostUpdateName\"\n" diff --git a/translations/generate.profile.yml b/translations/generate.profile.yml index c037569..6b3483a 100644 --- a/translations/generate.profile.yml +++ b/translations/generate.profile.yml @@ -2,36 +2,31 @@ description: 'Generate a profile.' help: 'The generate:profile command helps you generate a new installation profile.' welcome: 'Welcome to the Drupal installation profile generator' options: - profile: 'The profile name' - machine-name: 'The machine name (lowercase and underscore only)' - profile-path: 'The path of the profile' - description: 'Profile description' - core: 'Core version' - dependencies: 'Module dependencies separated by commas (i.e. context, panels)' - themes: 'the theme name' - distribution: 'The distribution name' + profile: 'The profile name' + machine-name: 'The machine name (lowercase and underscore only)' + profile-path: 'The path of the profile' + description: 'Profile description' + core: 'Core version' + dependencies: 'Module dependencies separated by commas (i.e. context, panels)' + themes: 'the theme name' + distribution: 'The distribution name' questions: - profile: 'Enter the name of the new profile' - machine-name: 'Enter the machine name' - profile-path: 'Enter the profile Path' - description: 'Enter the description' - core: 'Enter Drupal Core version' - dependencies: 'Would you like to add module dependencies?' - themes: 'Enter theme name' - distribution: 'Is this install profile intended to be a distribution?' + profile: 'Enter the name of the new profile' + machine-name: 'Enter the machine name' + profile-path: 'Enter the profile Path' + description: 'Enter the description' + core: 'Enter Drupal Core version' + dependencies: 'Would you like to add module dependencies?' + themes: 'Enter theme name' + distribution: 'Is this install profile intended to be a distribution?' suggestions: - my-useful-profile: 'My Useful Profile' - my-kick-ass-distribution: 'My Kick-ass Distribution' + my-useful-profile: 'My Useful Profile' + my-kick-ass-distribution: 'My Kick-ass Distribution' warnings: - module-unavailable: 'Warning: The following modules are not available in your local environment "%s"' + module-unavailable: 'Warning: The following modules are not available in your local environment "%s"' errors: - directory-exists: 'The target directory "%s" is not empty.' + directory-exists: 'The target directory "%s" is not empty.' examples: - - description: 'Generate a profile specifying the profile name, the machine name, a description, the core and its module dependencies' - execution: | - drupal generate:profile \ - --profile="NewProfileName" \ - --machine-name="newprofilename" \ - --description="My Useful Profile" \ - --core="8.x" \ - --dependencies="modulename" + - + description: 'Generate a profile specifying the profile name, the machine name, a description, the core and its module dependencies' + execution: "drupal generate:profile \\\n --profile=\"NewProfileName\" \\\n --machine-name=\"newprofilename\" \\\n --description=\"My Useful Profile\" \\\n --core=\"8.x\" \\\n --dependencies=\"modulename\"\n" diff --git a/translations/generate.routesubscriber.yml b/translations/generate.routesubscriber.yml index f509067..b130c74 100644 --- a/translations/generate.routesubscriber.yml +++ b/translations/generate.routesubscriber.yml @@ -2,17 +2,14 @@ description: 'Generate a RouteSubscriber' help: 'The generate:service command helps you generate a new RouteSubscriber.' welcome: 'Welcome to the Drupal RouteSubscriber generator.' options: - module: 'The Module name.' - name: 'Service name' - class: 'Class name' + module: 'The Module name.' + name: 'Service name' + class: 'Class name' questions: - module: 'Enter the module name' - name: 'Enter the service name' - class: 'Enter the Class name' + module: 'Enter the module name' + name: 'Enter the service name' + class: 'Enter the Class name' examples: - - description: 'Generate a route subscriber specifying the module name, the route name and its class' - execution: | - drupal generate:routesubscriber \ - --module="modulename" \ - --name="modulename.route_subscriber" \ - --class="RouteSubscriber" + - + description: 'Generate a route subscriber specifying the module name, the route name and its class' + execution: "drupal generate:routesubscriber \\\n --module=\"modulename\" \\\n --name=\"modulename.route_subscriber\" \\\n --class=\"RouteSubscriber\"\n" diff --git a/translations/generate.service.yml b/translations/generate.service.yml index bbf1cf3..dc98ff0 100644 --- a/translations/generate.service.yml +++ b/translations/generate.service.yml @@ -2,39 +2,29 @@ description: 'Generate service' help: 'The generate:service command helps you generate a new service.' welcome: 'Welcome to the Drupal service generator' options: - module: 'The Module name.' - service-name: 'Service name' - class: 'Class name' - interface: 'Interface' - interface-name: 'Interface name' - logger-channel: 'Logger channel' - services: 'Load services from the container.' - path-service: 'Path' + module: 'The Module name.' + service-name: 'Service name' + class: 'Class name' + interface: Interface + interface-name: 'Interface name' + logger-channel: 'Logger channel' + services: 'Load services from the container.' + path-service: Path questions: - module: 'Enter the module name' - service-name: 'Enter the service name' - class: 'Enter the Class name' - interface: 'Create an interface' - interface-name: 'Enter the interface name' - logger-channel: 'Create a logger channel' - services: 'Enter your service' - path-service: 'Enter the path for the services' + module: 'Enter the module name' + service-name: 'Enter the service name' + class: 'Enter the Class name' + interface: 'Create an interface' + interface-name: 'Enter the interface name' + logger-channel: 'Create a logger channel' + services: 'Enter your service' + path-service: 'Enter the path for the services' messages: - service-already-taken: 'The service name has been already taken in module "%s"' + service-already-taken: 'The service name has been already taken in module "%s"' examples: - - description: 'Generate a services without interface specifying the module name, the service name, the class and its path' - execution: | - drupal generate:service \ - --module="modulename" \ - --name="modulename.default" \ - --class="DefaultService" \ - --path-service="/modules/custom/modulename/src/" - - description: 'Generate a services with interface specifying the module name, the service name, the class, the interface name and its path' - execution: | - drupal generate:service \ - --module="modulename" \ - --name="modulename.default" \ - --class="DefaultService" \ - --interface \ - --interface-name="InterfaceName" \ - --path-service="/modules/custom/modulename/src/" + - + description: 'Generate a services without interface specifying the module name, the service name, the class and its path' + execution: "drupal generate:service \\\n --module=\"modulename\" \\\n --name=\"modulename.default\" \\\n --class=\"DefaultService\" \\\n --path-service=\"/modules/custom/modulename/src/\"" + - + description: 'Generate a services with interface specifying the module name, the service name, the class, the interface name and its path' + execution: "drupal generate:service \\\n --module=\"modulename\" \\\n --name=\"modulename.default\" \\\n --class=\"DefaultService\" \\\n --interface \\\n --interface-name=\"InterfaceName\" \\\n --path-service=\"/modules/custom/modulename/src/\"\n" diff --git a/translations/generate.site.alias.yml b/translations/generate.site.alias.yml index ca3a7c1..b9cd8ce 100644 --- a/translations/generate.site.alias.yml +++ b/translations/generate.site.alias.yml @@ -1,25 +1,31 @@ description: 'Generates a site alias.' help: 'The generate:site:alias command helps you generate a new site alias.' options: - name: 'Site name.' - environment: 'Environment name.' - type: 'The site type.' - composer-root: 'The Drupal root project directory.' - host: 'The ip/domain name of the remote system. Not required on local sites.' - port: 'The port to use when connecting via ssh.' - user: 'The username to use when connecting via ssh.' - extra-options: 'Used only when the target requires extra options, such as alternative authentication method and/or alternative identity file.' - site-uri: 'Drupal uri (for multi-sites).' - directory: 'Directory to store the generated site alias.' - site: 'Use local site as destination.' + name: 'Site name.' + environment: 'Environment name.' + type: 'The site type.' + composer-root: 'The Drupal root project directory.' + host: 'The ip/domain name of the remote system. Not required on local sites.' + port: 'The port to use when connecting via ssh.' + user: 'The username to use when connecting via ssh.' + drupal-console-binary: 'The name of your drupal console binary. By default is "drupal"' + extra-options: 'Used only when the target requires extra options, such as alternative authentication method and/or alternative identity file.' + site-uri: 'Drupal uri (for multi-sites).' + directory: 'Directory to store the generated site alias.' + site: 'Use local site as destination.' questions: - name: 'Select or enter the site name' - environment: 'Enter the environment name (dev, test, prod, qa, dev.uri, test.uri, etc...)' - type: 'Select site type. Allowed options [local, ssh or container].' - composer-root: 'Enter the Drupal root project directory.' - host: 'Enter the ip/domain name of the remote system.' - port: 'Enter the port to use when connecting via ssh.' - user: 'Enter the username to use when connecting via ssh.' - extra-options: 'Select or enter a valid extra option.' - site-uri: 'Enter the Drupal uri (for multi-sites).' - directory: 'Select the directory to store the generated site alias.' + name: 'Select or enter the site name' + environment: 'Enter the environment name (dev, test, prod, qa, dev.uri, test.uri, etc...)' + type: 'Select site type. Allowed options [local, ssh or container].' + composer-root: 'Enter the Drupal root project directory.' + host: 'Enter the ip/domain name of the remote system.' + port: 'Enter the port to use when connecting via ssh.' + user: 'Enter the username to use when connecting via ssh.' + drupal-console-binary: 'Enter the name of your drupal console binary' + extra-options: 'Select or enter a valid extra option.' + site-uri: 'Enter the Drupal uri (for multi-sites).' + directory: 'Select the directory to store the generated site alias.' +examples: + - + description: 'Generate site alias to connect with ssh using tty as extra-option' + execution: "drupal generate:site:alias \\\n --name=\"demo\" \\\n --environment=\"dev\" \\\n --type=\"ssh\" \\\n --composer-root=\"/path/to/remote/project\" \\\n --site-uri=\"default\" \\\n --host=\"hostName/domain\" \\\n --user=\"userName\" \\\n --port=\"port\" \\\n --drupal-console-binary=\"drupal\" \\\n --extra-options=\"-tt\" \\\n --directory=\"/Users/hjuarez/drupalSq/console/\"" diff --git a/translations/generate.theme.yml b/translations/generate.theme.yml index 9b54abd..4570b12 100644 --- a/translations/generate.theme.yml +++ b/translations/generate.theme.yml @@ -2,72 +2,54 @@ description: 'Generate a theme.' help: 'The generate:theme command helps you generates a new theme.' welcome: 'Welcome to the Drupal theme generator' options: - theme: 'The theme name' - machine-name: 'The machine name (lowercase and underscore only)' - theme-path: 'The path of the theme' - description: 'Theme description' - core: 'Core version' - package: 'Theme package' - composer: 'Add a composer.json file' - base-theme: 'Base theme (i.e. classy, stable)' - global-library: 'Global styling library name' - libraries: 'Libraries' - regions: Regions - breakpoints: Breakpoints + theme: 'The theme name' + machine-name: 'The machine name (lowercase and underscore only)' + theme-path: 'The path of the theme' + description: 'Theme description' + core: 'Core version' + package: 'Theme package' + composer: 'Add a composer.json file' + base-theme: 'Base theme (i.e. classy, stable)' + base-theme-regions: 'Add the default regions of the chosen base theme' + global-library: 'Global styling library name' + libraries: Libraries + regions: Regions + breakpoints: Breakpoints questions: - theme: 'Enter the new theme name' - machine-name: 'Enter the theme machine name' - theme-path: 'Enter the theme Path' - description: 'Enter theme description' - core: 'Enter Drupal Core version' - package: 'Enter package name' - dependencies: 'Would you like to add module dependencies?' - invalid-theme: 'Invalid "%s" theme was selected' - global-library: 'Enter the global styling library name' - library-add: 'Do you want to add another library?' - library-name: 'Enter library name' - library-version: 'Enter library version' - regions: 'Do you want to generate the theme regions?' - region-name: 'Enter region name' - region-machine-name: 'Enter region machine name' - region-add: 'Do you want to add another region?' - breakpoints: 'Do you want to generate the theme breakpoints?' - breakpoint-name: 'Enter breakpoint name' - breakpoint-label: 'Enter breakpoint label' - breakpoint-media-query: 'Enter breakpoint media query' - breakpoint-weight: 'Enter breakpoint weight' - breakpoint-multipliers: 'Enter breakpoint multipliers' - breakpoint-add: 'Do you want to add another breakpoint?' + theme: 'Enter the new theme name' + machine-name: 'Enter the theme machine name' + theme-path: 'Enter the theme Path' + description: 'Enter theme description' + core: 'Enter Drupal Core version' + package: 'Enter package name' + dependencies: 'Would you like to add module dependencies?' + invalid-theme: 'Invalid "%s" theme was selected' + global-library: 'Enter the global styling library name' + library-add: 'Do you want to add another library?' + library-name: 'Enter library name' + library-version: 'Enter library version' + regions: 'Do you want to generate the theme regions?' + region-name: 'Enter region name' + region-machine-name: 'Enter region machine name' + region-add: 'Do you want to add another region?' + breakpoints: 'Do you want to generate the theme breakpoints?' + breakpoint-name: 'Enter breakpoint name' + breakpoint-label: 'Enter breakpoint label' + breakpoint-media-query: 'Enter breakpoint media query' + breakpoint-weight: 'Enter breakpoint weight' + breakpoint-multipliers: 'Enter breakpoint multipliers' + breakpoint-add: 'Do you want to add another breakpoint?' suggestions: - my-awesome-theme: 'My Awesome theme' - other: 'Other' + my-awesome-theme: 'My Awesome theme' + other: Other warnings: - module-unavailable: 'Warning The following modules are not available in your local environment "%s"' + module-unavailable: 'Warning The following modules are not available in your local environment "%s"' errors: - directory-exists: 'The target directory "%s" is not empty.' + directory-exists: 'The target directory "%s" is not empty.' examples: - - description: 'Generate a theme without region and without breakpoint specifying the theme name, its machine name, the theme path, a description, the drupal core, the package name and the global library' - execution: | - drupal generate:theme \ - --theme="AnotherTheme" \ - --machine-name="anothertheme" \ - --theme-path="themes/custom" \ - --description="My Awesome theme" \ - --core="8.x" \ - --package="PackageName" \ - --global-library="global-styling" \ - --base-theme="false" - - description: 'Generate a theme base on stable theme with two region defined and one breakpoint specifying the theme name, its machine name, the theme path, a description, the drupal core, the package name, a global library, its base, the regions and the breakpoint' - execution: | - drupal generate:theme \ - --theme="MyTheme" \ - --machine-name="mytheme" \ - --theme-path="themes/custom" \ - --description="My Awesome theme" \ - --core="8.x" \ - --package="MyThemePackage" \ - --global-library="global-styling" \ - --base-theme="stable" \ - --regions='"region_name":"Content", "region_machine_name":"content"' \ - --regions='"region_name":"Panel", "region_machine_name":"panel"' \ - --breakpoints='"breakpoint_name":"narrow", "breakpoint_label":"narrow", "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)", "breakpoint_weight":"1", "breakpoint_multipliers":"1x"' + - + description: 'Generate a theme without region and without breakpoint specifying the theme name, its machine name, the theme path, a description, the drupal core, the package name and the global library' + execution: "drupal generate:theme \\\n --theme=\"AnotherTheme\" \\\n --machine-name=\"anothertheme\" \\\n --theme-path=\"themes/custom\" \\\n --description=\"My Awesome theme\" \\\n --core=\"8.x\" \\\n --package=\"PackageName\" \\\n --global-library=\"global-styling\" \\\n --base-theme=\"false\"" + - + description: 'Generate a theme base on stable theme with two region defined and one breakpoint specifying the theme name, its machine name, the theme path, a description, the drupal core, the package name, a global library, its base, the regions and the breakpoint' + execution: "drupal generate:theme \\\n --theme=\"MyTheme\" \\\n --machine-name=\"mytheme\" \\\n --theme-path=\"themes/custom\" \\\n --description=\"My Awesome theme\" \\\n --core=\"8.x\" \\\n --package=\"MyThemePackage\" \\\n --global-library=\"global-styling\" \\\n --base-theme=\"stable\" \\\n --regions='\"region_name\":\"Content\", \"region_machine_name\":\"content\"' \\\n --regions='\"region_name\":\"Panel\", \"region_machine_name\":\"panel\"' \\\n --breakpoints='\"breakpoint_name\":\"narrow\", \"breakpoint_label\":\"narrow\", \"breakpoint_media_query\":\"all and (min-width: 560px) and (max-width: 850px)\", \"breakpoint_weight\":\"1\", \"breakpoint_multipliers\":\"1x\"'\n" diff --git a/translations/generate.twig.extension.yml b/translations/generate.twig.extension.yml index ae84a7e..74a655c 100644 --- a/translations/generate.twig.extension.yml +++ b/translations/generate.twig.extension.yml @@ -2,19 +2,16 @@ description: 'Generate a Twig extension.' help: 'The generate:twig:extension command helps you to generate a Twig extension.' welcome: 'Welcome to the Drupal Twig Extension generator' options: - module: 'The Module name.' - name: 'Twig Extension name' - class: 'Class name' - services: 'Load services from the container.' + module: 'The Module name.' + name: 'Twig Extension name' + class: 'Class name' + services: 'Load services from the container.' questions: - module: 'Enter the module name' - name: 'Enter the twig Extension name' - class: 'Class name' - services: 'Enter your service' + module: 'Enter the module name' + name: 'Enter the twig Extension name' + class: 'Class name' + services: 'Enter your service' examples: - - description: 'Generate a twig extension specifying the module name, the extension name and its class' - execution: | - drupal generate:twig:extension \ - --module="modulename" \ - --name="modulename.twig.extension" \ - --class="DefaultTwigExtension" + - + description: 'Generate a twig extension specifying the module name, the extension name and its class' + execution: "drupal generate:twig:extension \\\n --module=\"modulename\" \\\n --name=\"modulename.twig.extension\" \\\n --class=\"DefaultTwigExtension\"\n" diff --git a/translations/generate.update.yml b/translations/generate.update.yml index 614b421..54ee3af 100644 --- a/translations/generate.update.yml +++ b/translations/generate.update.yml @@ -2,16 +2,14 @@ description: 'Generate an implementation of hook_update_N()' help: 'The "%s" command helps you generate a hook update N "%s"' welcome: 'Welcome to the Drupal Update generator' options: - module: 'The Module name.' - update-n: 'Update Number' + module: 'The Module name.' + update-n: 'Update Number' questions: - module: 'Enter the module name' - update-n: 'Please provide the Update N to be implemeted' + module: 'Enter the module name' + update-n: 'Please provide the Update N to be implemeted' messages: - wrong-update-n: 'The update number "%s" is invalid' + wrong-update-n: 'The update number "%s" is invalid' examples: - - description: 'Generate an update N hook implementation specifying the module name and the N value' - execution: | - drupal generate:update \ - --module="modulename" \ - --update-n="8001" + - + description: 'Generate an update N hook implementation specifying the module name and the N value' + execution: "drupal generate:update \\\n --module=\"modulename\" \\\n --update-n=\"8001\"\n" diff --git a/translations/help.yml b/translations/help.yml index d8deefc..657f542 100644 --- a/translations/help.yml +++ b/translations/help.yml @@ -1,14 +1,5 @@ description: 'Displays help for a command' -help: | - The %command.name% command displays help for a given command: - - php %command.full_name% list - - You can also output the help in other formats by using the --format option: - - php %command.full_name% --format=xml list - - To display the list of available commands, please use the list command. +help: "The %command.name% command displays help for a given command:\n\nphp %command.full_name% list\n\nYou can also output the help in other formats by using the --format option:\n\nphp %command.full_name% --format=xml list\n\nTo display the list of available commands, please use the list command.\n" arguments: command-name: 'The command name' options: diff --git a/translations/image.styles.flush.yml b/translations/image.styles.flush.yml index f613fad..7b9c241 100644 --- a/translations/image.styles.flush.yml +++ b/translations/image.styles.flush.yml @@ -1,15 +1,15 @@ description: 'Execute flush function by image style or execute all flush images styles' messages: - executing-flush: 'Executing flush function on image style "%s"' - success: 'All flush functions requested were executed successfully' + executing-flush: 'Executing flush function on image style "%s"' + success: 'All flush functions requested were executed successfully' options: - image-style: 'The Images Styles name.' + image-style: 'The Images Styles name.' questions: - image-style: 'Select Images Styles to flush.' + image-style: 'Select Images Styles to flush.' examples: - - description: 'Flush large image style' - execution: | - drupal image:styles:flush large - - description: 'Flush thumbnail image style' - execution: | - drupal image:styles:flush thumbnail + - + description: 'Flush large image style' + execution: "drupal image:styles:flush large\n" + - + description: 'Flush thumbnail image style' + execution: "drupal image:styles:flush thumbnail\n" diff --git a/translations/init.yml b/translations/init.yml index d2bc26a..f5d7e04 100644 --- a/translations/init.yml +++ b/translations/init.yml @@ -1,17 +1,20 @@ description: 'Copy configuration files.' options: - destination: 'Destination directory to copy files' - override: 'Override configurations files flag' - autocomplete: 'Autocomplete tool files flag.' - site: 'Use local site as destination.' + destination: 'Destination directory to copy files' + override: 'Override configurations files flag' + autocomplete: 'Autocomplete tool files flag.' + site: 'Use local site as destination.' questions: - destination: 'Select destination to copy configuration' - autocomplete: 'Generate autocomplete files' - language: 'Select language' - temp: 'Enter temporary file path' - chain: 'Copy chain files examples' - sites: 'Copy site alias files examples' - temp: 'Enter temporary file path' - learning: 'Shows information for learning purposes?' - generate-inline: 'Show inline representation of the executed command?' - generate-chain: 'Show chain representation of the executed command?' + destination: 'Select destination to copy configuration' + autocomplete: 'Generate autocomplete files' + language: 'Select language' + temp: 'Enter temporary file path' + chain: 'Copy chain files examples' + sites: 'Copy site alias files examples' + learning: 'Shows information for learning purposes?' + generate-inline: 'Show inline representation of the executed command?' + generate-chain: 'Show chain representation of the executed command?' + statistics: 'Allow to collect and send this information to drupalConsole server?' +messages: + statistics: "Help us improve the Drupal Console project, providing information about how you use the application.\nThe colleted information at \"%s\", would be:\n\n- Used language\n- Executed command\n- Generated lines of code\n\nYou could read about our privacy policy at http://drupalconsole.com/privacy.\n" + statistics-disable: "You can stop sending information using the following command:\n\ndrupal settings:set statistics.enabled false\n" diff --git a/translations/list.yml b/translations/list.yml index 7683426..dcf1b17 100644 --- a/translations/list.yml +++ b/translations/list.yml @@ -1,25 +1,16 @@ description: 'Lists all available commands' -help: | - The %command.name% command lists all commands: - php %command.full_name% - You can also display the commands for a specific namespace: - php %command.full_name% test - You can also output the information in other formats by using the --format option: - php %command.full_name% --format=xml - It's also possible to get raw list of commands (useful for embedding command runner): - php %command.full_name% --raw +help: "The %command.name% command lists all commands:\nphp %command.full_name%\nYou can also display the commands for a specific namespace:\nphp %command.full_name% test\nYou can also output the information in other formats by using the --format option:\nphp %command.full_name% --format=xml\nIt's also possible to get raw list of commands (useful for embedding command runner):\nphp %command.full_name% --raw\n" arguments: - namespace: 'The namespace name' + namespace: 'The namespace name' options: - xml: 'To output list as XML' - raw: 'To output raw command list' - format: 'The output format (txt, xml, json, or md)' - + xml: 'To output list as XML' + raw: 'To output raw command list' + format: 'The output format (txt, xml, json, or md)' messages: - usage: "Usage:\n" - usage-details: " command [options] [arguments]\n\n" - arguments: 'Arguments:' - options: 'Options:' - help: 'Help:' - comment: 'Available commands for the "%s" namespace:' - available-commands: 'Available commands:' + usage: "Usage:\n" + usage-details: " command [options] [arguments]\n\n" + arguments: 'Arguments:' + options: 'Options:' + help: 'Help:' + comment: 'Available commands for the "%s" namespace:' + available-commands: 'Available commands:' diff --git a/translations/locale.language.add.yml b/translations/locale.language.add.yml index 29fa09e..f693159 100644 --- a/translations/locale.language.add.yml +++ b/translations/locale.language.add.yml @@ -1,8 +1,8 @@ description: 'Add languages to be supported by your site' messages: - invalid-language: 'Language "%s" is an invalid language' - invalid-languages: 'Languages "%s" are invalid' - language-add-successfully: 'Language "%s" was added successfully.' - languages-add-successfully: 'Languages "%s" were added successfully.' - language-installed: 'Language "%s" is already installed.' - languages-installed: 'Languages "%s" are already installed.' + invalid-language: 'Language "%s" is an invalid language' + invalid-languages: 'Languages "%s" are invalid' + language-add-successfully: 'Language "%s" was added successfully.' + languages-add-successfully: 'Languages "%s" were added successfully.' + language-installed: 'Language "%s" is already installed.' + languages-installed: 'Languages "%s" are already installed.' diff --git a/translations/locale.language.delete.yml b/translations/locale.language.delete.yml index df219c2..8f16b0f 100644 --- a/translations/locale.language.delete.yml +++ b/translations/locale.language.delete.yml @@ -1,4 +1,4 @@ description: 'Delete a language to be supported by your site' messages: - invalid-language: 'Language "%s" it''s an invalid language' - language-deleted-successfully: 'Language "%s" was deleted successfully.' + invalid-language: 'Language "%s" it''s an invalid language' + language-deleted-successfully: 'Language "%s" was deleted successfully.' diff --git a/translations/locale.translation.status.yml b/translations/locale.translation.status.yml index e1e219c..913e511 100644 --- a/translations/locale.translation.status.yml +++ b/translations/locale.translation.status.yml @@ -1,18 +1,18 @@ description: 'List available translation updates' arguments: - language: 'Language for instance es or Spanish' + language: 'Language for instance es or Spanish' messages: - no-languages: 'No translatable languages available. Add a language first.' - up-to-date: 'All translations up to date.' - no-translations: 'No translation status available. Check manually' - project: 'Project' - version: 'Version' - local-age: 'Local age' - remote-age: 'Remote age' - info: Information - no-translation-files: 'No translation files are provided for development releases.' - file-not-found: 'File not found at "%s" nor at "%s"' - local-file-not-found: 'File not found at "%s"' - translation-not-determined: 'Translation file location could not be determined.' - translation-project-updated: 'Updated' - translation-project-available: 'New translation available' + no-languages: 'No translatable languages available. Add a language first.' + up-to-date: 'All translations up to date.' + no-translations: 'No translation status available. Check manually' + project: Project + version: Version + local-age: 'Local age' + remote-age: 'Remote age' + info: Information + no-translation-files: 'No translation files are provided for development releases.' + file-not-found: 'File not found at "%s" nor at "%s"' + local-file-not-found: 'File not found at "%s"' + translation-not-determined: 'Translation file location could not be determined.' + translation-project-updated: Updated + translation-project-available: 'New translation available' diff --git a/translations/migrate.execute.yml b/translations/migrate.execute.yml index 393e089..faee650 100644 --- a/translations/migrate.execute.yml +++ b/translations/migrate.execute.yml @@ -11,7 +11,7 @@ options: db-prefix: 'Database Prefix' db-port: 'Database Port' exclude: 'Migration id(s) to exclude' - source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)' + source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)' questions: id: 'Migration Id' exclude-id: 'Migration Id to exclude (press to stop adding migrations to exclude)' @@ -25,7 +25,7 @@ questions: db-prefix: 'Database Prefix' db-port: 'Database Port' invalid-migration-id: 'Migration Id "%s" is invalid' - source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)' + source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)' messages: processing: 'Processing Migration "%s"' imported: 'Migration "%s" was imported correctly' diff --git a/translations/migrate.rollback.yml b/translations/migrate.rollback.yml index 3666626..13bdae8 100644 --- a/translations/migrate.rollback.yml +++ b/translations/migrate.rollback.yml @@ -3,4 +3,4 @@ arguments: id: 'Migration id(s)' messages: not-available: 'Migration Id "%s" is invalid.Skipping' - processing: 'Rollback "%s" completed' \ No newline at end of file + processing: 'Rollback "%s" completed' diff --git a/translations/migrate.setup.yml b/translations/migrate.setup.yml index 70d6120..af9e5ed 100644 --- a/translations/migrate.setup.yml +++ b/translations/migrate.setup.yml @@ -7,7 +7,7 @@ options: db-pass: 'Database Pass' db-prefix: 'Database Prefix' db-port: 'Database Port' - source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)' + source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)' questions: db-type: 'Drupal Database type' db-host: 'Database Host' @@ -16,7 +16,7 @@ questions: db-pass: 'Database Pass' db-prefix: 'Database Prefix' db-port: 'Database Port' - source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)' + source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)' messages: not-drupal: 'Source database does not contain a recognizable Drupal version.' migrations-created: '"%s" migrations were created successfully for "%s".' diff --git a/translations/module.dependency.install.yml b/translations/module.dependency.install.yml index f8ccae9..4eddbe4 100644 --- a/translations/module.dependency.install.yml +++ b/translations/module.dependency.install.yml @@ -1,11 +1,11 @@ description: 'Install dependencies module in the application' arguments: - module: 'Module or modules to be enabled should be separated by a space' + module: 'Module or modules to be enabled should be separated by a space' messages: - no-depencies: 'Nothing to do. This module does not have any dependencies to install' - installing: 'Installing module(s) "%s"' - success: 'The following module(s) were installed successfully: "%s"' + no-depencies: 'Nothing to do. This module does not have any dependencies to install' + installing: 'Installing module(s) "%s"' + success: 'The following module(s) were installed successfully: "%s"' examples: - - description: 'Install the dependencies of the specfied module' - execution: | - drupal module:dependency:install modulename + - + description: 'Install the dependencies of the specfied module' + execution: "drupal module:dependency:install modulename\n" diff --git a/translations/module.download.yml b/translations/module.download.yml index 03e3c47..566a010 100644 --- a/translations/module.download.yml +++ b/translations/module.download.yml @@ -1,25 +1,24 @@ description: 'Download module or modules in application' arguments: - module: 'Module or modules to be enabled should be separated by a space' + module: 'Module or modules to be enabled should be separated by a space' options: - latest: 'Default to download most recent version' - path: 'The path of the contrib project' - composer: 'Option to point out that the module will be downloaded, managed & installed by Composer' - unstable: 'Module unstable' + latest: 'Default to download most recent version' + path: 'The path of the contrib project' + composer: 'Option to point out that the module will be downloaded, managed & installed by Composer' + unstable: 'Module unstable' questions: - path: 'Enter the contrib project Path' + path: 'Enter the contrib project Path' messages: - no-releases: 'There aren''t any releases for module "%s"' - getting-releases: 'Getting releases for module "%s"' - downloading: 'Downloading module "%s" release "%s"' - downloaded: 'Module "%s" version "%s" was downloaded successfully at "%s"' - select-release: 'Please select your favorite release' - outside-drupal: 'Drupal root can''t be determined. Use --root to set the destination, current folder will be used instead of.' - error-creating-folder: 'Error creating folder "%s", please check your permissions' - no-composer-repo: 'Please, configure Composer in ~/.console/config.yml' - composer: 'Module "%s" was downloaded successfully using Composer' + no-releases: 'There aren''t any releases for module "%s"' + getting-releases: 'Getting releases for module "%s"' + downloading: 'Downloading module "%s" release "%s"' + downloaded: 'Module "%s" version "%s" was downloaded successfully at "%s"' + select-release: 'Please select your favorite release' + outside-drupal: 'Drupal root can''t be determined. Use --root to set the destination, current folder will be used instead of.' + error-creating-folder: 'Error creating folder "%s", please check your permissions' + no-composer-repo: 'Please, configure Composer in ~/.console/config.yml' + composer: 'Module "%s" was downloaded successfully using Composer' examples: - - description: 'Download module specifying module name and its path' - execution: | - drupal module:download modulename \ - --path="modules/contrib" + - + description: 'Download module specifying module name and its path' + execution: "drupal module:download modulename \\\n --path=\"modules/contrib\"\n" diff --git a/translations/module.install.yml b/translations/module.install.yml index 8aa35ec..be51160 100644 --- a/translations/module.install.yml +++ b/translations/module.install.yml @@ -1,35 +1,35 @@ description: 'Install module or modules in the application' arguments: - module: 'Module or modules to be enabled should be separated by a space' + module: 'Module or modules to be enabled should be separated by a space' options: - latest: 'Default to download most recent version' - composer: 'Download the module using Composer' + latest: 'Default to download most recent version' + composer: 'Download the module using Composer' questions: - module: 'Module name (press to stop adding modules)' - invalid-module: 'Invalid module "%s"' + module: 'Module name (press to stop adding modules)' + invalid-module: 'Invalid module "%s"' messages: - no-modules: 'You must provide module or modules to enable.' - missing: 'Unable to install module(s) "%s" due to missing module(s) "%s"' - missing-dependencies: 'Unable to install modules "%s" due to missing dependencies "%s"' - nothing: 'Nothing to do. All modules are already installed' - dependencies: 'Are you sure you want to install dependencies: "%s"?' - success: 'The following module(s) were installed successfully: "%s"' - disabled-modules: 'Only disabled modules will be listed in autocomplete' - config-conflict-overwrite: 'These configuration objects will be overwritten in your active configuration' - config-conflict: 'These configuration objects already exist in active configuration, installation is not possible' - getting-missing-modules: 'One or more modules "%s" are not available, running download process to get those modules' - getting-releases: 'Getting releases for module "%s"' - select-release: 'Please select your favorite release' - downloading: 'Downloading module "%s" release "%s"' - downloaded: 'Module "%s" version "%s" was downloaded successfully at "%s"' - no-releases: 'There aren''t any releases for module "%s"' - installing: 'Installing module(s) "%s"' - composer: 'The module was installed successfully with Composer' - error-creating-folder: 'Error creating folder "%s", please check your permissions' - download-with-composer: 'Module "%s" was downloaded with Composer.' - not-installed-with-composer: 'Module "%s" seems not to be installed with Composer. Halting.' - invalid-name: 'Invalid module name: "%s"' + no-modules: 'You must provide module or modules to enable.' + missing: 'Unable to install module(s) "%s" due to missing module(s) "%s"' + missing-dependencies: 'Unable to install modules "%s" due to missing dependencies "%s"' + nothing: 'Nothing to do. All modules are already installed' + dependencies: 'Are you sure you want to install dependencies: "%s"?' + success: 'The following module(s) were installed successfully: "%s"' + disabled-modules: 'Only disabled modules will be listed in autocomplete' + config-conflict-overwrite: 'These configuration objects will be overwritten in your active configuration' + config-conflict: 'These configuration objects already exist in active configuration, installation is not possible' + getting-missing-modules: 'One or more modules "%s" are not available, running download process to get those modules' + getting-releases: 'Getting releases for module "%s"' + select-release: 'Please select your favorite release' + downloading: 'Downloading module "%s" release "%s"' + downloaded: 'Module "%s" version "%s" was downloaded successfully at "%s"' + no-releases: 'There aren''t any releases for module "%s"' + installing: 'Installing module(s) "%s"' + composer: 'The module was installed successfully with Composer' + error-creating-folder: 'Error creating folder "%s", please check your permissions' + download-with-composer: 'Module "%s" was downloaded with Composer.' + not-installed-with-composer: 'Module "%s" seems not to be installed with Composer. Halting.' + invalid-name: 'Invalid module name: "%s"' examples: - - description: 'Install module specifying the module name' - execution: | - drupal module:install modulename + - + description: 'Install module specifying the module name' + execution: "drupal module:install modulename\n" diff --git a/translations/module.path.yml b/translations/module.path.yml index 70407ff..528f8a7 100644 --- a/translations/module.path.yml +++ b/translations/module.path.yml @@ -1,10 +1,10 @@ description: 'Returns the relative path to the module (or absolute path)' arguments: - module: 'The Module name (machine name)' + module: 'The Module name (machine name)' options: - absolute: 'Return module absolute path' -messages: + absolute: 'Return module absolute path' +messages: null examples: - - description: 'Get the relative path of the module specifying the module name' - execution: | - drupal module:path modulename + - + description: 'Get the relative path of the module specifying the module name' + execution: "drupal module:path modulename\n" diff --git a/translations/module.uninstall.yml b/translations/module.uninstall.yml index 3b6d6a8..eed51b4 100755 --- a/translations/module.uninstall.yml +++ b/translations/module.uninstall.yml @@ -1,19 +1,21 @@ description: 'Uninstall module or modules in the application' +arguments: + module: 'Module or modules to be uninstalled should be separated by a space' questions: - module: 'Module name (press to stop adding modules)' - invalid-module: 'Invalid module "%s"' + module: 'Module name (press to stop adding modules)' + invalid-module: 'Invalid module "%s"' options: - module: 'Module or modules to be uninstalled should be separated by a space' - force: 'Do you want to ignore dependencies and forcefully uninstall the module?' - composer: 'Uninstalls the module using Composer' + force: 'Do you want to ignore dependencies and forcefully uninstall the module?' + composer: 'Uninstalls the module using Composer' + module: 'Module or modules to be uninstalled should be separated by a space' messages: - no-modules: 'You must provide module or modules to uninstall.' - dependents: 'Unable to uninstall modules "%s" because are required by "%s"' - nothing: 'Nothing to do. All modules are already uninstalled' - success: 'The following module(s) were uninstalled successfully: "%s"' - missing: 'Unable to uninstall modules "%s" due to missing modules "%s"' - composer-success: 'You should execute now the following command: "composer remove vendor/package"' + no-modules: 'You must provide module or modules to uninstall.' + dependents: 'Unable to uninstall modules "%s" because are required by "%s"' + nothing: 'Nothing to do. All modules are already uninstalled' + success: 'The following module(s) were uninstalled successfully: "%s"' + missing: 'Unable to uninstall modules "%s" due to missing modules "%s"' + composer-success: 'You should execute now the following command: "composer remove vendor/package"' examples: - - description: 'Uninstall the module specifying the module name' - execution: | - drupal module:uninstall modulename + - + description: 'Uninstall the module specifying the module name' + execution: "drupal module:uninstall modulename\n" diff --git a/translations/module.update.yml b/translations/module.update.yml index 0bd1729..609ccbc 100644 --- a/translations/module.update.yml +++ b/translations/module.update.yml @@ -1,19 +1,18 @@ description: 'Update core, module or modules in the application' arguments: - module: 'Module or modules to be updated should be separated by a space. Leave empty for updating the core and all your modules managed by Composer.' + module: 'Module or modules to be updated should be separated by a space. Leave empty for updating the core and all your modules managed by Composer.' options: - composer: 'Update the module using Composer' - simulate: 'Simulate the update process with Composer' + composer: 'Update the module using Composer' + simulate: 'Simulate the update process with Composer' questions: - module: 'Module name (press to stop adding modules)' - invalid-module: 'Invalid module "%s"' + module: 'Module name (press to stop adding modules)' + invalid-module: 'Invalid module "%s"' messages: - success: 'The following module(s) were installed successfully: "%s"' - composer: 'The module "%s" was managed successfully with Composer' - only-composer: 'This command only updates modules via Composer. Use --composer option.' - missing-module: 'Enter a module(s) name(s) to update.' + success: 'The following module(s) were installed successfully: "%s"' + composer: 'The module "%s" was managed successfully with Composer' + only-composer: 'This command only updates modules via Composer. Use --composer option.' + missing-module: 'Enter a module(s) name(s) to update.' examples: - - description: 'Update module specifying module name and composer parameter' - execution: | - drupal module:update modulename \ - --composer + - + description: 'Update module specifying module name and composer parameter' + execution: "drupal module:update modulename \\\n --composer\n" diff --git a/translations/multisite.new.yml b/translations/multisite.new.yml index 0f361ba..3453790 100644 --- a/translations/multisite.new.yml +++ b/translations/multisite.new.yml @@ -1,28 +1,28 @@ description: 'Sets up the files for a new multisite install.' help: 'The multisite:new command assists in setting up new multisite installs by creating the needed subdirectory and files, and can optionally copy an existing ''default'' installation.' arguments: - directory: 'Name of directory under ''sites'' which should be created.' - uri: 'Site URI to add to sites.php.' + directory: 'Name of directory under ''sites'' which should be created.' + uri: 'Site URI to add to sites.php.' options: - copy-default: 'Copies existing site from the default install.' + copy-default: 'Copies existing site from the default install.' errors: - subdir-empty: 'You must specify a multisite subdirectory to create.' - subdir-exists: 'The "sites/%s" directory already exists.' - default-missing: 'The sites/default directory is missing.' - mkdir-fail: 'Unable to create "sites/%s". Please check the sites directory permissions and try again.' - sites-invalid: 'The sites.php file located is either not readable or not a file.' - sites-missing: 'No sites.php or example.sites.php to copy from.' - sites-other: 'A problem was encountered when attempting to write sites.php' - file-missing: 'The file "%s" was not found for copying.' - copy-fail: 'Unable to copy "%s" to "%s". Please check permissions and try again.' - write-fail: 'Unable to write to the file "%s". Please check the file permissions and try again.' - chmod-fail: 'Unable to change permissions on the file "%s". Please ensure that the permissions on that file are correct.' + subdir-empty: 'You must specify a multisite subdirectory to create.' + subdir-exists: 'The "sites/%s" directory already exists.' + default-missing: 'The sites/default directory is missing.' + mkdir-fail: 'Unable to create "sites/%s". Please check the sites directory permissions and try again.' + sites-invalid: 'The sites.php file located is either not readable or not a file.' + sites-missing: 'No sites.php or example.sites.php to copy from.' + sites-other: 'A problem was encountered when attempting to write sites.php' + file-missing: 'The file "%s" was not found for copying.' + copy-fail: 'Unable to copy "%s" to "%s". Please check permissions and try again.' + write-fail: 'Unable to write to the file "%s". Please check the file permissions and try again.' + chmod-fail: 'Unable to change permissions on the file "%s". Please ensure that the permissions on that file are correct.' warnings: - missing-files: 'No sites/default/files directory found. The files directory will need to be created by hand.' + missing-files: 'No sites/default/files directory found. The files directory will need to be created by hand.' messages: - copy-default: 'The default install was successfully copied to "sites/%s".' - fresh-site: 'The new multisite structure was successfully created at "sites/%s" and is ready for installation.' + copy-default: 'The default install was successfully copied to "sites/%s".' + fresh-site: 'The new multisite structure was successfully created at "sites/%s" and is ready for installation.' examples: - - description: 'Set up files for a multisite install specifying destination path and uri' - execution: | - drupal multisite:new vendor/newsite http://mysite.example.com + - + description: 'Set up files for a multisite install specifying destination path and uri' + execution: "drupal multisite:new vendor/newsite http://mysite.example.com\n" diff --git a/translations/multisite.update.yml b/translations/multisite.update.yml index 0da5c90..50bca24 100644 --- a/translations/multisite.update.yml +++ b/translations/multisite.update.yml @@ -1,22 +1,22 @@ description: 'Update the files for a multisite installed.' help: 'The multisite:new command assists in setting up new multisite installs by creating the needed subdirectory and files, and can optionally copy an existing ''default'' installation.' options: - uri: 'Name of old directory under ''sites'' which should be updated.' - directory: 'Name of new directory for multisite installed. (You could create subdir separated by ''/'')' + uri: 'Name of old directory under ''sites'' which should be updated.' + directory: 'Name of new directory for multisite installed. (You could create subdir separated by ''/'')' questions: - uri: 'Choice the multisite to update' - directory: 'Enter the new name (You could use subdir separated by ''/'')' + uri: 'Choice the multisite to update' + directory: 'Enter the new name (You could use subdir separated by ''/'')' errors: - invalid-uri: 'The --uri="%s" does not exist' - uri-dir-empty: 'You must specify a old multisite directory to update.' - new-dir-empty: 'You must specify a new name to update multisite.' - subdir-exists: 'The "sites/%s" directory already exists.' - mkdir-fail: 'Unable to create "sites/%s". Please check the sites directory permissions and try again.' - copy-fail: 'Unable to copy "%s" to "%s". Please check permissions and try again.' - write-fail: 'Unable to write to the file "%s". Please check the file permissions and try again.' + invalid-uri: 'The --uri="%s" does not exist' + uri-dir-empty: 'You must specify a old multisite directory to update.' + new-dir-empty: 'You must specify a new name to update multisite.' + subdir-exists: 'The "sites/%s" directory already exists.' + mkdir-fail: 'Unable to create "sites/%s". Please check the sites directory permissions and try again.' + copy-fail: 'Unable to copy "%s" to "%s". Please check permissions and try again.' + write-fail: 'Unable to write to the file "%s". Please check the file permissions and try again.' messages: - move-settings: 'The file settings.php was successfully movied to "sites/%s".' + move-settings: 'The file settings.php was successfully movied to "sites/%s".' examples: - - description: 'Update the files for a multisite installed specifying old path and new path' - execution: | - drupal multisite:update + - + description: 'Update the files for a multisite installed specifying old path and new path' + execution: "drupal multisite:update\n" diff --git a/translations/node.access.rebuild.yml b/translations/node.access.rebuild.yml index c18b6da..23b2914 100644 --- a/translations/node.access.rebuild.yml +++ b/translations/node.access.rebuild.yml @@ -1,12 +1,12 @@ description: 'Rebuild node access permissions.' help: 'Rebuilding will remove all privileges to content and replace them with permissions based on the current modules and settings.' options: - batch: 'Process in batch mode.' + batch: 'Process in batch mode.' messages: - rebuild: 'Rebuilding node access permissions, one moment please.' - completed: 'Done rebuilding permissions.' - failed: 'Rebuilding permissions was not successful.' + rebuild: 'Rebuilding node access permissions, one moment please.' + completed: 'Done rebuilding permissions.' + failed: 'Rebuilding permissions was not successful.' examples: - - description: Rebuild node access permissions - execution: - drupal node:access:rebuild --batch + - + description: 'Rebuild node access permissions' + execution: 'drupal node:access:rebuild --batch' diff --git a/translations/queue.run.yml b/translations/queue.run.yml index 0411433..2dbfed6 100644 --- a/translations/queue.run.yml +++ b/translations/queue.run.yml @@ -1,9 +1,8 @@ description: 'Process the selected queue.' arguments: - name: 'Queue name.' + name: 'Queue name.' messages: - success: 'Processed "%s": "%s"/"%s" items in "%s" seconds.' - failed: '"%s" failed: "%s".' - missing-name: 'Provide a valid queue name.' - invalid-name: 'Invalid queue name "%s" provided.' - + success: 'Processed "%s": "%s"/"%s" items in "%s" seconds.' + failed: '"%s" failed: "%s".' + missing-name: 'Provide a valid queue name.' + invalid-name: 'Invalid queue name "%s" provided.' diff --git a/translations/role.delete.yml b/translations/role.delete.yml index 1eeb545..67efa37 100644 --- a/translations/role.delete.yml +++ b/translations/role.delete.yml @@ -2,13 +2,13 @@ description: 'Delete roles for the application' help: 'The role:delete command helps you delete roles.' welcome: 'Welcome to the Drupal role delete' arguments: - rolename: 'Roles name to be deleted' + rolename: 'Roles name to be deleted' messages: - role-id: 'Role Id' - role-name: 'Role Name' - role-created: 'Roles was deleted successfully' - invalid-machine-name: 'Role does not exist' + role-id: 'Role Id' + role-name: 'Role Name' + role-created: 'Roles was deleted successfully' + invalid-machine-name: 'Role does not exist' examples: - - description: 'Delete role specifying rolename' - execution: | - drupal role:delete moderator + - + description: 'Delete role specifying rolename' + execution: "drupal role:delete moderator\n" diff --git a/translations/role.new.yml b/translations/role.new.yml index 54303a3..16db8ad 100644 --- a/translations/role.new.yml +++ b/translations/role.new.yml @@ -2,17 +2,17 @@ description: 'Create roles for the application' help: 'The role:new command helps you create roles.' welcome: 'Welcome to the Drupal role create' arguments: - rolename: 'Role name to be created' - machine-name: 'Role machine name' + rolename: 'Role name to be created' + machine-name: 'Role machine name' questions: - rolename: 'Role name to be created' - machine-name: 'Role machine name' + rolename: 'Role name to be created' + machine-name: 'Role machine name' messages: - role-id: 'Role Id' - role-name: 'Role Name' - role-created: 'Role "%s" was created successfully' - invalid-machine-name: 'The machine name is already exist' + role-id: 'Role Id' + role-name: 'Role Name' + role-created: 'Role "%s" was created successfully' + invalid-machine-name: 'The machine name is already exist' examples: - - description: 'Create role specifying rolename and machine-name' - execution: | - drupal role:new moderator moderator + - + description: 'Create role specifying rolename and machine-name' + execution: "drupal role:new moderator moderator\n" diff --git a/translations/router.rebuild.yml b/translations/router.rebuild.yml index bc0fbc1..706090f 100644 --- a/translations/router.rebuild.yml +++ b/translations/router.rebuild.yml @@ -1,10 +1,11 @@ description: 'Rebuild routes for the application' arguments: - route-name: 'Route names' + route-name: 'Route names' messages: - rebuilding: 'Rebuilding routes, wait a moment please' - completed: 'Done rebuilding route(s).' + rebuilding: 'Rebuilding routes, wait a moment please' + completed: 'Done rebuilding route(s).' + error-rebuild: 'Error to rebuild route(s).' examples: - - description: 'Rebuild routes' - execution: - drupal router:rebuild + - + description: 'Rebuild routes' + execution: 'drupal router:rebuild' diff --git a/translations/self-update.yml b/translations/self-update.yml index 72014fd..c6c62ed 100644 --- a/translations/self-update.yml +++ b/translations/self-update.yml @@ -1,20 +1,15 @@ description: 'Update project to the latest version.' help: 'Update project to the latest version.' options: - major: 'Update to a new major version, if available.' - manifest: 'Override the manifest file path.' - current-version: 'Override the version to update from.' + major: 'Update to a new major version, if available.' + manifest: 'Override the manifest file path.' + current-version: 'Override the version to update from.' questions: - update: 'Update from version "%s" to version "%s".' + update: 'Update from version "%s" to version "%s".' messages: - not-phar: 'This instance of the CLI was not installed as a Phar archive.' - update: 'Updating to version "%s".' - success: 'Updated from version "%s" to version "%s".' - check: 'Checking for updates from version: "%s"' - current-version: 'The latest version "%s", was already installed on your system.' - instructions: | - Update using: composer global update - Or you can switch to a Phar install recommended - composer global remove drupal/console - curl https://drupalconsole.com/installer -L -o drupal.phar - + not-phar: 'This instance of the CLI was not installed as a Phar archive.' + update: 'Updating to version "%s".' + success: 'Updated from version "%s" to version "%s".' + check: 'Checking for updates from version: "%s"' + current-version: 'The latest version "%s", was already installed on your system.' + instructions: "Update using: composer global update\nOr you can switch to a Phar install recommended\ncomposer global remove drupal/console\ncurl https://drupalconsole.com/installer -L -o drupal.phar\n" diff --git a/translations/server.yml b/translations/server.yml index 86d5ca0..5f771fc 100644 --- a/translations/server.yml +++ b/translations/server.yml @@ -1,15 +1,18 @@ description: 'Runs PHP built-in web server' arguments: - address: 'The address:port values' + address: 'The address:port values' messages: - executing: 'Executing php from "%s".' - listening: 'Listening on "%s".' + executing: 'Executing php from "%s".' + listening: 'Listening on "%s".' errors: - binary: 'Unable to find PHP binary to run server.' + binary: 'Unable to find PHP binary to run server.' examples: - - description: 'Run using default address argument value 127.0.0.1:8088' - execution: 'drupal server' - - description: 'Passing address argument to use a different port number' - execution: 'drupal server 127.0.0.1:8089' - - description: 'Running default address argument values, using --root option to define the Drupal root' - execution: 'drupal --root=/var/www/drupal8.dev server' + - + description: 'Run using default address argument value 127.0.0.1:8088' + execution: 'drupal server' + - + description: 'Passing address argument to use a different port number' + execution: 'drupal server 127.0.0.1:8089' + - + description: 'Running default address argument values, using --root option to define the Drupal root' + execution: 'drupal --root=/var/www/drupal8.dev server' diff --git a/translations/settings.set.yml b/translations/settings.set.yml index b7150bc..84990a9 100644 --- a/translations/settings.set.yml +++ b/translations/settings.set.yml @@ -1,15 +1,15 @@ description: 'Change a specific setting value in DrupalConsole config file' arguments: - name: 'Setting name in YAML flatten format to set a value in Drupal Console config file' - value: 'Setting value to set in Drupal Console config file' + name: 'Setting name in YAML flatten format to set a value in Drupal Console config file' + value: 'Setting value to set in Drupal Console config file' messages: - error-parsing: 'An error occurs during parsing of YAML file "%s".' - error-generating: 'Error setting new language in config file.' - error-writing: 'Error writing config file.' - success: 'Setting "%s" was set to "%s"' - missing-file: 'The "%s" config file is missing, try executing `drupal init`' - missing-language: 'Provided language: "%s", not found' + error-parsing: 'An error occurs during parsing of YAML file "%s".' + error-generating: 'Error setting new language in config file.' + error-writing: 'Error writing config file.' + success: 'Setting "%s" was set to "%s"' + missing-file: 'The "%s" config file is missing, try executing `drupal init`' + missing-language: 'Provided language: "%s", not found' examples: - - description: 'Set application language setting value to "es"' - execution: - drupal settings:set application.language es + - + description: 'Set application language setting value to "es"' + execution: 'drupal settings:set application.language es' diff --git a/translations/site.import.local.yml b/translations/site.import.local.yml index 39a43b9..ea0080b 100644 --- a/translations/site.import.local.yml +++ b/translations/site.import.local.yml @@ -1,20 +1,20 @@ description: 'Import/Configure an existing local Drupal project' help: 'The site:import:local does create the yaml configuration file for a local existing site.' arguments: - directory: 'Existing Drupal root directory' - name: 'Name that will be used to generate the site config' + directory: 'Existing Drupal root directory' + name: 'Name that will be used to generate the site config' options: - environment: 'Name of the environment that is going to be imported' + environment: 'Name of the environment that is going to be imported' messages: - imported: 'The site has been imported successfully. You might want to run `drupal debug:site` to confirm that everything went well.' - error-missing: 'The directory "%s" does not exist.' - error-not-drupal: 'This is not a valid drupal root: "%s"' - error-writing: 'An error occurred while trying to write the config file: "%s"' + imported: 'The site has been imported successfully. You might want to run `drupal debug:site` to confirm that everything went well.' + error-missing: 'The directory "%s" does not exist.' + error-not-drupal: 'This is not a valid drupal root: "%s"' + error-writing: 'An error occurred while trying to write the config file: "%s"' questions: - directory: 'Enter the directory name where to install Drupal' - name: 'Enter the name of the site' - environment: 'Enter the site environment name' + directory: 'Enter the directory name where to install Drupal' + name: 'Enter the name of the site' + environment: 'Enter the site environment name' examples: - - description: 'Import local drupal project specifying the site name and the path' - execution: - drupal site:import:local SiteName /private/var/www/vhost/anexusit/drupal8.dev/web + - + description: 'Import local drupal project specifying the site name and the path' + execution: 'drupal site:import:local SiteName /private/var/www/vhost/anexusit/drupal8.dev/web' diff --git a/translations/site.install.yml b/translations/site.install.yml index a831470..dc4b612 100644 --- a/translations/site.install.yml +++ b/translations/site.install.yml @@ -1,48 +1,42 @@ description: 'Install a Drupal project' arguments: - profile: 'Drupal Profile to be installed' - langcode: 'Drupal language' - db-type: 'Drupal Database type to be used in install' - db-file: 'Drupal Database file to be used in install' - site-name: 'Drupal site name' - site-mail: 'Drupal site mail' - account-name: 'Drupal administrator account name' - account-mail: 'Drupal administrator account mail' - account-pass: 'Drupal administrator account password' - force: 'Force to reinstall the site' + profile: 'Drupal Profile to be installed' + langcode: 'Drupal language' + db-url: 'Use Database url to the installation instead of using the options. (Sqlite is not supported)' + db-type: 'Drupal Database type to be used in install' + db-file: 'Drupal Database file to be used in install' + site-name: 'Drupal site name' + site-mail: 'Drupal site mail' + account-name: 'Drupal administrator account name' + account-mail: 'Drupal administrator account mail' + account-pass: 'Drupal administrator account password' + force: 'Force to reinstall the site' questions: - profile: 'Select Drupal profile to be installed' - langcode: 'Select language for your Drupal installation' - db-type: 'Select Drupal Database type to be used in install' - site-name: 'Provide your Drupal site name' - site-mail: 'Provide your Drupal site mail' - account-name: 'Provide your Drupal administrator account name' - account-mail: 'Provide your Drupal administrator account mail' - account-pass: 'Provide your Drupal administrator account password' + profile: 'Select Drupal profile to be installed' + langcode: 'Select language for your Drupal installation' + db-type: 'Select Drupal Database type to be used in install' + site-name: 'Provide your Drupal site name' + site-mail: 'Provide your Drupal site mail' + account-name: 'Provide your Drupal administrator account name' + account-mail: 'Provide your Drupal administrator account mail' + account-pass: 'Provide your Drupal administrator account password' suggestions: - site-name: 'My awesome site' + site-name: 'My awesome site' messages: - installing: 'Starting Drupal 8 install process' - installed: 'Your Drupal 8 installation was completed successfully' - using-current-database: 'Using "%s" database with name "%s" and user "%s"' - already-installed: 'Drupal is already installed, try dropping your database executing database:drop or install executing site:install --force --no-interaction' - sites-backup: 'The sites.php file has temporarily been renamed to backup.sites.php while Drupal installs.' - sites-restore: 'The backup of sites.php has been been restored to sites.php.' - invalid-multisite: 'Invalid multisite, please create multisite using command drupal multisite:new "%s" "%s"' + installing: 'Starting Drupal 8 install process' + installed: 'Your Drupal 8 installation was completed successfully' + using-current-database: 'Using "%s" database with name "%s" and user "%s"' + already-installed: 'Drupal is already installed, try dropping your database executing database:drop or install executing site:install --force --no-interaction' + connection-failed: 'Connection to the database failed, please check your settings file that has the correct username, password, database, host, port configured.' + sites-backup: 'The sites.php file has temporarily been renamed to backup.sites.php while Drupal installs.' + sites-restore: 'The backup of sites.php has been been restored to sites.php.' + invalid-multisite: 'Invalid multisite, please create multisite using command drupal multisite:new "%s" "%s"' + invalid-db-url: 'Invalid database url, please provide a valid url like "mysql://dbUser:dbPass@dbHost/dbName"' + invalid-url-driver: 'Invalid database type, the Sqlite driver is not supported' examples: - - description: 'Install a drupal project specifying installation type, language code, database configuration, site name, site email and admin credential settings' - execution: | - drupal site:install standard \ - --langcode="en" \ - --db-type="mysql" \ - --db-host="127.0.0.1" \ - --db-name="drupal8" \ - --db-user="u53rn4m3" \ - --db-pass="dbp455" \ - --db-port="3306" \ - --site-name="Drupal 8" \ - --site-mail="admin@example.com" \ - --account-name="admin" \ - --account-mail="admin@example.com" \ - --account-pass="p455w0rd" - + - + description: 'Install a drupal project specifying installation type, language code, database configuration, site name, site email and admin credential settings' + execution: "drupal site:install standard \\\n --langcode=\"en\" \\\n --db-type=\"mysql\" \\\n --db-host=\"127.0.0.1\" \\\n --db-name=\"drupal8\" \\\n --db-user=\"u53rn4m3\" \\\n --db-pass=\"dbp455\" \\\n --db-port=\"3306\" \\\n --site-name=\"Drupal 8\" \\\n --site-mail=\"admin@example.com\" \\\n --account-name=\"admin\" \\\n --account-mail=\"admin@example.com\" \\\n --account-pass=\"p455w0rd\"\n" + - + description: 'Install a drupal project using a mysql url' + execution: "drupal site:install standard mysql://dbUser:dbPass@dbHost/dbName \\\n --langcode=\"en\" \\\n --site-name=\"Drupal 8\" \\\n --site-mail=\"admin@example.com\" \\\n --account-name=\"admin\" \\\n --account-mail=\"admin@example.com\" \\\n --account-pass=\"p455w0rd\"\n" diff --git a/translations/site.maintenance.yml b/translations/site.maintenance.yml index 1c535e2..50f0eae 100644 --- a/translations/site.maintenance.yml +++ b/translations/site.maintenance.yml @@ -1,15 +1,15 @@ description: 'Switch site into maintenance mode' arguments: - mode: 'Site maintenance mode [on/off]' + mode: 'Site maintenance mode [on/off]' messages: - maintenance-on: 'Operating in maintenance mode on' - maintenance-off: 'Operating in maintenance mode off' + maintenance-on: 'Operating in maintenance mode on' + maintenance-off: 'Operating in maintenance mode off' errors: - invalid-mode: 'Invalid maintenance mode' + invalid-mode: 'Invalid maintenance mode' examples: - - description: 'Switch on maintenance' - execution: | - drupal site:maintenance on - - description: 'Switch off maintenance' - execution: | - drupal site:maintenance off + - + description: 'Switch on maintenance' + execution: "drupal site:maintenance on\n" + - + description: 'Switch off maintenance' + execution: "drupal site:maintenance off\n" diff --git a/translations/site.mode.yml b/translations/site.mode.yml index 92deb64..ff75be1 100644 --- a/translations/site.mode.yml +++ b/translations/site.mode.yml @@ -1,25 +1,25 @@ description: 'Switch system performance configuration' arguments: - environment: 'Environment name [dev, prod]' + environment: 'Environment name [dev, prod]' options: - local: 'Use this option for testing PROD config, but using settings.local.php for connect to your local environment' + local: 'Use this option for testing PROD config, but using settings.local.php for connect to your local environment' messages: - configuration: 'Configuration name' - configuration-key: 'Configuration key' - original: 'Original Value' - updated: 'Override Value' - invalid-env: 'Invalid environment' - new-services-settings: 'New services settings' - service: 'Service' - service-parameter: 'Parameter' - service-value: 'Value' - error-copying-file: 'Error copying file' - error-writing-file: 'Error copying file' - services-file-overwritten: 'Services files "%s" was overwritten' + configuration: 'Configuration name' + configuration-key: 'Configuration key' + original: 'Original Value' + updated: 'Override Value' + invalid-env: 'Invalid environment' + new-services-settings: 'New services settings' + service: Service + service-parameter: Parameter + service-value: Value + error-copying-file: 'Error copying file' + error-writing-file: 'Error copying file' + services-file-overwritten: 'Services files "%s" was overwritten' examples: - - description: 'Switch system to prod' - execution: | - drupal site:mode prod - - description: 'Switch system to dev' - execution: | - drupal site:mode dev + - + description: 'Switch system to prod' + execution: 'drupal site:mode prod' + - + description: 'Switch system to dev' + execution: "drupal site:mode dev\n" diff --git a/translations/site.statistics.yml b/translations/site.statistics.yml index 6375041..8eb999c 100644 --- a/translations/site.statistics.yml +++ b/translations/site.statistics.yml @@ -1,16 +1,16 @@ description: 'Show the current statistics of website.' help: 'Show the current statistics of website.' messages: - stat-name: 'Name' - stat-quantity: 'Quantity' - node-type: 'Node:"%s"' - comments: 'Comments' - vocabulary: 'Vocabularies' - taxonomy-terms: 'Taxonomy terms' - files: 'Files' - users: 'Users' - modules-enabled: 'Modules enabled' - modules-disabled: 'Modules disabled' - themes-enabled: 'Themes enabled' - themes-disabled: 'Themes disabled' - views: 'Views (Not system views)' + stat-name: Name + stat-quantity: Quantity + node-type: 'Node:"%s"' + comments: Comments + vocabulary: Vocabularies + taxonomy-terms: 'Taxonomy terms' + files: Files + users: Users + modules-enabled: 'Modules enabled' + modules-disabled: 'Modules disabled' + themes-enabled: 'Themes enabled' + themes-disabled: 'Themes disabled' + views: 'Views (Not system views)' diff --git a/translations/site.status.yml b/translations/site.status.yml index 8d8dffd..c1d40ad 100644 --- a/translations/site.status.yml +++ b/translations/site.status.yml @@ -1,28 +1,27 @@ description: 'View current Drupal Installation status' messages: - application: Application - system: 'System Info' - hash-salt: 'Hash salt' - console: 'Drupal Console' - database: 'Database connection' - driver: 'Driver' - host: 'Host' - port: 'Port' - username: 'Username' - password: 'Password' - theme: 'Themes' - connection: 'Connection' - theme-default: 'Default theme' - theme-admin: 'Admin theme' - directory: 'Directories' - directory-root: 'Site root directory' - directory-temporary: 'Site temporary directory' - directory-theme-default: 'Default theme directory' - directory-theme-admin: 'Admin theme directory' - current-version: 'Current Drupal ("%s")' - not-installed: 'Drupal is not installed' + application: Application + system: 'System Info' + hash-salt: 'Hash salt' + console: 'Drupal Console' + database: 'Database connection' + driver: Driver + host: Host + port: Port + username: Username + password: Password + theme: Themes + connection: Connection + theme-default: 'Default theme' + theme-admin: 'Admin theme' + directory: Directories + directory-root: 'Site root directory' + directory-temporary: 'Site temporary directory' + directory-theme-default: 'Default theme directory' + directory-theme-admin: 'Admin theme directory' + current-version: 'Current Drupal ("%s")' + not-installed: 'Drupal is not installed' examples: - - description: 'Get drupal installation status specifying the output format as table' - execution: | - drupal site:status \ - --format="table" + - + description: 'Get drupal installation status specifying the output format as table' + execution: "drupal site:status \\\n --format=\"table\"\n" diff --git a/translations/snippet.yml b/translations/snippet.yml new file mode 100644 index 0000000..b9b10eb --- /dev/null +++ b/translations/snippet.yml @@ -0,0 +1,19 @@ +description: 'Runs PHP code' +help: 'Execute a PHP code' +options: + file: 'Path to the file' + code: 'Code to execute' + show-code: 'Show code after execute' +errors: + invalid-options: 'You need to provide the file option' + invalid-file: 'The file "%s" does not exist.' +examples: + - + description: 'Run using a file.' + execution: 'drupal snippet --file=/path/to/file' + - + description: 'Passing code as option.' + execution: 'drupal snippet --code=codeToExecute' + - + description: 'Show code executed' + execution: 'drupal snippet --show-code --file=/path/to/file' diff --git a/translations/state.delete.yml b/translations/state.delete.yml index eab626f..0e5eced 100644 --- a/translations/state.delete.yml +++ b/translations/state.delete.yml @@ -1,11 +1,11 @@ description: 'Delete State' arguments: - name: 'State name.' + name: 'State name.' messages: - enter-name: 'State name must contain a value.' - state-not-exists: 'The state "%s" does not exist.' - deleted: 'State "%s" sucessfully deleted.' + enter-name: 'State name must contain a value.' + state-not-exists: 'The state "%s" does not exist.' + deleted: 'State "%s" sucessfully deleted.' examples: - - description: 'Delete state specifying the state name' - execution: | - drupal state:delete comment.maintain_entity_statistics + - + description: 'Delete state specifying the state name' + execution: "drupal state:delete comment.maintain_entity_statistics\n" diff --git a/translations/state.override.yml b/translations/state.override.yml index 8511d1a..0a46a40 100644 --- a/translations/state.override.yml +++ b/translations/state.override.yml @@ -1,16 +1,16 @@ description: 'Override a State key.' help: 'Override a State key.' arguments: - key: 'The State key to override.' - value: 'The State value to set.' + key: 'The State key to override.' + value: 'The State value to set.' messages: - key: 'State key' - original: 'Original value' - override: 'Override value' + key: 'State key' + original: 'Original value' + override: 'Override value' errors: - no-key: 'You must provide a State key to override.' - no-value: 'You must provide a State value to set.' + no-key: 'You must provide a State key to override.' + no-value: 'You must provide a State value to set.' examples: - - description: 'Override state value specifying the state name and the new value' - execution: | - drupal state:override comment.node_comment_statistics_scale "!!float 1" + - + description: 'Override state value specifying the state name and the new value' + execution: "drupal state:override comment.node_comment_statistics_scale \"!!float 1\"\n" diff --git a/translations/taxonomy.term.delete.yml b/translations/taxonomy.term.delete.yml index 5ebd28c..867b145 100644 --- a/translations/taxonomy.term.delete.yml +++ b/translations/taxonomy.term.delete.yml @@ -2,10 +2,10 @@ description: 'Delete taxonomy terms from a vocabulary' vid: 'Enter vocabulary id' help: 'This command takes the VID as argument or all which will delete every term from every vocabulary' messages: - nothing: 'All taxonomy terms from "%s" vocabulary already deleted.' - processing: 'Deleting "%s" taxonomy term.' - invalid-vocabulary: 'Invalid "%s" vocabulary.' + nothing: 'All taxonomy terms from "%s" vocabulary already deleted.' + processing: 'Deleting "%s" taxonomy term.' + invalid-vocabulary: 'Invalid "%s" vocabulary.' examples: - - description: 'Delete all terms of the "tags" vocabulary' - execution: | - drupal taxonomy:term:delete tags + - + description: 'Delete all terms of the "tags" vocabulary' + execution: "drupal taxonomy:term:delete tags\n" diff --git a/translations/theme.download.yml b/translations/theme.download.yml index 6fff4d5..f51794e 100644 --- a/translations/theme.download.yml +++ b/translations/theme.download.yml @@ -1,18 +1,18 @@ description: 'Download theme in application' arguments: - version: 'Theme version i.e 1.x-dev' - theme: 'the Theme name' + version: 'Theme version i.e 1.x-dev' + theme: 'the Theme name' options: - composer: 'Use --composer option for manage the theme download with Composer' + composer: 'Use --composer option for manage the theme download with Composer' messages: - no-releases: 'There aren''t any releases for theme "%s"' - getting-releases: 'Getting releases for theme "%s"' - downloading: 'Downloading theme "%s" release "%s"' - downloaded: 'Theme "%s" version "%s" was downloaded successfully at "%s"' - select-release: 'Please select your favorite release' - outside-drupal: 'Drupal root can''t be determined. Use --root to set the destination, current folder will be used instead of.' - error-creating-folder: 'Error creating folder "%s", please check your permissions' + no-releases: 'There aren''t any releases for theme "%s"' + getting-releases: 'Getting releases for theme "%s"' + downloading: 'Downloading theme "%s" release "%s"' + downloaded: 'Theme "%s" version "%s" was downloaded successfully at "%s"' + select-release: 'Please select your favorite release' + outside-drupal: 'Drupal root can''t be determined. Use --root to set the destination, current folder will be used instead of.' + error-creating-folder: 'Error creating folder "%s", please check your permissions' examples: - - description: 'Download theme specifying name and version' - execution: | - drupal theme:download Alina 7.x-1.2 + - + description: 'Download theme specifying name and version' + execution: "drupal theme:download Alina 7.x-1.2\n" diff --git a/translations/theme.install.yml b/translations/theme.install.yml index 44605a7..2b027d2 100644 --- a/translations/theme.install.yml +++ b/translations/theme.install.yml @@ -1,25 +1,25 @@ description: 'Install theme or themes in the application' questions: - theme: 'theme name (press to stop adding themes)' - invalid-theme: 'Invalid theme "%s"' + theme: 'theme name (press to stop adding themes)' + invalid-theme: 'Invalid theme "%s"' options: - theme: 'theme or themes to be installed should be separated by a space' - overwrite-config: 'Overwrite active configuration if necessary' - set-default: 'Set theme as default theme' + theme: 'theme or themes to be installed should be separated by a space' + overwrite-config: 'Overwrite active configuration if necessary' + set-default: 'Set theme as default theme' messages: - no-themes: 'You must provide theme or themes to install.' - themes-missing: 'Unable to install themes "%s" due they aren''t available' - theme-missing: 'Unable to install theme "%s" due is not available' - missing-dependencies: 'Unable to install themes "%s" due to missing dependencies "%s"' - themes-nothing: 'Nothing to do. All themes "%s" are already installed' - theme-nothing: 'Nothing to do. Theme "%s" is already installed' - dependencies: 'There are some unmet dependencies: "%s"?' - theme-success: 'The "%s" theme has been installed successfully' - themes-success: 'The themes "%s" were installed successfully' - theme-default-success: 'The "%s" theme has been installed successfully as default theme' - disabled-themes: 'Only uninstalled themes will be listed in autocomplete' - invalid-theme-default: 'Option default is only valid for one theme' + no-themes: 'You must provide theme or themes to install.' + themes-missing: 'Unable to install themes "%s" due they aren''t available' + theme-missing: 'Unable to install theme "%s" due is not available' + missing-dependencies: 'Unable to install themes "%s" due to missing dependencies "%s"' + themes-nothing: 'Nothing to do. All themes "%s" are already installed' + theme-nothing: 'Nothing to do. Theme "%s" is already installed' + dependencies: 'There are some unmet dependencies: "%s"?' + theme-success: 'The "%s" theme has been installed successfully' + themes-success: 'The themes "%s" were installed successfully' + theme-default-success: 'The "%s" theme has been installed successfully as default theme' + disabled-themes: 'Only uninstalled themes will be listed in autocomplete' + invalid-theme-default: 'Option default is only valid for one theme' examples: - - description: 'Install theme specifying the name' - execution: | - drupal theme:install mytheme + - + description: 'Install theme specifying the name' + execution: "drupal theme:install mytheme\n" diff --git a/translations/theme.path.yml b/translations/theme.path.yml index 07a0593..dc11f93 100644 --- a/translations/theme.path.yml +++ b/translations/theme.path.yml @@ -1,11 +1,11 @@ description: 'Returns the relative path to the theme (or absolute path)' arguments: - theme: 'Theme name' + theme: 'Theme name' options: - absolute: 'Return theme absolute path' + absolute: 'Return theme absolute path' messages: - invalid-theme-name: 'Invalid theme name: "%s"' + invalid-theme-name: 'Invalid theme name: "%s"' examples: - - description: 'Get the path of mytheme' - execution: | - drupal theme:path mytheme + - + description: 'Get the path of mytheme' + execution: "drupal theme:path mytheme\n" diff --git a/translations/theme.uninstall.yml b/translations/theme.uninstall.yml index 36cb10a..eae48e9 100644 --- a/translations/theme.uninstall.yml +++ b/translations/theme.uninstall.yml @@ -1,24 +1,24 @@ description: 'Uninstall theme or themes in the application' questions: - theme: 'theme name (press to stop adding themes)' - invalid-theme: 'Invalid theme "%s"' + theme: 'theme name (press to stop adding themes)' + invalid-theme: 'Invalid theme "%s"' options: - theme: 'theme or themes to be uninstalled should be separated by a space' + theme: 'theme or themes to be uninstalled should be separated by a space' messages: - no-themes: 'You must provide theme or themes to uninstall.' - themes-missing: 'Unable to uninstall themes "%s", because they aren''t available' - theme-missing: 'Unable to uninstall theme "%s", because it is not available' - missing-dependencies: 'Unable to uninstall themes "%s" due to missing dependencies "%s"' - themes-nothing: 'Nothing to do. All themes are already uninstalled: "%s"' - theme-nothing: 'Nothing to do. Theme "%s" is already uninstalled' - dependencies: 'There are some unmet dependencies: "%s"?' - theme-success: 'The "%s" theme has been uninstalled successfully' - themes-success: 'The themes "%s" were uninstalled successfully' - installed-themes: 'Only installed themes will be listed in autocomplete' - invalid-theme-default: 'Option default is only valid for one theme' - error-default-theme: 'Theme "%s" is the default theme and cannot be uninstalled.' - error-admin-theme: 'Theme "%s" is the admin theme and cannot be uninstalled.' + no-themes: 'You must provide theme or themes to uninstall.' + themes-missing: 'Unable to uninstall themes "%s", because they aren''t available' + theme-missing: 'Unable to uninstall theme "%s", because it is not available' + missing-dependencies: 'Unable to uninstall themes "%s" due to missing dependencies "%s"' + themes-nothing: 'Nothing to do. All themes are already uninstalled: "%s"' + theme-nothing: 'Nothing to do. Theme "%s" is already uninstalled' + dependencies: 'There are some unmet dependencies: "%s"?' + theme-success: 'The "%s" theme has been uninstalled successfully' + themes-success: 'The themes "%s" were uninstalled successfully' + installed-themes: 'Only installed themes will be listed in autocomplete' + invalid-theme-default: 'Option default is only valid for one theme' + error-default-theme: 'Theme "%s" is the default theme and cannot be uninstalled.' + error-admin-theme: 'Theme "%s" is the admin theme and cannot be uninstalled.' examples: - - description: 'Uninstall theme specifying the name' - execution: | - drupal theme:uninstall mytheme + - + description: 'Uninstall theme specifying the name' + execution: "drupal theme:uninstall mytheme\n" diff --git a/translations/update.entities.yml b/translations/update.entities.yml index 9be4b36..4567a8d 100644 --- a/translations/update.entities.yml +++ b/translations/update.entities.yml @@ -1,9 +1,9 @@ description: 'Applying Entity Updates' messages: - start: 'Starting the entity updates' - end: 'Finished the entity updates' - error: 'Error on Entity Updates' + start: 'Starting the entity updates' + end: 'Finished the entity updates' + error: 'Error on Entity Updates' examples: - - description: 'Update entities' - execution: | - drupal update:entities + - + description: 'Update entities' + execution: "drupal update:entities\n" diff --git a/translations/update.execute.yml b/translations/update.execute.yml index 590a121..02be86f 100644 --- a/translations/update.execute.yml +++ b/translations/update.execute.yml @@ -1,17 +1,24 @@ description: 'Execute a specific Update N function in a module, or execute all' +questions: + update: 'Do you want to run the specified pending updates?' + post-update: 'Do you want to run the specified pending post updates?' arguments: - module: 'Module name' - update-n: 'Specific Update N function to be executed' + module: 'Module name' + update-n: 'Specific Update N function to be executed' messages: - no-module-updates: 'There aren''t updates available for module "%s"' - executing-update: 'Executing update function "%s" of module "%s"' - module-update-function-not-found: 'Module "%s" doesn''t have a function update for "%s"' - executing-required-previous-updates: 'Executing required previous updates' - no-pending-updates: 'There aren''t updates available' + no-module-updates: 'There aren''t updates available for module "%s"' + executing-update: 'Executing update function "%s" of module "%s"' + executing-post-update: 'Executing post update function "%s" of module "%s"' + module-update-function-not-found: 'Module "%s" doesn''t have a function update for "%s"' + executing-required-previous-updates: 'Executing required previous updates' + no-pending-updates: 'There aren''t updates available' + no-pending-post-updates: 'There aren''t post updates available' + pending-post-updates: 'There are the following post updates available:' + pending-updates: 'There are the following updates available:' examples: - - description: 'Execute all updates' - execution: | - drupal update:execute - - description: 'Execute updates for system module' - execution: | - drupal update:execute system + - + description: 'Execute all updates' + execution: "drupal update:execute\n" + - + description: 'Execute updates for system module' + execution: "drupal update:execute system\n" diff --git a/translations/user.create.yml b/translations/user.create.yml index 0adc15a..819a6e1 100644 --- a/translations/user.create.yml +++ b/translations/user.create.yml @@ -2,36 +2,30 @@ description: 'Create users for the application' help: 'The user:create command helps you create users.' welcome: 'Welcome to the Drupal user create' options: - username: 'User name to be created' - password: 'User password' - roles: 'User roles' - email: 'User email' - status: 'User status' + username: 'User name to be created' + password: 'User password' + roles: 'User roles' + email: 'User email' + status: 'User status' questions: - username: 'User name to be created' - password: 'User password (empty to auto-generate)' - roles: 'User roles (empty to skip)' - email: 'User e-mail (empty to skip)' - status: 'User status (empty to skip)' + username: 'User name to be created' + password: 'User password (empty to auto-generate)' + roles: 'User roles (empty to skip)' + email: 'User e-mail (empty to skip)' + status: 'User status (empty to skip)' messages: - user-id: 'User ID' - username: 'Username' - password: 'Password' - email: 'E-mail' - roles: 'Roles' - created: 'Created' - status: 'Status' - user-created: 'User "%s" was created successfully' + user-id: 'User ID' + username: Username + password: Password + email: E-mail + roles: Roles + created: Created + status: Status + user-created: 'User "%s" was created successfully' examples: - - description: 'Create user specifying username, password, role, email and status' - execution: | - drupal user:create john p455w0rd \ - --roles='authenticated' \ - --email="john@anexusit.com" \ - --status="1" - - description: 'Create admin user specifying username, password, role, email and status' - execution: | - drupal user:create doe p455w0rd \ - --roles='administrator' \ - --email="doe@anexusit.com" \ - --status="1" + - + description: 'Create user specifying username, password, role, email and status' + execution: "drupal user:create john p455w0rd \\\n --roles='authenticated' \\\n --email=\"john@anexusit.com\" \\\n --status=\"1\"" + - + description: 'Create admin user specifying username, password, role, email and status' + execution: "drupal user:create doe p455w0rd \\\n --roles='administrator' \\\n --email=\"doe@anexusit.com\" \\\n --status=\"1\"\n" diff --git a/translations/user.delete.yml b/translations/user.delete.yml index f186320..2520815 100644 --- a/translations/user.delete.yml +++ b/translations/user.delete.yml @@ -2,28 +2,25 @@ description: 'Delete users from the application' help: 'The user:delete command helps you delete users.' welcome: 'Welcome to the Drupal user delete' options: - user: 'User name/id to be deleted' - roles: 'Users with the listed roles to be deleted' + user: 'User name/id to be deleted' + roles: 'Users with the listed roles to be deleted' questions: - user: 'User name/id to be deleted (empty to skip)' - roles: 'Select role(s) associated with users to be deleted' + user: 'User name/id to be deleted (empty to skip)' + roles: 'Select role(s) associated with users to be deleted' messages: - user-id: 'User ID' - username: 'Username' - user-deleted: 'User "%s" was deleted successfully' - users-deleted: '"%s" users were deleted successfully' + user-id: 'User ID' + username: Username + user-deleted: 'User "%s" was deleted successfully' + users-deleted: '"%s" users were deleted successfully' errors: - invalid-user: 'User name/id "%s" is invalid' + invalid-user: 'User name/id "%s" is invalid' examples: - - description: 'Delete user with the id number 2' - execution: | - drupal user:delete \ - --user="2" - - description: 'Delete user with the username "jmolivas"' - execution: | - drupal user:delete \ - --user="jmolivas" - - description: 'Delete users with the role "authenticated"' - execution: | - drupal user:delete \ - --role="authenticated" + - + description: 'Delete user with the id number 2' + execution: "drupal user:delete \\\n --user=\"2\"" + - + description: 'Delete user with the username "jmolivas"' + execution: "drupal user:delete \\\n --user=\"jmolivas\"" + - + description: 'Delete users with the role "authenticated"' + execution: "drupal user:delete \\\n --role=\"authenticated\"\n" diff --git a/translations/user.login.url.yml b/translations/user.login.url.yml index 174e98e..e921121 100644 --- a/translations/user.login.url.yml +++ b/translations/user.login.url.yml @@ -1,14 +1,16 @@ description: 'Returns a one-time user login url.' options: - user: 'User name/id.' + user: 'User name/id.' messages: - url: 'One-time login for "%s"' + url: 'One-time login for "%s"' questions: - user: 'Enter User name/id' + user: 'Enter User name/id' errors: - invalid-user: 'Cannot load user entity using: "%s".' + invalid-user: 'Cannot load user entity using: "%s".' examples: - - description: 'Get one time login url for user id 10' - execution: drupal user:login:url 10 - - description: 'Get one time login url for username jmolivas' - execution: drupal user:login:url jmolivas \ No newline at end of file + - + description: 'Get one time login url for user id 10' + execution: 'drupal user:login:url 10' + - + description: 'Get one time login url for username jmolivas' + execution: 'drupal user:login:url jmolivas' diff --git a/translations/user.password.hash.yml b/translations/user.password.hash.yml index a37d9a0..9ab2c84 100644 --- a/translations/user.password.hash.yml +++ b/translations/user.password.hash.yml @@ -2,16 +2,16 @@ description: 'Generate a hash from a plaintext password.' help: 'The password:hash command helps you to generate hashes password from plaintext passwords.' welcome: 'Welcome to the Drupal password hash generator' options: - password: 'Password(s) in text format' + password: 'Password(s) in text format' questions: - invalid-pass: 'Password can''t be empty' - password: 'Enter password' - other-password: 'Other password (press to stop adding passwords)' + invalid-pass: 'Password can''t be empty' + password: 'Enter password' + other-password: 'Other password (press to stop adding passwords)' messages: - password: Password - hash: Hash + password: Password + hash: Hash errors: null examples: - - description: 'Get hash of the word "p455w0rd"' - execution: | - drupal user:password:hash p455w0rd + - + description: 'Get hash of the word "p455w0rd"' + execution: "drupal user:password:hash p455w0rd\n" diff --git a/translations/user.password.reset.yml b/translations/user.password.reset.yml index 60f63ea..a853d6a 100644 --- a/translations/user.password.reset.yml +++ b/translations/user.password.reset.yml @@ -2,23 +2,23 @@ description: 'Reset password for a specific user.' help: 'The password:reset command helps you to reset password for a specific user.' welcome: 'Welcome to the Drupal password reset' options: - password: 'Password in text format' - user: 'User name/id' + password: 'Password in text format' + user: 'User name/id' questions: - invalid-user: 'Invalid user name/id "%s", user id must be an integer' - invalid-pass: 'Password can''t be empty' - user: 'Enter User name/id' - password: 'Enter password' - other-password: 'Other password (press to stop adding passwords)' + invalid-user: 'Invalid user name/id "%s", user id must be an integer' + invalid-pass: 'Password can''t be empty' + user: 'Enter User name/id' + password: 'Enter password' + other-password: 'Other password (press to stop adding passwords)' messages: - reset-successful: 'Password was updated successfully for user id "%s"' + reset-successful: 'Password was updated successfully for user id "%s"' errors: - invalid-user: 'Invalid user name/id "%s"' - empty-password: 'Password can not be empty' + invalid-user: 'Invalid user name/id "%s"' + empty-password: 'Password can not be empty' examples: - - description: 'Update password specifying the user id and the new password' - execution: | - drupal user:password:reset 2 p455w0rd - - description: 'Update password specifying the user jmolivas and the new password' - execution: | - drupal user:password:reset jmolivas p455w0rd + - + description: 'Update password specifying the user id and the new password' + execution: 'drupal user:password:reset 2 p455w0rd' + - + description: 'Update password specifying the user jmolivas and the new password' + execution: "drupal user:password:reset jmolivas p455w0rd\n" diff --git a/translations/user.role.yml b/translations/user.role.yml index 36fff83..b296e6c 100644 --- a/translations/user.role.yml +++ b/translations/user.role.yml @@ -2,19 +2,19 @@ description: 'Adds/removes a role for a given user' help: 'The user:role command helps you to add or remove a role to a user.' welcome: 'Welcome to the Drupal user rule' arguments: - roles: 'Roles to add or remove. Please provide the machine name (only one)' - operation: 'Add or remove' - user: 'The affected user (only one)' + roles: 'Roles to add or remove. Please provide the machine name (only one)' + operation: 'Add or remove' + user: 'The affected user (only one)' messages: - bad-arguments: 'Some arguments are missing! Please, provide all the following arguments: [add/remove] [username] [role]' - no-user-found: 'Username "%s" was not found!' - no-role-found: 'Role "%s" was not found!' - add-success: 'Username %1$s was added role %2$s sucessfully' - remove-success: 'Username %1$s was removed role %2$s sucessfully' + bad-arguments: 'Some arguments are missing! Please, provide all the following arguments: [add/remove] [username] [role]' + no-user-found: 'Username "%s" was not found!' + no-role-found: 'Role "%s" was not found!' + add-success: 'Username %1$s was added role %2$s sucessfully' + remove-success: 'Username %1$s was removed role %2$s sucessfully' examples: - - description: 'Add administrator role to the user admin specifying the username and the role' - execution: | - drupal user:role add admin administrator - - description: 'Remove administrator role from the user admin specifying the username and the role' - execution: | - drupal user:role remove admin administrator + - + description: 'Add administrator role to the user admin specifying the username and the role' + execution: "drupal user:role add admin administrator\n" + - + description: 'Remove administrator role from the user admin specifying the username and the role' + execution: "drupal user:role remove admin administrator\n" diff --git a/translations/user.unblock.yml b/translations/user.unblock.yml index 4ccccac..676029f 100644 --- a/translations/user.unblock.yml +++ b/translations/user.unblock.yml @@ -2,20 +2,20 @@ description: 'Unblock a specific user.' help: 'The user:unblock command helps you to unblock a specific user.' welcome: 'Welcome to the Drupal user unblock' options: - user: 'User name/id' + user: 'User name/id' questions: - invalid-user: 'Invalid user name/id "%s", user id must be an integer' - user: 'Enter User name/id' + invalid-user: 'Invalid user name/id "%s", user id must be an integer' + user: 'Enter User name/id' messages: - unblock-successful: 'User "%s" was unblocked.' + unblock-successful: 'User "%s" was unblocked.' warnings: - unblocked-user: 'User "%s" is already unblocked' + unblocked-user: 'User "%s" is already unblocked' errors: - invalid-user: 'Invalid user name/id "%s"' + invalid-user: 'Invalid user name/id "%s"' examples: - - description: 'Unblock user providing the user id' - execution: | - drupal user:unblock 2 - - description: 'Unblock user providing the user name' - execution: | - drupal user:unblock johndoe + - + description: 'Unblock user providing the user id' + execution: 'drupal user:unblock 2' + - + description: 'Unblock user providing the user name' + execution: "drupal user:unblock johndoe\n" diff --git a/translations/views.disable.yml b/translations/views.disable.yml index e8dd354..efe08b7 100644 --- a/translations/views.disable.yml +++ b/translations/views.disable.yml @@ -1,10 +1,10 @@ description: 'Disable a View' messages: - disabled-successfully: 'View "%s" was disabled successfully.' + disabled-successfully: 'View "%s" was disabled successfully.' examples: - - description: 'Disable content view' - execution: | - drupal views:disable content - - description: 'Disable frontpage view' - execution: | - drupal views:disable frontpage + - + description: 'Disable content view' + execution: "drupal views:disable content\n" + - + description: 'Disable frontpage view' + execution: "drupal views:disable frontpage\n" diff --git a/translations/views.enable.yml b/translations/views.enable.yml index 4531768..0159387 100644 --- a/translations/views.enable.yml +++ b/translations/views.enable.yml @@ -1,10 +1,10 @@ description: 'Enable a View' messages: - enabled-successfully: 'View "%s" was enabled successfully.' + enabled-successfully: 'View "%s" was enabled successfully.' examples: - - description: 'Enable content view' - execution: | - drupal views:enable content - - description: 'Enable frontpage view' - execution: | - drupal views:enable frontpage + - + description: 'Enable content view' + execution: "drupal views:enable content\n" + - + description: 'Enable frontpage view' + execution: "drupal views:enable frontpage\n"