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 translations keys #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
60 changes: 35 additions & 25 deletions translations/application.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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'
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 @@ -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:
Expand All @@ -29,26 +30,22 @@ 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: 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 @@ -62,13 +59,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
11 changes: 7 additions & 4 deletions translations/cache.rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ messages:
welcome: 'Welcome to the cache:rebuild command'
rebuild: 'Rebuilding cache(s), wait a moment please.'
completed: 'Done clearing cache(s).'
invalid-cache: 'Cache "%s" is invalid.'
invalid_cache: 'Cache "%s" is invalid.'
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'
11 changes: 11 additions & 0 deletions translations/cache.tag.invalidate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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
18 changes: 15 additions & 3 deletions translations/chain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@ options:
questions:
chain-file: 'Select chain file to execute'
messages:
missing_file: 'You must provide a valid file path and name.'
invalid_file: 'The file "%s" does not exist.'
module_install: 'module:install command is not runnable inside a chain queue and must be run independently.'
missing-file: 'You must provide a valid file path and name.'
invalid-file: 'The file "%s" does not exist.'
module-install: 'module:install command is not runnable inside a chain queue and must be run independently.'
missing-environment-placeholders: 'Missing environment placeholder(s) "%s"'
set-environment-placeholders: 'Set environment placeholders as:'
missing-inline-placeholders: 'Missing inline placeholder(s) "%s"'
set-inline-placeholders: 'Pass inline placeholders as:'
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: 'You must provide a valid file path and name.'
invalid_file: 'The file "%s" does not exist.'
module_install: 'module:install command is not runnable inside a chain queue and must be run independently.'
examples:
-
description: 'Providing a file option using full path. (DEPRECATED'
execution: "drupal chain \\\n --file=\"/path/to/file/chain-file.yml\"\n"
19 changes: 12 additions & 7 deletions translations/check.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
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.'
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.'
12 changes: 9 additions & 3 deletions translations/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ 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 <info>enter</info> to <info>continue</info>\n"
name: 'Enter your service'
roles:
message: "\nType the role name or use keyup or keydown.\nThis is optional, press <info>enter</info> to <info>continue</info>\n"
name: 'Enter your role'
inputs:
confirm: 'Do you want to generate a form structure?'
label: 'Input label'
machine_name: 'Input machine name'
machine-name: 'Input machine name'
permission: 'Do you want to generate permissions?'
type: 'New field type (press <return> to stop adding fields)'
invalid: 'Field Type "%s" is invalid.'
Expand All @@ -34,8 +37,10 @@ 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'
machine_name: 'Input machine name'
errors:
module-dependency: 'Missing module dependency "%s" is not installed. Try module:install to install it.'
class-name-empty: 'The Class name can not be empty'
Expand All @@ -50,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: <comment>%s</comment>'
14 changes: 14 additions & 0 deletions translations/composerize.yml
Original file line number Diff line number Diff line change
@@ -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:'
6 changes: 5 additions & 1 deletion translations/config.delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ errors:
warnings:
undo: 'This action will delete all configuration permanentaly.'
questions:
sure: 'Are you sure to delete all configuration'
sure: 'Are you sure to delete all configuration'
examples:
-
description: 'Provide a config type and a config name'
execution: 'drupal config:delete active all'
10 changes: 7 additions & 3 deletions translations/config.diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +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'
8 changes: 8 additions & 0 deletions translations/config.edit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ questions:
config-name: 'Choose a configuration unit'
messages:
no-directory: 'An error occurred while creating your directory at'
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'
15 changes: 15 additions & 0 deletions translations/config.export.content.type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,23 @@ 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.'
execution: "drupal config:export:content:type page \\\n --module=\"demo\""
-
description: 'Export content type as an optional config for the provided module.'
execution: "drupal config:export:content:type page \\\n --module=\"demo\" \\\n --optional-config \\\n --remove-uuid \\\n --remove-config-hash\n"
32 changes: 32 additions & 0 deletions translations/config.export.entity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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 \
--module="demo"
- description: 'If you want export a bundle as an optional config'
execution: |
drupal config:export:entity node_type page \
--module="demo" \
--optional-config \
--remove-uuid \
--remove-config-hash

10 changes: 8 additions & 2 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 @@ -19,3 +18,10 @@ messages:
invalid-config-type: 'Invalid config type, please select one of the list'
invalid-config-name: 'Invalid config name, please select one of the list'
config-exported: 'Configuration(s) exported sucessfully'
examples:
-
description: 'Provide config settings name to be exported.'
execution: "drupal config:export:single \\\n --name=config.settings.name"
-
description: 'Export with uuid and config hashes removed.'
execution: "drupal config:export:single \\\n --name=config.settings.name \\\n --remove-uuid \\\n --remove-config-hash\n"
18 changes: 17 additions & 1 deletion translations/config.export.view.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
description: 'Export a view in YAML format inside a provided module to reuse in other website.'
messages:
view_exported: 'View exported sucessfully'
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: 'View exported sucessfully'
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: 'Perform a simple export.'
execution: 'drupal config:export:view viewid'
-
description: 'Export as optional config for the provided module.'
execution: "drupal config:export:view viewid \\\n --module=\"modulename\" \\\n --optional-config \\\n --include-module-dependencies \\\n --remove-uuid \\\n --remove-config-hash"
-
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"
9 changes: 9 additions & 0 deletions translations/config.export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +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 \\\n --directory=\"path/to/export\"\n"
-
description: 'Export as a compressed file with uuid and config hashes removed'
execution: "drupal config:export \\\n --directory=\"path/to/export\" \\\n --tar \\\n --remove-uuid \\\n --remove-config-hash\n"
Loading