Skip to content

Commit

Permalink
Adding translation messages for commands (#121)
Browse files Browse the repository at this point in the history
* Fixing bug

* Adding entity:delete example

* Adding generate commands examples
Fixing tabs

* Adding generate commands examples

* Adding module commands examples

* Adding example for image, multisite, node, router and settings command

* Adding site commands example

* Adding example command for state, taxonomy, update and views

* Adding examples for theme command

* Adding examples for user commands

* Use - instead of _ on yaml keys

* Adding example for module command

* Adding translation messages for the commands:
chain
config:edit
module:install
taxonomy:term:delete

* Removing not needed translation keys
  • Loading branch information
blasvicco authored and jmolivas committed Jul 14, 2017
1 parent 3235d0e commit 63919e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions translations/chain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ messages:
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'
examples:
- description: 'Providing a file option using full path.'
execution: |
Expand Down
1 change: 1 addition & 0 deletions translations/config.edit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ questions:
config-name: 'Choose a configuration Object'
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'
Expand Down
3 changes: 3 additions & 0 deletions translations/module.install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ messages:
installing: 'Installing module(s) "%s"'
composer: 'The module was installed successfully with Composer'
error-creating-folder: 'Error creating folder "%s", please check your permissions'
download-with-composer: 'Module %s was downloaded with Composer.'
not-installed-with-composer: 'Module %s seems not to be installed with Composer. Halting.'
invalid-name: 'Invalid module name: %s'
examples:
- description: 'Install module specifying the module name'
execution: |
Expand Down
6 changes: 3 additions & 3 deletions translations/taxonomy.term.delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ description: 'Delete taxonomy terms from a vocabulary'
vid: 'Enter vocabulary id'
help: 'This command takes the VID as argument or all which will delete every term from every vocabulary'
messages:
nothing: 'All taxonomy terms from "%s" vocabulary already deleted.'
processing: 'Deleting "%s" taxonomy term.'
invalid-vocabulary: 'Invalid "%s" vocabulary.'
nothing: 'All taxonomy terms from "%s" vocabulary already deleted.'
processing: 'Deleting "%s" taxonomy term.'
invalid-vocabulary: 'Invalid "%s" vocabulary.'
examples:
- description: 'Delete all terms of the "tags" vocabulary'
execution: |
Expand Down

0 comments on commit 63919e6

Please sign in to comment.