Skip to content

Commit

Permalink
Merge pull request #1594 from enzolutions/create-terms
Browse files Browse the repository at this point in the history
[create:terms] New command
  • Loading branch information
enzolutions committed Dec 29, 2015
2 parents 0b1979c + 4d86c1c commit 840d1ae
Show file tree
Hide file tree
Showing 19 changed files with 565 additions and 11 deletions.
18 changes: 18 additions & 0 deletions config/translations/ca/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
26 changes: 26 additions & 0 deletions config/translations/ca/generate.content.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
description: 'Generate fake content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
content-type: 'Content type'
title: 'Title'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated content:'
16 changes: 8 additions & 8 deletions config/translations/en/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
description: 'Create dummy nodes for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake terms.'
welcome: 'Welcome to the Drupal nodes generator'
arguments:
content-types: 'Content type(s) to be used content generation'
content-types: 'Content type(s) to be used in node creation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
limit: 'How many nodes would you like to create'
title-words: 'Maximum number of words in node titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
content-type: 'Select content type(s) to be used on node creation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
Expand All @@ -25,4 +25,4 @@ messages:
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Created %s nodes successfully'
generated-content: 'Created %s nodes successfully'
18 changes: 18 additions & 0 deletions config/translations/en/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
18 changes: 18 additions & 0 deletions config/translations/es/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
18 changes: 18 additions & 0 deletions config/translations/fr/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
18 changes: 18 additions & 0 deletions config/translations/hi/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
18 changes: 18 additions & 0 deletions config/translations/hu/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
18 changes: 18 additions & 0 deletions config/translations/pt_br/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
26 changes: 26 additions & 0 deletions config/translations/pt_br/generate.content.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
description: 'Generate fake content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
content-type: 'Content type'
title: 'Title'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated content:'
18 changes: 18 additions & 0 deletions config/translations/ro/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
18 changes: 18 additions & 0 deletions config/translations/ru/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
18 changes: 18 additions & 0 deletions config/translations/vn/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
18 changes: 18 additions & 0 deletions config/translations/zh_hans/create.terms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: 'Create dummy terms for your Drupal 8 application.'
help: 'The <info>create:nodes</info> command helps you generate fake nodes.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
vocabularies: 'Vocabularie(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
questions:
vocabularies: 'Select vocabularie(s) to be used on terms creation'
limit: 'Enter how many terms would you like to create'
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
vocabulary: 'Vocabulary'
name: 'Name'
invalid-vocabularies: 'Vocabularie(s) %s are invalid'
created-terms: 'Created %s terms successfully'
2 changes: 1 addition & 1 deletion src/Command/Create/NodesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Drupal\Console\Style\DrupalStyle;

/**
* Class ContentCommand
* Class NodesCommand
* @package Drupal\Console\Command\Generate
*/
class NodesCommand extends ContainerAwareCommand
Expand Down

0 comments on commit 840d1ae

Please sign in to comment.