Skip to content

Commit

Permalink
[console] Create roles translations (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjuarez20 authored and jmolivas committed Nov 15, 2017
1 parent 3ed9c88 commit 3e8b103
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
19 changes: 19 additions & 0 deletions translations/create.roles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
description: 'Create dummy roles for your Drupal 8 application.'
help: 'The <info>create:roles</info> 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-created-role: 'Created "%s" role unsuccessfully'
examples:
- description: 'Provide roles.'
execution: drupal create:roles
- description: 'Provide the number of roles to create'
execution: |
drupal create:roles
10 changes: 10 additions & 0 deletions translations/debug.roles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: 'Displays current roles for the application'
help: 'The <info>debug:roles</info> 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
18 changes: 18 additions & 0 deletions translations/role.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create roles for the application'
help: 'The <info>role:new</info> 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

0 comments on commit 3e8b103

Please sign in to comment.