From 204ce40fa7ef62501d4cfa53e2fbee37a6f38c0f Mon Sep 17 00:00:00 2001 From: Harold Date: Tue, 16 Jul 2019 17:49:12 -0600 Subject: [PATCH] Update keys to v1.9.1 --- composer.json | 9 --- composer.lock | 75 ------------------- translations/application.yml | 8 +- translations/cache.tag.invalidate.yml | 13 ++++ translations/chain.yml | 3 + translations/common.yml | 5 ++ translations/composerize.yml | 14 ++++ translations/config.export.content.type.yml | 7 ++ translations/config.export.entity.yml | 26 +++++++ translations/config.export.single.yml | 4 +- translations/config.export.view.yml | 11 ++- translations/config.export.yml | 2 + translations/config.import.yml | 3 + translations/config.override.yml | 4 + translations/create.comments.yml | 1 + translations/create.nodes.yml | 3 + translations/create.roles.yml | 19 +++++ translations/create.terms.yml | 1 + translations/create.users.yml | 1 + translations/database.client.yml | 1 + translations/database.connect.yml | 2 + translations/database.drop.yml | 1 + translations/database.dump.yml | 2 + translations/database.log.common.yml | 1 + translations/database.query.yml | 1 + translations/database.restore.yml | 1 + translations/debug.chain.yml | 2 + translations/debug.config.yml | 5 ++ translations/debug.container.yml | 2 + translations/debug.libraries.yml | 7 +- translations/debug.plugin.yml | 3 + translations/debug.roles.yml | 10 +++ translations/debug.router.yml | 11 +++ translations/debug.site.yml | 4 +- translations/debug.test.yml | 2 +- translations/debug.theme.keys.yml | 15 ++++ translations/debug.update.composer.yml | 13 ++++ translations/devel.dumper.yml | 7 ++ translations/docker.init.yml | 1 + translations/dotenv.init.yml | 5 ++ translations/entity.delete.yml | 4 + translations/generate.ajax.command.yml | 13 ++++ .../generate.authentication.provider.yml | 7 +- translations/generate.cache.context.yml | 7 ++ translations/generate.command.yml | 17 ++++- translations/generate.composer.yml | 45 +++++++++++ translations/generate.entity.config.yml | 1 + translations/generate.entity.content.yml | 5 ++ translations/generate.event.subscriber.yml | 13 ++++ translations/generate.form.alter.yml | 11 +++ translations/generate.form.config.yml | 45 +++++++++++ translations/generate.form.yml | 17 ++++- translations/generate.help.yml | 1 + translations/generate.jstest.yml | 12 +++ translations/generate.module.yml | 2 + translations/generate.permissions.yml | 15 ++++ translations/generate.plugin.block.yml | 14 +++- .../generate.plugin.ckeditorbutton.yml | 4 + translations/generate.plugin.field.yml | 2 + translations/generate.plugin.fieldtype.yml | 2 + translations/generate.plugin.imageeffect.yml | 2 + .../generate.plugin.imageformatter.yml | 1 + .../generate.plugin.migrate.dataparser.yml | 16 ++++ .../generate.plugin.migrate.process.yml | 2 + .../generate.plugin.migrate.source.yml | 2 + translations/generate.plugin.queue.yml | 20 +++++ translations/generate.plugin.rules.action.yml | 29 +++++++ .../generate.plugin.rules.condition.yml | 26 +++++++ .../generate.plugin.rules.dataprocessor.yml | 20 +++++ translations/generate.plugin.skeleton.yml | 3 + .../generate.plugin.validationconstraint.yml | 21 ++++++ translations/generate.plugin.views.field.yml | 7 ++ translations/generate.post.update.yml | 3 + translations/generate.profile.yml | 7 ++ translations/generate.service.yml | 5 ++ translations/generate.site.alias.yml | 31 ++++++++ translations/generate.theme.yml | 5 ++ translations/generate.twig.extension.yml | 7 ++ translations/generate.update.yml | 3 + translations/init.yml | 5 ++ translations/locale.language.add.yml | 4 + translations/migrate.setup.yml | 2 + translations/module.download.yml | 1 + translations/module.uninstall.yml | 4 +- translations/multisite.update.yml | 22 ++++++ translations/role.delete.yml | 14 ++++ translations/role.new.yml | 18 +++++ translations/router.rebuild.yml | 1 + translations/site.install.yml | 10 +++ translations/snippet.yml | 19 +++++ translations/test.run.yml | 1 + translations/update.execute.yml | 14 +++- translations/user.delete.yml | 11 ++- translations/user.login.clear.attempts.yml | 5 +- translations/user.login.url.yml | 6 ++ translations/user.password.reset.yml | 7 +- translations/user.unblock.yml | 21 ++++++ 97 files changed, 809 insertions(+), 108 deletions(-) delete mode 100644 composer.lock create mode 100644 translations/cache.tag.invalidate.yml create mode 100644 translations/composerize.yml create mode 100644 translations/config.export.entity.yml create mode 100644 translations/create.roles.yml create mode 100644 translations/debug.roles.yml create mode 100644 translations/debug.theme.keys.yml create mode 100644 translations/debug.update.composer.yml create mode 100644 translations/devel.dumper.yml create mode 100644 translations/docker.init.yml create mode 100644 translations/dotenv.init.yml create mode 100644 translations/generate.ajax.command.yml create mode 100644 translations/generate.composer.yml create mode 100644 translations/generate.form.config.yml create mode 100644 translations/generate.jstest.yml create mode 100644 translations/generate.permissions.yml create mode 100644 translations/generate.plugin.migrate.dataparser.yml create mode 100644 translations/generate.plugin.queue.yml create mode 100644 translations/generate.plugin.rules.action.yml create mode 100644 translations/generate.plugin.rules.condition.yml create mode 100644 translations/generate.plugin.rules.dataprocessor.yml create mode 100644 translations/generate.plugin.validationconstraint.yml create mode 100644 translations/generate.site.alias.yml create mode 100644 translations/multisite.update.yml create mode 100644 translations/role.delete.yml create mode 100644 translations/role.new.yml create mode 100644 translations/snippet.yml create mode 100644 translations/user.unblock.yml diff --git a/composer.json b/composer.json index c933df2..526e338 100644 --- a/composer.json +++ b/composer.json @@ -34,14 +34,5 @@ "issues": "https://github.com/hechoendrupal/drupal-console-pa/issues", "forum": "https://gitter.im/hechoendrupal/DrupalConsole", "docs": "https://hechoendrupal.gitbooks.io/drupal-console/" - }, - "minimum-stability": "dev", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "require": { - "drupal/console-en": "^1.0" } } diff --git a/composer.lock b/composer.lock deleted file mode 100644 index 556d7a0..0000000 --- a/composer.lock +++ /dev/null @@ -1,75 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", - "This file is @generated automatically" - ], - "hash": "d6dc1501578e8300e0a650a9258c94ef", - "content-hash": "db7440c5c2cf9b7b01e2d70330c2e77d", - "packages": [ - { - "name": "drupal/console-en", - "version": "1.0.0-rc1", - "source": { - "type": "git", - "url": "https://github.com/hechoendrupal/drupal-console-en.git", - "reference": "2cf5746d56aab2a2b16f09f1875be6456363055f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/hechoendrupal/drupal-console-en/zipball/2cf5746d56aab2a2b16f09f1875be6456363055f", - "reference": "2cf5746d56aab2a2b16f09f1875be6456363055f", - "shasum": "" - }, - "type": "drupal-console-language", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "GPL-2.0+" - ], - "authors": [ - { - "name": "David Flores", - "email": "dmousex@gmail.com", - "homepage": "http://dmouse.net" - }, - { - "name": "Jesus Manuel Olivas", - "email": "jesus.olivas@gmail.com", - "homepage": "http://jmolivas.com" - }, - { - "name": "Drupal Console Contributors", - "homepage": "https://github.com/hechoendrupal/DrupalConsole/graphs/contributors" - }, - { - "name": "Eduardo Garcia", - "email": "enzo@enzolutions.com", - "homepage": "http://enzolutions.com/" - }, - { - "name": "Omar Aguirre", - "email": "omersguchigu@gmail.com" - } - ], - "description": "Drupal Console English Language", - "homepage": "http://drupalconsole.com/", - "keywords": [ - "console", - "development", - "drupal", - "symfony" - ], - "time": "2016-09-23 07:54:23" - } - ], - "packages-dev": [], - "aliases": [], - "minimum-stability": "dev", - "stability-flags": { - "drupal/console-en": 5 - }, - "prefer-stable": false, - "prefer-lowest": false, - "platform": [], - "platform-dev": [] -} diff --git a/translations/application.yml b/translations/application.yml index 7549a02..80aa5e4 100644 --- a/translations/application.yml +++ b/translations/application.yml @@ -1,6 +1,6 @@ options: env: 'The Environment name' - no-debug: 'Switches off debug mode' + debug: 'Switches on debug mode' learning: 'Generate a verbose code output' generate-chain: 'Shows command options and arguments as yaml output to be used in chain command' generate-inline: 'Shows command options and arguments as inline command' @@ -17,6 +17,7 @@ options: no-ansi: 'Disable ANSI output' no-interaction: 'Do not ask any interactive question' check-fix: 'Attempt to fix any missing configuration.' + no-debug: 'Switches off debug mode' arguments: command: 'The command to execute' messages: @@ -29,6 +30,8 @@ messages: files: generated: 'Generated or updated files' copied: 'Copied files' + lines-code: 'Generated lines: %s' + 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 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" @@ -40,6 +43,9 @@ messages: errors: invalid-command: 'Command "%s" do not exist.' 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' diff --git a/translations/cache.tag.invalidate.yml b/translations/cache.tag.invalidate.yml new file mode 100644 index 0000000..c131e1f --- /dev/null +++ b/translations/cache.tag.invalidate.yml @@ -0,0 +1,13 @@ +description: 'Invalidate cache tags.' +options: + tag: 'One or more tags to invalidate.' +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' diff --git a/translations/chain.yml b/translations/chain.yml index a9bc6e9..ac516ea 100644 --- a/translations/chain.yml +++ b/translations/chain.yml @@ -13,6 +13,9 @@ messages: set-inline-placeholders: 'ਦੇ ਤੌਰ ਤੇ ਇਨਲਾਈਨ ਸਥਾਨਧਾਰਕ ਸੈੱਟ ਕਰੋ' select-value-for-placeholder: 'Select value for %s placeholder' 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:\n https://docs.drupalconsole.com/en/chains/registering.html" missing_file: 'ਤੁਹਾਨੂੰ ਇੱਕ ਠੀਕ ਫਾਇਲ ਮਾਰਗ ਅਤੇ ਨਾਮ ਮੁਹੱਈਆ ਕਰਨਾ ਚਾਹੀਦਾ ਹੈ' invalid_file: 'ਫਾਇਲ "%s" ਮੌਜੂਦ ਨਹੀ ਹੈ' module_install: 'module:install ਹੁਕਮ ਇਸ ਲੜੀ ਕਤਾਰ ਅੰਦਰ ਚਲਾਉਣਯੋਗ ਨਹੀ ਹੈ ਅਤੇ ਸੁਤੰਤਰ ਚਲਾਉਣ ਕੀਤਾ ਜਾਣਾ ਚਾਹੀਦਾ ਹੈ' diff --git a/translations/common.yml b/translations/common.yml index a24ecaf..e520e3c 100644 --- a/translations/common.yml +++ b/translations/common.yml @@ -22,6 +22,9 @@ questions: confirm: 'Do you want to load services from the container' message: "\nType the service name or use keyup or keydown.\nThis is optional, press enter to continue\n" name: 'Enter your service' + roles: + message: "\nType the role name or use keyup or keydown.\nThis is optional, press enter to continue\n" + name: 'Enter your role' inputs: confirm: 'Do you want to generate a form structure?' label: 'Input label' @@ -36,6 +39,7 @@ questions: weight: 'Weight for input item' title: Title fieldset: Fieldset + new-field: 'Enter a new field properties' machine_name: 'Input machine name' errors: module-dependency: 'Missing module dependency "%s" is not installed. Try module:install to install it.' @@ -51,3 +55,4 @@ messages: drupal-core: 'Drupal Core' move-phar: 'Accessing console from anywhere on your system' quick-start: 'Download, install and serve Drupal 8' + available-field-types: 'Available types: %s' diff --git a/translations/composerize.yml b/translations/composerize.yml new file mode 100644 index 0000000..e7798da --- /dev/null +++ b/translations/composerize.yml @@ -0,0 +1,14 @@ +description: 'Converts Drupal codebase to composer.' +options: + 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:' diff --git a/translations/config.export.content.type.yml b/translations/config.export.content.type.yml index d35b902..449d4c1 100644 --- a/translations/config.export.content.type.yml +++ b/translations/config.export.content.type.yml @@ -3,12 +3,19 @@ arguments: content-type: 'Content Type to be exported' questions: content-type: 'Content Type to be exported' + remove-uuid: 'Content Type to be exported without uuid key.' 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' 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' 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 938b0e0..b0aad56 100644 --- a/translations/config.export.single.yml +++ b/translations/config.export.single.yml @@ -1,8 +1,6 @@ description: 'Export single configuration as yml file.' -arguments: - name: 'Configuration name.' - config-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' diff --git a/translations/config.export.view.yml b/translations/config.export.view.yml index 52fe07d..4b29f23 100644 --- a/translations/config.export.view.yml +++ b/translations/config.export.view.yml @@ -1,16 +1,22 @@ description: 'Export a view in YAML format inside a provided module to reuse in other website.' messages: - view_exported: 'Exporting view' + view-exported: 'View exported sucessfully' depencies-included: 'The following module dependencies were included at "%s"' + wrong-view: 'The view "%s" does not exist' + view_exported: 'Exporting view' 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' @@ -18,3 +24,6 @@ examples: - 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 36107cc..c4c1771 100644 --- a/translations/config.export.yml +++ b/translations/config.export.yml @@ -4,6 +4,8 @@ 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:' error: 'An error occurred while creating your directory at "%s"' diff --git a/translations/config.import.yml b/translations/config.import.yml index 1d64403..205d658 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.' diff --git a/translations/config.override.yml b/translations/config.override.yml index 05fc6f5..5397d86 100644 --- a/translations/config.override.yml +++ b/translations/config.override.yml @@ -7,12 +7,16 @@ arguments: name: 'Configuration name' 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 exists' + invalid-config-file: 'Config file does not exist.' examples: - description: 'Set the Contact module flood limit to 10.' diff --git a/translations/create.comments.yml b/translations/create.comments.yml index f87c0e8..fc7920a 100644 --- a/translations/create.comments.yml +++ b/translations/create.comments.yml @@ -28,6 +28,7 @@ messages: 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.' diff --git a/translations/create.nodes.yml b/translations/create.nodes.yml index 2a4fef2..d67015c 100644 --- a/translations/create.nodes.yml +++ b/translations/create.nodes.yml @@ -7,6 +7,7 @@ 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' @@ -19,6 +20,7 @@ questions: - '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' @@ -26,6 +28,7 @@ messages: 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.' diff --git a/translations/create.roles.yml b/translations/create.roles.yml new file mode 100644 index 0000000..ca12085 --- /dev/null +++ b/translations/create.roles.yml @@ -0,0 +1,19 @@ +description: 'Create dummy roles for your Drupal 8 application.' +help: 'The create:roles command helps you create dummy roles.' +welcome: 'Welcome to the Drupal roles generator' +options: + limit: 'How many roles would you like to create' +questions: + limit: 'Enter how many roles would you like to create' +messages: + role-id: 'Role Id' + 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\n" diff --git a/translations/create.terms.yml b/translations/create.terms.yml index 3193b2d..877df7a 100644 --- a/translations/create.terms.yml +++ b/translations/create.terms.yml @@ -16,6 +16,7 @@ messages: 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.' diff --git a/translations/create.users.yml b/translations/create.users.yml index 1eb9d34..65ba8c0 100644 --- a/translations/create.users.yml +++ b/translations/create.users.yml @@ -25,6 +25,7 @@ messages: username: Username created: 'Created Time' created-users: 'Created "%s" users successfully' + error: 'Error creating users: "%s"' examples: - description: 'Provide the user role.' diff --git a/translations/database.client.yml b/translations/database.client.yml index 1c42c50..6eb385d 100644 --- a/translations/database.client.yml +++ b/translations/database.client.yml @@ -1,6 +1,7 @@ description: 'Launch a DB client if it''s available' arguments: database: 'Database key from settings.php' + target: 'Database target from settings.php' messages: connection: 'Connection: "%s"' examples: diff --git a/translations/database.connect.yml b/translations/database.connect.yml index cb0c5ce..f337509 100644 --- a/translations/database.connect.yml +++ b/translations/database.connect.yml @@ -1,5 +1,7 @@ description: 'Shows DB connection' arguments: + key: 'Database key from settings.php' + target: 'Database target from settings.php' database: 'Database key from settings.php' messages: database-not-found: 'Database "%s" connection info wasn''t found' diff --git a/translations/database.drop.yml b/translations/database.drop.yml index af59bd5..35b677d 100644 --- a/translations/database.drop.yml +++ b/translations/database.drop.yml @@ -2,6 +2,7 @@ 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' question: drop-tables: 'Confirm you really want to drop all tables in the database "%s"?' messages: diff --git a/translations/database.dump.yml b/translations/database.dump.yml index dcfcf06..444bbd5 100644 --- a/translations/database.dump.yml +++ b/translations/database.dump.yml @@ -1,9 +1,11 @@ description: 'Dump structure and contents of a database' arguments: 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' + exclude-cache: 'Pass this option if you want to exclude cache tables.' messages: success: 'Database exported to:' examples: diff --git a/translations/database.log.common.yml b/translations/database.log.common.yml index 93ca8c9..46aca72 100644 --- a/translations/database.log.common.yml +++ b/translations/database.log.common.yml @@ -10,3 +10,4 @@ messages: user: User severity: Severity invalid-severity: 'Severity type is invalid, filter was ignored' + user-deleted: 'User has been deleted' diff --git a/translations/database.query.yml b/translations/database.query.yml index 7a8e122..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' diff --git a/translations/database.restore.yml b/translations/database.restore.yml index 7ba6a63..2d8ad83 100644 --- a/translations/database.restore.yml +++ b/translations/database.restore.yml @@ -1,6 +1,7 @@ description: 'Restore structure and contents of a database.' arguments: database: 'Database key from settings.php' + target: 'Database target from settings.php' options: file: 'The filename for your database backup file' messages: diff --git a/translations/debug.chain.yml b/translations/debug.chain.yml index 83e37e8..f78cb33 100644 --- a/translations/debug.chain.yml +++ b/translations/debug.chain.yml @@ -2,3 +2,5 @@ description: 'ਉਪਲੱਬਧ ਚੇਨ ਫਾਇਲ ਦੀ ਸੂਚੀ' messages: directory: ਡਾਇਰੈਕਟਰੀ file: 'ਚੇਨ ਫਾਇਲ ਦਾ ਨਾਮ' + command: 'Command name.' + no-files: 'No chain files found.' diff --git a/translations/debug.config.yml b/translations/debug.config.yml index 55e90a0..d981733 100644 --- a/translations/debug.config.yml +++ b/translations/debug.config.yml @@ -1,6 +1,8 @@ description: 'ਮੌਜੂਦਾ ਸੰਰਚਨਾ ਦਿਖਾਓ.' arguments: name: 'ਸੰਰਚਨਾ ਨਾਮ.' +options: + show-overridden: 'Show overridden configurations.' errors: not-exists: 'ਸੰਰਚਨਾ "%s" ਮੌਜੂਦ ਨਹੀ ਹੈ.' examples: @@ -13,3 +15,6 @@ examples: - description: 'List all system configuration names.' execution: 'drupal config:debug | 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 b4a02e3..428194f 100644 --- a/translations/debug.container.yml +++ b/translations/debug.container.yml @@ -3,6 +3,8 @@ arguments: service: 'Service name.' method: 'Method name.' arguments: 'Array of Arguments in CSV or JSON format.' +options: + tag: 'Service tag ' messages: service-id: 'Service ID' class-name: 'Class Name' diff --git a/translations/debug.libraries.yml b/translations/debug.libraries.yml index 6dc3a99..bfb595e 100644 --- a/translations/debug.libraries.yml +++ b/translations/debug.libraries.yml @@ -2,8 +2,10 @@ description: 'Displays libraries available in application' options: name: 'Enter Libraries Name' messages: - name: 'Extension with Libraries' + extension: Extension + library: Library info: 'Libraries Information' + name: 'Extension with Libraries' examples: - description: 'List all available libraries' @@ -11,3 +13,6 @@ examples: - description: 'List block library information' 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.plugin.yml b/translations/debug.plugin.yml index ac88228..a8b63ab 100644 --- a/translations/debug.plugin.yml +++ b/translations/debug.plugin.yml @@ -5,6 +5,8 @@ arguments: id: 'Plugin ID' errors: plugin-type-not-found: 'Plugin type "%s" not found. No service available for that type.' +messages: + plugin-info: 'Plugin additional information' table-headers: plugin-type-name: 'Plugin type' plugin-type-class: 'Plugin manager class' @@ -12,6 +14,7 @@ table-headers: plugin-class: 'Plugin class' definition-key: Key definition-value: Value + setting: Setting examples: - description: 'Displays a list with all the plugins on the current site' diff --git a/translations/debug.roles.yml b/translations/debug.roles.yml new file mode 100644 index 0000000..4507549 --- /dev/null +++ b/translations/debug.roles.yml @@ -0,0 +1,10 @@ +description: 'Displays current roles for the application' +help: 'The debug:roles command helps you get current roles.' +welcome: 'Welcome to the Drupal roles debug' +messages: + role-id: 'Role ID' + role-name: 'Role Name' +examples: + - + description: 'Roles list on the site' + execution: "drupal debug:roles\n" diff --git a/translations/debug.router.yml b/translations/debug.router.yml index 1acba3a..ec6946b 100644 --- a/translations/debug.router.yml +++ b/translations/debug.router.yml @@ -1,6 +1,8 @@ description: 'Displays current routes for the application' arguments: route-name: 'Route names' +options: + pattern: 'Route pattern' messages: name: 'Route name' class: 'Class path' @@ -16,3 +18,12 @@ examples: - 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.site.yml b/translations/debug.site.yml index 32a9445..71d35fb 100644 --- a/translations/debug.site.yml +++ b/translations/debug.site.yml @@ -4,10 +4,12 @@ messages: site: Site host: Host root: Root - not-sites: 'No sites defined' + 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' + not-sites: 'No sites defined' directory-not-found: 'Sites local directory not found' options: target: Target diff --git a/translations/debug.test.yml b/translations/debug.test.yml index db5b035..8f19965 100644 --- a/translations/debug.test.yml +++ b/translations/debug.test.yml @@ -9,12 +9,12 @@ messages: description: Description group: Group type: 'Test Type' - success: 'The console has been updated to the latest version.' missing-dependency: 'Missing dependency' methods: 'Test methods' not-found: 'Debug wasn''t found, try enclosure test id between double quotes.' success-groups: 'All testing groups were listed sucessfully, use the group argument to filter Test unit by group i.e $ drupal test:debug Url' success-group: 'All test units for group "%s" were listed sucessfully' + success: 'The console has been updated to the latest version.' examples: - description: '' diff --git a/translations/debug.theme.keys.yml b/translations/debug.theme.keys.yml new file mode 100644 index 0000000..1caecad --- /dev/null +++ b/translations/debug.theme.keys.yml @@ -0,0 +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.\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 +table-headers: + key: Key + provider-type: 'Provider type' + provider: Provider + value: Value +provider-types: + module: Module + base-theme-engine: 'Base theme engine' + base-theme: 'Base theme' + theme-engine: 'Theme engine' + theme: Theme 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/devel.dumper.yml b/translations/devel.dumper.yml new file mode 100644 index 0000000..811a108 --- /dev/null +++ b/translations/devel.dumper.yml @@ -0,0 +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"' diff --git a/translations/docker.init.yml b/translations/docker.init.yml new file mode 100644 index 0000000..95f79c0 --- /dev/null +++ b/translations/docker.init.yml @@ -0,0 +1 @@ +description: 'Create a docker-compose.yml file' diff --git a/translations/dotenv.init.yml b/translations/dotenv.init.yml new file mode 100644 index 0000000..ea7cd46 --- /dev/null +++ b/translations/dotenv.init.yml @@ -0,0 +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\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/entity.delete.yml b/translations/entity.delete.yml index a70e454..3fce07a 100644 --- a/translations/entity.delete.yml +++ b/translations/entity.delete.yml @@ -3,12 +3,16 @@ help: 'The entity:delete command helps you delete entities.' arguments: entity-definition-id: 'Entity definition id' entity-id: 'Entity ID to be deleted' +options: + 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' 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.' examples: - description: 'Delete entity type content using node id' diff --git a/translations/generate.ajax.command.yml b/translations/generate.ajax.command.yml new file mode 100644 index 0000000..1aeb4dd --- /dev/null +++ b/translations/generate.ajax.command.yml @@ -0,0 +1,13 @@ +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' +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' diff --git a/translations/generate.authentication.provider.yml b/translations/generate.authentication.provider.yml index c5a38de..6ffec22 100644 --- a/translations/generate.authentication.provider.yml +++ b/translations/generate.authentication.provider.yml @@ -1,9 +1,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: common.options.module +questions: + 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' diff --git a/translations/generate.cache.context.yml b/translations/generate.cache.context.yml index 75f0e28..5ad2784 100644 --- a/translations/generate.cache.context.yml +++ b/translations/generate.cache.context.yml @@ -1,5 +1,12 @@ 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' questions: + module: 'Enter the module name' name: 'Enter the cache context name' class: 'Cache context class name' examples: diff --git a/translations/generate.command.yml b/translations/generate.command.yml index 31d92c5..d35045a 100644 --- a/translations/generate.command.yml +++ b/translations/generate.command.yml @@ -2,16 +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: - module: 'The name of the Module (that will contain the command).' - controller-title: 'Controller title.' + extension: 'The name of the Extension (modules, profiles or themes name 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.' + module: 'The name of the Module (that will contain the command).' + controller-title: 'Controller title.' questions: - module: common.questions.module + 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?.' + module: common.questions.module messages: title-not-empty: 'Title cannot be empty' examples: diff --git a/translations/generate.composer.yml b/translations/generate.composer.yml new file mode 100644 index 0000000..31ce664 --- /dev/null +++ b/translations/generate.composer.yml @@ -0,0 +1,45 @@ +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' +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' +suggestions: + 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 \\\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.entity.config.yml b/translations/generate.entity.config.yml index 065f34b..31bcec4 100644 --- a/translations/generate.entity.config.yml +++ b/translations/generate.entity.config.yml @@ -1,5 +1,6 @@ description: 'Generate a new config entity' help: '' +welcome: 'Welcome to the Drupal Config Entity generator' options: module: common.options.module entity-class: 'The config entity class' diff --git a/translations/generate.entity.content.yml b/translations/generate.entity.content.yml index 65822d9..ab98178 100644 --- a/translations/generate.entity.content.yml +++ b/translations/generate.entity.content.yml @@ -1,11 +1,14 @@ description: 'Generate a new content entity' help: '' +welcome: 'Welcome to the Drupal Content Entity generator' options: module: common.options.module 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: @@ -14,6 +17,8 @@ questions: entity-name: 'Enter the 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' diff --git a/translations/generate.event.subscriber.yml b/translations/generate.event.subscriber.yml index 812b357..52d7335 100644 --- a/translations/generate.event.subscriber.yml +++ b/translations/generate.event.subscriber.yml @@ -1,6 +1,19 @@ 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' questions: + module: 'Enter the module name' + name: 'Enter the service name' class: 'Class name' + services: 'Enter your service' + event-name: 'Enter event name' callback-name: 'Callback function name to handle event' examples: - diff --git a/translations/generate.form.alter.yml b/translations/generate.form.alter.yml index 3b963f8..133ebfc 100644 --- a/translations/generate.form.alter.yml +++ b/translations/generate.form.alter.yml @@ -1,7 +1,18 @@ description: 'Generate an implementation of hook_form_alter() or hook_form_FORM_ID_alter' 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.' +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' 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' diff --git a/translations/generate.form.config.yml b/translations/generate.form.config.yml new file mode 100644 index 0000000..dcfb6ac --- /dev/null +++ b/translations/generate.form.config.yml @@ -0,0 +1,45 @@ +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' +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' +suggestions: + 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 \\\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 cf50e16..5647356 100644 --- a/translations/generate.form.yml +++ b/translations/generate.form.yml @@ -20,13 +20,28 @@ questions: form-id: 'Enter the Form id' services: common.questions.services config-file: 'Do you want to generate a config file' - inputs: common.questions.inputs 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' + inputs: common.questions.inputs 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' +suggestions: + 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' diff --git a/translations/generate.help.yml b/translations/generate.help.yml index b95ba48..02507b2 100644 --- a/translations/generate.help.yml +++ b/translations/generate.help.yml @@ -1,5 +1,6 @@ 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: null questions: null messages: diff --git a/translations/generate.jstest.yml b/translations/generate.jstest.yml new file mode 100644 index 0000000..b6e9db2 --- /dev/null +++ b/translations/generate.jstest.yml @@ -0,0 +1,12 @@ +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' +questions: + 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 \\\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.yml b/translations/generate.module.yml index fbfd45c..5ee7b61 100644 --- a/translations/generate.module.yml +++ b/translations/generate.module.yml @@ -28,6 +28,8 @@ questions: 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' warnings: module-unavailable: 'Warning The following modules are not already available in your local environment "%s"' errors: diff --git a/translations/generate.permissions.yml b/translations/generate.permissions.yml new file mode 100644 index 0000000..28b31ff --- /dev/null +++ b/translations/generate.permissions.yml @@ -0,0 +1,15 @@ +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.' +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?' +suggestions: + 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 671338b..7183abb 100644 --- a/translations/generate.plugin.block.yml +++ b/translations/generate.plugin.block.yml @@ -4,19 +4,27 @@ welcome: 'Welcome to the Drupal Plugin Block generator' options: module: common.options.module class: 'Plugin class name' - label: 'Plugin label' + plugin-label: 'Plugin label' plugin-id: 'Plugin id' inputs: common.options.inputs services: common.options.services theme-region: 'Theme region to render Plugin Block' + twigtemplate: 'Generate theme template' + label: 'Plugin label' questions: module: common.questions.module class: 'Enter the plugin class name' - label: 'Enter the plugin label' + plugin-label: 'Enter the plugin label' plugin-id: 'Enter the plugin id' - inputs: common.questions.inputs services: common.questions.services 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?' + inputs: common.questions.inputs 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' diff --git a/translations/generate.plugin.ckeditorbutton.yml b/translations/generate.plugin.ckeditorbutton.yml index e337b12..b5e895a 100644 --- a/translations/generate.plugin.ckeditorbutton.yml +++ b/translations/generate.plugin.ckeditorbutton.yml @@ -6,6 +6,8 @@ options: 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.' button-name: '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: 'Button icon path. This is the path to the icon/image of the button.' questions: @@ -15,6 +17,8 @@ questions: 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 CKEditor button specifying the module name, the class, the label, its id, the button name and the icon path' diff --git a/translations/generate.plugin.field.yml b/translations/generate.plugin.field.yml index feddc91..bb8d24e 100644 --- a/translations/generate.plugin.field.yml +++ b/translations/generate.plugin.field.yml @@ -31,6 +31,8 @@ questions: 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' 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)' diff --git a/translations/generate.plugin.fieldtype.yml b/translations/generate.plugin.fieldtype.yml index e9804b7..fb1c76f 100644 --- a/translations/generate.plugin.fieldtype.yml +++ b/translations/generate.plugin.fieldtype.yml @@ -17,6 +17,8 @@ questions: 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' examples: - description: 'Generate a field type plugin specifying the module name, the class, its label, the plugin id and a description' diff --git a/translations/generate.plugin.imageeffect.yml b/translations/generate.plugin.imageeffect.yml index c7c1751..dd2c03e 100644 --- a/translations/generate.plugin.imageeffect.yml +++ b/translations/generate.plugin.imageeffect.yml @@ -13,6 +13,8 @@ questions: label: 'Enter the plugin label' plugin-id: 'Enter the plugin id' description: 'Enter the plugin Description' +suggestions: + 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' diff --git a/translations/generate.plugin.imageformatter.yml b/translations/generate.plugin.imageformatter.yml index fe4feb7..748b72a 100644 --- a/translations/generate.plugin.imageformatter.yml +++ b/translations/generate.plugin.imageformatter.yml @@ -1,5 +1,6 @@ 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: common.options.module class: 'Plugin class name' 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 757718b..42ee503 100644 --- a/translations/generate.plugin.migrate.process.yml +++ b/translations/generate.plugin.migrate.process.yml @@ -1,10 +1,12 @@ 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: common.options.module 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' examples: diff --git a/translations/generate.plugin.migrate.source.yml b/translations/generate.plugin.migrate.source.yml index a47c012..bcc5128 100644 --- a/translations/generate.plugin.migrate.source.yml +++ b/translations/generate.plugin.migrate.source.yml @@ -16,6 +16,8 @@ questions: 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' fields: id: 'Enter the field id or press enter if done' description: 'Enter the field description' 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.rules.action.yml b/translations/generate.plugin.rules.action.yml new file mode 100644 index 0000000..664ada3 --- /dev/null +++ b/translations/generate.plugin.rules.action.yml @@ -0,0 +1,29 @@ +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' +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' +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 \\\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 new file mode 100644 index 0000000..da80025 --- /dev/null +++ b/translations/generate.plugin.rules.condition.yml @@ -0,0 +1,26 @@ +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' +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' +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 \\\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 new file mode 100644 index 0000000..e66dfbf --- /dev/null +++ b/translations/generate.plugin.rules.dataprocessor.yml @@ -0,0 +1,20 @@ +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)' +questions: + 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 \\\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 03dca7b..289eb73 100644 --- a/translations/generate.plugin.skeleton.yml +++ b/translations/generate.plugin.skeleton.yml @@ -1,13 +1,16 @@ description: 'Generate an implementation of a skeleton plugin for those plugins Drupal Console do not have a specific generator' help: 'The "%s" command helps you generate a skeleton plugin "%s"' +welcome: 'Welcome to the Drupal Skeleton Plugin generator' options: module: common.options.module plugin: 'The Plugin Id.' class: 'Plugin class name' + services: 'Load services from the container.' questions: module: common.questions.module plugin: 'Enter the Plugin Id' class: 'Enter the plugin class name' + services: 'Enter your service' messages: plugin-dont-exist: 'The plugin "%s" do not exist' plugin-generator-implemented: 'Plugin "%s" already has an advanced command generator, please use "%s"' diff --git a/translations/generate.plugin.validationconstraint.yml b/translations/generate.plugin.validationconstraint.yml new file mode 100644 index 0000000..be4ca83 --- /dev/null +++ b/translations/generate.plugin.validationconstraint.yml @@ -0,0 +1,21 @@ +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' +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' +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 \\\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 c34b43d..6125df3 100644 --- a/translations/generate.plugin.views.field.yml +++ b/translations/generate.plugin.views.field.yml @@ -1,14 +1,21 @@ 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).' class: 'Views plugin field class name' title: 'Views plugin field title' description: 'Views plugin field description' questions: + module: 'Enter the module name' class: 'Views plugin field class name' title: 'Views plugin field title' description: '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' examples: - description: 'Generate a custom view field plugin specifying the module name, the class, a title and its description' diff --git a/translations/generate.post.update.yml b/translations/generate.post.update.yml index 29876f8..8b7eb95 100644 --- a/translations/generate.post.update.yml +++ b/translations/generate.post.update.yml @@ -1,8 +1,11 @@ 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' questions: + 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' diff --git a/translations/generate.profile.yml b/translations/generate.profile.yml index 0ece38f..dfd405b 100644 --- a/translations/generate.profile.yml +++ b/translations/generate.profile.yml @@ -4,17 +4,24 @@ 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' 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?' +suggestions: + my-useful-profile: 'My Useful Profile' + my-kick-ass-distribution: 'My Kick-ass Distribution' warnings: module-unavailable: 'Warning: The following modules are not already available in your local environment "%s"' errors: diff --git a/translations/generate.service.yml b/translations/generate.service.yml index 5df916a..b1bd646 100644 --- a/translations/generate.service.yml +++ b/translations/generate.service.yml @@ -6,7 +6,10 @@ options: service-name: 'Service name' class: 'Class name' interface: Interface + interface-name: 'Interface name' + logger-channel: 'Logger channel' services: common.questions.services + path-service: Path path: Path questions: module: common.questions.module @@ -14,7 +17,9 @@ questions: class: 'Enter the Class name' interface: 'Create an interface' interface-name: 'Enter the interface name' + logger-channel: 'Create a logger channel' services: common.options.services + path-service: 'Enter the path for the services' path: 'Enter the path for the services' messages: service-already-taken: 'The service name has been already taken in module "%s"' diff --git a/translations/generate.site.alias.yml b/translations/generate.site.alias.yml new file mode 100644 index 0000000..1420451 --- /dev/null +++ b/translations/generate.site.alias.yml @@ -0,0 +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.' + 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 tty option and/or 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.' + 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 508f5df..a7fed10 100644 --- a/translations/generate.theme.yml +++ b/translations/generate.theme.yml @@ -10,7 +10,9 @@ options: 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: @@ -37,6 +39,9 @@ questions: 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 warnings: module-unavailable: 'Warning The following modules are not already available in your local environment "%s"' errors: diff --git a/translations/generate.twig.extension.yml b/translations/generate.twig.extension.yml index 862469b..b7efa28 100644 --- a/translations/generate.twig.extension.yml +++ b/translations/generate.twig.extension.yml @@ -2,8 +2,15 @@ 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.' questions: + module: 'Enter the module name' + name: 'Enter the twig Extension name' + class: 'Class name' + services: 'Enter your service' twig-extension: 'Enter the Twig extension name' examples: - diff --git a/translations/generate.update.yml b/translations/generate.update.yml index 2d8df76..54ee3af 100644 --- a/translations/generate.update.yml +++ b/translations/generate.update.yml @@ -1,8 +1,11 @@ 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' questions: + 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' diff --git a/translations/init.yml b/translations/init.yml index d16f020..301722a 100644 --- a/translations/init.yml +++ b/translations/init.yml @@ -3,6 +3,7 @@ options: destination: 'Destination directory to copy files' override: 'Override configurations files' autocomplete: 'Autocomplete tool files flag.' + site: 'Use local site as destination.' questions: destination: 'Select destination to copy configuration' autocomplete: 'Generate autocomplete files' @@ -13,3 +14,7 @@ questions: 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/locale.language.add.yml b/translations/locale.language.add.yml index 6bb4e4a..02ed0ec 100644 --- a/translations/locale.language.add.yml +++ b/translations/locale.language.add.yml @@ -1,4 +1,8 @@ description: 'Add a language to be supported by your site' messages: invalid-language: 'Language "%s" it''s 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/migrate.setup.yml b/translations/migrate.setup.yml index f14da8a..d72e83b 100644 --- a/translations/migrate.setup.yml +++ b/translations/migrate.setup.yml @@ -7,6 +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)' files-directory: 'Files Directory' questions: @@ -17,6 +18,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)' files-directory: 'Files Directory' messages: diff --git a/translations/module.download.yml b/translations/module.download.yml index 1e0620f..566a010 100644 --- a/translations/module.download.yml +++ b/translations/module.download.yml @@ -5,6 +5,7 @@ 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' questions: path: 'Enter the contrib project Path' messages: diff --git a/translations/module.uninstall.yml b/translations/module.uninstall.yml index 18da0d7..36327c9 100644 --- a/translations/module.uninstall.yml +++ b/translations/module.uninstall.yml @@ -1,11 +1,13 @@ description: 'Uninstall module or modules in the application' +arguments: + module: 'Module or modules to be uninstalled should be separated by a space' questions: module: 'Enter module name' invalid-module: 'Invalid module "%s"' options: - module: 'Module or modules to be uninstalled should be separated by a comma' 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 comma' messages: no-modules: 'You must provide module or modules to uninstall.' dependents: 'Unable to uninstall modules "%s" because are required by "%s"' diff --git a/translations/multisite.update.yml b/translations/multisite.update.yml new file mode 100644 index 0000000..50bca24 --- /dev/null +++ b/translations/multisite.update.yml @@ -0,0 +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 ''/'')' +questions: + 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.' +messages: + 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\n" diff --git a/translations/role.delete.yml b/translations/role.delete.yml new file mode 100644 index 0000000..67efa37 --- /dev/null +++ b/translations/role.delete.yml @@ -0,0 +1,14 @@ +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' +messages: + 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\n" diff --git a/translations/role.new.yml b/translations/role.new.yml new file mode 100644 index 0000000..16db8ad --- /dev/null +++ b/translations/role.new.yml @@ -0,0 +1,18 @@ +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' +questions: + 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' +examples: + - + 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 7830d7d..706090f 100644 --- a/translations/router.rebuild.yml +++ b/translations/router.rebuild.yml @@ -4,6 +4,7 @@ arguments: messages: rebuilding: 'Rebuilding routes, wait a moment please' completed: 'Done rebuilding route(s).' + error-rebuild: 'Error to rebuild route(s).' examples: - description: 'Rebuild routes' diff --git a/translations/site.install.yml b/translations/site.install.yml index ae527e0..ba5047f 100644 --- a/translations/site.install.yml +++ b/translations/site.install.yml @@ -2,6 +2,7 @@ description: 'Install a Drupal project' arguments: 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' @@ -9,6 +10,7 @@ arguments: 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' @@ -18,15 +20,23 @@ questions: 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' 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 using database:drop and then run site:install again' + 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 \\\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/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/test.run.yml b/translations/test.run.yml index 45e1126..3112dce 100644 --- a/translations/test.run.yml +++ b/translations/test.run.yml @@ -2,6 +2,7 @@ description: 'Run Test unit from tests available for application' arguments: test-class: 'Test Class' test-methods: 'Test method(s) to be run' + url: 'Test url' messages: missing-dependency: 'Test can''t be executed due a missing dependency' phpunit-pending: 'Logic to execute PHPUnit test is not implemented yet.' diff --git a/translations/update.execute.yml b/translations/update.execute.yml index bd8f619..330f25c 100644 --- a/translations/update.execute.yml +++ b/translations/update.execute.yml @@ -1,12 +1,24 @@ description: 'Execute a specific Update N function in a module, or execute all' -options: +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' messages: 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: 'Update all entities' execution: "drupal update:execute\n" + - + description: 'Execute updates for system module' + execution: "drupal update:execute system\n" diff --git a/translations/user.delete.yml b/translations/user.delete.yml index 8b23caf..9fdd630 100644 --- a/translations/user.delete.yml +++ b/translations/user.delete.yml @@ -2,19 +2,21 @@ description: 'Delete users for the application' help: 'The user:delete command helps you delete users.' welcome: 'Welcome to the Drupal user delete' options: - user-id: 'User id to be deleted' + user: 'User name/id to be deleted' roles: 'Roles associated to users to be deleted' + user-id: 'User id to be deleted' questions: - user-id: 'User id to be deleted (empty to skip)' + user: 'User name/id to be deleted (empty to skip)' roles: 'Select role(s) associated with users to be deleted' + user-id: 'User id to be deleted (empty to skip)' messages: user-id: 'User ID' username: Username user-deleted: 'User "%s" was deleted successfully' users-deleted: '"%s" users were deleted successfully' errors: - invalid-user-id: 'User id "%s" is invalid' invalid-user: 'User id "%s" is invalid' + invalid-user-id: 'User id "%s" is invalid' examples: - description: 'Delete user specifying the id and the user role' @@ -22,3 +24,6 @@ examples: - description: 'Delete user specifying its id' execution: "drupal user:delete \\\n --user-id=\"3\"\n" + - + description: 'Delete users with the role "authenticated"' + execution: "drupal user:delete \\\n --role=\"authenticated\"\n" diff --git a/translations/user.login.clear.attempts.yml b/translations/user.login.clear.attempts.yml index e7f7af7..997704c 100644 --- a/translations/user.login.clear.attempts.yml +++ b/translations/user.login.clear.attempts.yml @@ -1,8 +1,9 @@ description: 'Clear failed login attempts for an account.' help: 'The user:login:clear:attempts command resets the failed login attempts for an account.' -options: - user-id: 'User ID.' +arguments: + user: 'User name/id.' questions: + user: 'Enter User name/id' uid: 'Enter User ID.' numeric-uid: 'User id must be an integer.' invalid-uid: 'User id must be upper than zero.' diff --git a/translations/user.login.url.yml b/translations/user.login.url.yml index 924e8ee..d074051 100644 --- a/translations/user.login.url.yml +++ b/translations/user.login.url.yml @@ -1,11 +1,17 @@ description: 'Returns a one-time user login url.' options: + user: 'User name/id.' user-id: 'User ID.' messages: url: 'One-time login for "%s": "%s"' +questions: + user: 'Enter User name/id' errors: invalid-user: 'Cannot load user entity (User ID: "%s").' examples: - description: 'Get one time login url for user id 1' execution: "drupal user:login:url 1\n" + - + description: 'Get one time login url for username jmolivas' + execution: 'drupal user:login:url jmolivas' diff --git a/translations/user.password.reset.yml b/translations/user.password.reset.yml index 1d93cb8..58c5efe 100644 --- a/translations/user.password.reset.yml +++ b/translations/user.password.reset.yml @@ -3,13 +3,15 @@ help: 'The password:reset command helps you to reset password for a welcome: 'Welcome to the Drupal password reset' options: password: 'Password in text format' + user: 'User name/id' user-id: 'User ID' questions: - invalid-uid: 'Invalid user id "%s", user id must be an integer' + invalid-user: 'Invalid user name/id "%s", user id must be an integer' invalid-pass: 'Password can''t be empty' user: 'Enter User ID' password: 'Enter password' other-password: 'Other password (press to stop adding passwords)' + invalid-uid: 'Invalid user id "%s", user id must be an integer' messages: reset-successful: 'Password was updated successfully for user id "%s"' errors: @@ -19,3 +21,6 @@ examples: - description: 'Update password specifying the user id and the new password' execution: "drupal user:password:reset 2 p455w0rd\n" + - + description: 'Update password specifying the user jmolivas and the new password' + execution: "drupal user:password:reset jmolivas p455w0rd\n" diff --git a/translations/user.unblock.yml b/translations/user.unblock.yml new file mode 100644 index 0000000..676029f --- /dev/null +++ b/translations/user.unblock.yml @@ -0,0 +1,21 @@ +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' +questions: + 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.' +warnings: + unblocked-user: 'User "%s" is already unblocked' +errors: + 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\n"