Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update keys to v1.9.1 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# drupal-console-en
# drupal-console-ur

## Usage

Expand Down
66 changes: 28 additions & 38 deletions translations/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ options:
generate-doc: 'Shows command options and arguments as markdown'
root: 'Define the Drupal root to be used in command execution'
uri: 'URI of the Drupal site to use (for multi-site environments or when running on an alternate port)'
yes: 'Skip confirmation and proceed'
'yes': 'Skip confirmation and proceed'
target: 'Site name you want to interact with (for local or remote sites)'
help: 'Display this help message'
quiet: 'Suppress all output from the command'
Expand All @@ -33,26 +33,18 @@ messages:
path: 'Generation path'
learning:
route: "In order to to create pages it is necessary to define routes for them.\nA route maps a URL path to a controller. It defines what function\nor method will be called when a URL is accessed.\nIf the user accesses http://drupal8.dev/{{ route.path }}, the routing\nsystem will look for a route with that path. In this case it will find a\nmatch, and execute the _controller callback. In this case the callback is\ndefined as a classname\n(\"\\Drupal\\{{ module }}\\Controller\\{{ class_name }}\")\nand a method (\"{{ route.method }}\")."
autocomplete: |
Bash: Bash support depends on the http://bash-completion.alioth.debian.org/
project which can be installed with your package manager of choice. Then add
this line to your shell configuration file.
<info>source "$HOME/.console/console.rc" 2>/dev/null</info>

Bash or Zsh: Add this line to your shell configuration file:
<info>source "$HOME/.console/console.rc" 2>/dev/null</info>

Fish: Create a symbolic link
<info>ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish</info>
autocomplete: "Bash: Bash support depends on the http://bash-completion.alioth.debian.org/\nproject which can be installed with your package manager of choice. Then add\nthis line to your shell configuration file.\n<info>source \"$HOME/.console/console.rc\" 2>/dev/null</info>\n\nBash or Zsh: Add this line to your shell configuration file:\n<info>source \"$HOME/.console/console.rc\" 2>/dev/null</info>\n\nFish: Create a symbolic link\n<info>ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish</info>\n"
version: '<info>"%s"</info> version <comment>"%s"</comment>'
disable:
command:
error: 'Command: "%s" is deprecated.'
extra: 'You must execute: "%s" instead'
command:
error: 'Command: "%s" is deprecated.'
extra: 'You must execute: "%s" instead'
errors:
invalid-command: 'Command "%s", is not a valid command name.'
renamed-command: 'Command "%s" was renamed, use "%s" instead.'
drush-command: 'Command "%s" is a Drush command (deprecated). Drupal Console equivalent "%s" was executed instead.'
statistics-failed: "The Drupal console failed to send statistics. After 10 attempts, this feature was disabled.\nIf you want to enable it again, use the following command:\n\n<info>drupal settings:set statistics.enabled true</info>\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\n<info>drupal init</info>"
site:
messages:
path: 'Site path'
Expand All @@ -66,28 +58,26 @@ site:
user:
messages:
path: 'User home path'

remote:
errors:
passphrase-missing: 'Passphrase file is missing'
passphrase-empty: 'Passphrase file is empty'
private-missing: 'Private file is missing'
private-empty: 'Private file is empty'
private-invalid: 'Private file is invalid'
invalid-root: 'Invalid root directory'
console-not-found: 'Drupal Console not found on this site'

errors:
passphrase-missing: 'Passphrase file is missing'
passphrase-empty: 'Passphrase file is empty'
private-missing: 'Private file is missing'
private-empty: 'Private file is empty'
private-invalid: 'Private file is invalid'
invalid-root: 'Invalid root directory'
console-not-found: 'Drupal Console not found on this site'
gitbook:
messages:
title: 'Available Drupal Console Commands'
note: 'Note'
note-description: 'Drupal Console commands *must* be run from the root of a Drupal 8 installation'
command: 'Drupal Console Command'
command_description: 'The **"%s"** command "%s"'
usage: 'Usage'
options: 'Available options'
option: 'Option'
details: 'Details'
arguments: 'Available arguments'
argument: 'Argument'
examples: 'Examples'
messages:
title: 'Available Drupal Console Commands'
note: Note
note-description: 'Drupal Console commands *must* be run from the root of a Drupal 8 installation'
command: 'Drupal Console Command'
command_description: 'The **"%s"** command "%s"'
usage: Usage
options: 'Available options'
option: Option
details: Details
arguments: 'Available arguments'
argument: Argument
examples: Examples
10 changes: 6 additions & 4 deletions translations/cache.rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ messages:
questions:
cache: 'Select cache.'
examples:
- description: Rebuild all caches
execution: drupal cr all
- description: Rebuild discovery cache
execution: drupal cr discovery
-
description: 'Rebuild all caches'
execution: 'drupal cr all'
-
description: 'Rebuild discovery cache'
execution: 'drupal cr discovery'
10 changes: 6 additions & 4 deletions translations/cache.tag.invalidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ messages:
start: 'Invalidating tag(s) "%s".'
completed: 'Done invalidating tag(s).'
examples:
- description: Invalidate routes
execution: drupal cti routes
- description: Invalidate a specific node
execution: drupal cti node:1 node_list
-
description: 'Invalidate routes'
execution: 'drupal cti routes'
-
description: 'Invalidate a specific node'
execution: 'drupal cti node:1 node_list'
11 changes: 4 additions & 7 deletions translations/chain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ messages:
enter-value-for-placeholder: 'Enter value for "%s" placeholder'
legacy-inline: 'Update inline legacy placeholders from %{{name}} to {{name}}.'
legacy-environment: 'Update environment legacy placeholders from ${{(NAME}} or %env(NAME)% to {{env("NAME")}}.'
metadata-registration: |
You should register your chain file as command by providing metadata, more info at:
https://docs.drupalconsole.com/en/chains/registering.html
metadata-registration: "You should register your chain file as command by providing metadata, more info at:\n https://docs.drupalconsole.com/en/chains/registering.html"
examples:
- description: 'Providing a file option using full path. (DEPRECATED'
execution: |
drupal chain \
--file="/path/to/file/chain-file.yml"
-
description: 'Providing a file option using full path. (DEPRECATED'
execution: "drupal chain \\\n --file=\"/path/to/file/chain-file.yml\"\n"
14 changes: 7 additions & 7 deletions translations/check.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
description: 'System requirement checker'
messages:
file: 'Checking requirements using file at:'
php-invalid: 'The current installed version "%s" is invalid, it requires "%s" or higher'
configuration-missing: 'The configuration "%s" is missing.'
configuration-overwritten: 'The PHP-Configuration (php.ini) "%s" was missing and overwritten with "%s".'
extension-missing: 'The extension "%s" is missing.'
extension-recommended: 'The extension "%s" is recommended to install.'
success: 'Checks passed.'
file: 'Checking requirements using file at:'
php-invalid: 'The current installed version "%s" is invalid, it requires "%s" or higher'
configuration-missing: 'The configuration "%s" is missing.'
configuration-overwritten: 'The PHP-Configuration (php.ini) "%s" was missing and overwritten with "%s".'
extension-missing: 'The extension "%s" is missing.'
extension-recommended: 'The extension "%s" is recommended to install.'
success: 'Checks passed.'
4 changes: 2 additions & 2 deletions translations/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ questions:
default-value: 'Default value'
checkboxes: 'Default value(s) separated by commas'
weight: 'Weight for input item'
title: 'Title'
fieldset: 'Fieldset'
title: Title
fieldset: Fieldset
new-field: 'Enter a new field properties'
errors:
module-dependency: 'Missing module dependency "%s" is not installed. Try module:install to install it.'
Expand Down
22 changes: 11 additions & 11 deletions translations/composerize.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
description: 'Converts Drupal codebase to composer.'
options:
show-packages: 'Show list of packages.'
include-version: 'Include version on suggested result command.'
show-packages: 'Show list of packages.'
include-version: 'Include version on suggested result command.'
messages:
name: 'Name'
version: 'Version'
dependencies: 'Dependencies'
profile: 'Profile(s) detected'
module: 'Module(s) detected'
theme: 'Theme(s) detected'
from: 'From your project root:'
execute: 'Execute this command:'
ignore: 'To ignore third party libraries, profiles, modules and themes add to your .gitignore file:'
name: Name
version: Version
dependencies: Dependencies
profile: 'Profile(s) detected'
module: 'Module(s) detected'
theme: 'Theme(s) detected'
from: 'From your project root:'
execute: 'Execute this command:'
ignore: 'To ignore third party libraries, profiles, modules and themes add to your .gitignore file:'
6 changes: 3 additions & 3 deletions translations/config.delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ warnings:
questions:
sure: 'Are you sure to delete all configuration'
examples:
- description: 'Provide a config type and a config name'
execution: drupal config:delete active all

-
description: 'Provide a config type and a config name'
execution: 'drupal config:delete active all'
12 changes: 6 additions & 6 deletions translations/config.diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ questions:
directories: 'Config directory:'
table:
headers:
collection: 'Collection'
config-name: 'Configuration item'
operation: 'Operation'
collection: Collection
config-name: 'Configuration item'
operation: Operation
messages:
no-changes: 'There are no changes.'
examples:
- description: 'Provide a config directory'
execution: drupal config:diff ../config/path

-
description: 'Provide a config directory'
execution: 'drupal config:diff ../config/path'
11 changes: 6 additions & 5 deletions translations/config.edit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ messages:
no-directory: 'An error occurred while creating your directory at: "%s"'
choose-configuration: 'Choose a configuration'
examples:
- description: 'Edit system cron configurations with "vim" (default editor).'
execution: 'drupal config:edit system.cron'
- description: 'Edit system cron configurations with "gedit".'
execution: 'drupal config:edit system.cron gedit'

-
description: 'Edit system cron configurations with "vim" (default editor).'
execution: 'drupal config:edit system.cron'
-
description: 'Edit system cron configurations with "gedit".'
execution: 'drupal config:edit system.cron gedit'
17 changes: 8 additions & 9 deletions translations/config.export.content.type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ questions:
optional-config: 'Export content type in module as an optional configuration'
all: 'All content types'
remove-config-hash: 'Content type to be exported without the default site hash key.'
include-module-dependencies: 'Include content type module dependencies in module info YAML file'
messages:
content-type-exported: 'Exporting content type'
options:
optional-config: 'Export content type as an optional YAML configuration in your module'
remove-uuid: 'If set, the configuration will be exported without uuid key.'
remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
include-module-dependencies: 'Include content type module dependencies in module info YAML file'
examples:
- description: 'Provide a content type and module name'
execution: |
drupal config:export:content:type page \
--module="demo"
- description: 'If you want export content type provide the optional config'
execution: |
drupal config:export:content:type page \
--module="demo" \
--optional-config
-
description: 'Provide a content type and module name'
execution: "drupal config:export:content:type page \\\n --module=\"demo\""
-
description: 'If you want export content type provide the optional config'
execution: "drupal config:export:content:type page \\\n --module=\"demo\" \\\n --optional-config\n"
26 changes: 26 additions & 0 deletions translations/config.export.entity.yml
Original file line number Diff line number Diff line change
@@ -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"
19 changes: 7 additions & 12 deletions translations/config.export.single.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
description: 'Export a single configuration or a list of configurations as yml file(s).'
arguments:
name: 'Configuration name.'
options:
name: 'Configuration name.'
include-dependencies: 'Export dependencies of the configuration as well.'
simple-configuration: 'Simple configuration'
optional: 'Export config as an optional YAML configuration in your module'
Expand All @@ -20,13 +19,9 @@ messages:
invalid-config-name: 'Invalid config name, please select one of the list'
config-exported: 'Configuration(s) exported successfully'
examples:
- description: 'Provide config settings name to be exported'
execution: |
drupal config:export:single \
--name=config.settings.name
- description: 'if uuid and/or config hashes will be removed.'
execution: |
drupal config:export:single \
--name=config.settings.name \
--remove-uuid \
--remove-config-hash
-
description: 'Provide config settings name to be exported'
execution: "drupal config:export:single \\\n --name=config.settings.name"
-
description: 'if uuid and/or config hashes will be removed.'
execution: "drupal config:export:single \\\n --name=config.settings.name \\\n --remove-uuid \\\n --remove-config-hash\n"
22 changes: 13 additions & 9 deletions translations/config.export.view.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ questions:
view: 'View to be exported'
optional-config: 'Export view in module as an optional configuration'
include-module-dependencies: 'Include view module dependencies in module info YAML file'
remove-uuid: 'The view to be exported without uuid key.'
remove-config-hash: 'The view to be exported without the default site hash key.'
arguments:
view-id: 'View ID'
options:
optional-config: 'Export view as an optional YAML configuration in your module'
include-module-dependencies: 'Include module dependencies in module info YAML file'
remove-uuid: 'If set, the configuration will be exported without uuid key.'
remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
examples:
- description: 'Provide a view id'
execution: drupal config:export:view viewid
- description: 'You can provide the interactive values like parameter.'
execution: |
drupal config:export:view viewid \
--module="modulename" \
--optional-config \
--include-module-dependencies

-
description: 'Provide a view id'
execution: 'drupal config:export:view viewid'
-
description: 'You can provide the interactive values like parameter.'
execution: "drupal config:export:view viewid \\\n --module=\"modulename\" \\\n --optional-config \\\n --include-module-dependencies\n"
-
description: 'Export as config for the provided module, updating the module''s info.yml with any module dependencies from the view.'
execution: "drupal config:export:view viewid \\\n --module=\"modulename\" \\\n --optional-config \\\n --include-module-dependencies"
20 changes: 8 additions & 12 deletions translations/config.export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@ options:
tar: 'If set, the configuration will be exported to an archive file.'
remove-uuid: 'If set, the configuration will be exported without uuid key.'
remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
questions:
directory: 'Enter the directory name to save the configuration files.'
messages:
directory: 'The configuration was exported at "%s"'
error: 'An error occurred while creating your directory at "%s"'
examples:
- description: 'Optional you can add the path to export'
execution: |
drupal config:export \
--directory="path/to/export"
- description: 'If export will be in a compressed file and/or if uuid and config hashes will be removed.'
execution: |
drupal config:export \
--directory="path/to/export" \
--tar \
--remove-uuid \
--remove-config-hash

-
description: 'Optional you can add the path to export'
execution: "drupal config:export \\\n --directory=\"path/to/export\"\n"
-
description: 'If export will be in a compressed file and/or if uuid and config hashes will be removed.'
execution: "drupal config:export \\\n --directory=\"path/to/export\" \\\n --tar \\\n --remove-uuid \\\n --remove-config-hash\n"
Loading