X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole-en%2Ftranslations%2Fgenerate.form.yml;h=75ec09e6387681f5598446c8c26654c0e89409c1;hb=4e1bfbf98b844da83b18aca92ef00f11a4735806;hp=0f12793305d348d96ab568de8c873e285ef6a257;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/drupal/console-en/translations/generate.form.yml b/vendor/drupal/console-en/translations/generate.form.yml index 0f1279330..75ec09e63 100644 --- a/vendor/drupal/console-en/translations/generate.form.yml +++ b/vendor/drupal/console-en/translations/generate.form.yml @@ -1,22 +1,57 @@ description: 'Generate a new "%s"' help: 'The "%s" command helps you generate a new "%s"' -welcome: 'Welcome to the Drupal form generator' +welcome: 'Welcome to the Drupal Form generator' options: - module: common.options.module - class: 'The form class name' - form-id: 'The Form id' - services: common.options.services - inputs: common.options.inputs - path: 'Enter the form path' + module: 'The Module name.' + class: 'The form class name' + form-id: 'The Form id' + services: 'Load services from the container.' + config-file: 'Add a config file' + inputs: 'Create inputs in a form.' + path: 'Enter the form path' + menu-link-gen: 'Generate a menu link' + menu-link-title: 'A title for the menu link' + menu-parent: 'Menu parent' + menu-link-desc: 'A description for the menu link' questions: - module: common.questions.module - class: 'Enter the Form Class name' - form-id: 'Enter the Form id' - services: common.questions.services - inputs: common.questions.inputs - routing: 'Would you like to register a route for this form' - menu_link_gen: 'Generate a menu link' - menu_link_title: 'A title for the menu link' - menu_parent: 'Menu parent' - menu_link_desc: 'A description for the menu link' - path: 'Enter the route path' + module: 'Enter the module name' + class: 'Enter the Form Class name' + form-id: 'Enter the Form id' + services: 'Enter your service' + config-file: 'Do you want to generate a config file?' + routing: 'Would you like to register a route for this form?' + path: 'Enter the route path' + max-amount-characters: 'Maximum amount of characters' + textfield-width-in-chars: 'Width of the textfield (in characters)' + multiselect-size-in-lines: 'Size of multiselect box (in lines)' + input-options: 'Input options separated by comma' + menu-link-gen: 'Generate a menu link' + menu-link-title: 'Enter a title for the menu link' + menu-parent: 'Enter Menu parent' + menu-link-desc: 'Enter a description for the menu link' + type: 'Enter New field type' + label: 'Input label' + description: 'Description' + default-value: 'Default value' + weight: 'Weight for input item' +suggestions: + description-for-menu: 'A description for the menu entry' +examples: + - description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path' + execution: | + drupal generate:form \ + --module="modulename" \ + --class="DefaultForm" \ + --form-id="default_form" \ + --config-file \ + --path="/modulename/form/default" + - description: 'Generate a form with 2 fields and a config file specifying the module name, the class, a form id, the inputs and the path' + execution: | + drupal generate:form \ + --module="modulename" \ + --class="DefaultForm" \ + --form-id="default_form" \ + --config-file \ + --inputs='"name":"inputname", "type":"text_format", "label":"InputName", "options":"", "description":"Just a text input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ + --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ + --path="/modulename/form/default"