From 3e8b103b95184e3235bcd2a871e4f6c4d7de8306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harold=20Ju=C3=A1rez?= Date: Wed, 15 Nov 2017 11:23:44 -0600 Subject: [PATCH] [console] Create roles translations (#142) --- translations/create.roles.yml | 19 +++++++++++++++++++ translations/debug.roles.yml | 10 ++++++++++ translations/role.new.yml | 18 ++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 translations/create.roles.yml create mode 100644 translations/debug.roles.yml create mode 100644 translations/role.new.yml diff --git a/translations/create.roles.yml b/translations/create.roles.yml new file mode 100644 index 0000000..e5dbb65 --- /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-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 + diff --git a/translations/debug.roles.yml b/translations/debug.roles.yml new file mode 100644 index 0000000..b1bb15a --- /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 diff --git a/translations/role.new.yml b/translations/role.new.yml new file mode 100644 index 0000000..54303a3 --- /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