diff --git a/lang/en/form-fieldtypes.php b/lang/en/form-fieldtypes.php index 6ddb89b0ca8..9711fce310e 100644 --- a/lang/en/form-fieldtypes.php +++ b/lang/en/form-fieldtypes.php @@ -1,17 +1,96 @@ 'A banner to highlight important information in your form.', + 'banner.example.content' => 'Please review the following information before continuing.', + 'banner.example.display' => 'Important', + 'checkboxes.description' => 'Respondents can select multiple options from a list.', + 'checkboxes.example.display' => 'What toppings do you want?', + 'checkboxes.example.options.anchovies' => 'Anchovies (brave choice)', + 'checkboxes.example.options.mushrooms' => 'Mushrooms', + 'checkboxes.example.options.pepperoni' => 'Pepperoni', + 'checkboxes.example.options.pineapple' => 'Pineapple (controversial)', + 'currency.description' => 'Collects a monetary amount.', + 'currency.example.display' => 'How much do you usually spend on coffee per week?', + 'date_picker.description' => 'Lets respondents pick a date.', + 'date_picker.example.display' => 'What is your birthday?', + 'dictionary.description' => 'Select from a predefined list like countries, timezones, or currencies.', + 'dictionary.example.display' => 'Where have you been on vacation recently?', + 'dropdown.description' => 'A dropdown list where respondents pick from your options.', + 'dropdown.example.display' => 'What\'s your go-to karaoke song?', + 'dropdown.example.options.bohemian' => 'Bohemian Rhapsody', + 'dropdown.example.options.never' => 'Never Gonna Give You Up', + 'dropdown.example.options.sweet' => 'Sweet Caroline', + 'dropdown.example.options.wrecking' => 'I Will Survive', + 'dropdown.example.placeholder' => 'Select a song...', + 'email.description' => 'Collects an email address and ensures it\'s properly formatted.', + 'email.example.display' => 'Email Address', + 'email.example.value' => 'jamie@schmidt.family', + 'group.description' => 'Group related fields together.', + 'heading.description' => 'A heading to organize your form.', 'image_choice.config.aspect_ratio.instructions' => 'Shape of the image area for each option.', 'image_choice.config.columns.instructions' => 'How many options appear per row.', + 'image_choice.description' => 'An image-based choice selector for visual options.', + 'image_choice.example.display' => 'Pick your favorite season', + 'image_choice.example.options.autumn' => 'Autumn', + 'image_choice.example.options.spring' => 'Spring', + 'image_choice.example.options.summer' => 'Summer', + 'image_choice.example.options.winter' => 'Winter', + 'long_answer.description' => 'A larger field for detailed responses, comments, or messages.', + 'long_answer.example.display' => 'Tell us about your dream vacation', + 'long_answer.example.value' => 'A cozy cabin in the mountains with a stack of books, endless coffee, and absolutely no wifi.', + 'multi_choice.description' => 'A question with a range of answer options. Respondents can only choose one answer.', + 'multi_choice.example.display' => 'Why were you late to work?', + 'multi_choice.example.options.alarm' => 'My alarm didn\'t go off', + 'multi_choice.example.options.racoon' => 'A raccoon stole my keys', + 'multi_choice.example.options.traffic' => 'Traffic was bad', + 'name.description' => 'Collects someone\'s name.', + 'name.example.display' => 'Your Name', + 'name.example.value' => 'Jamie Schmidt', + 'number.description' => 'Collects a number. You can set minimum and maximum values.', + 'number.example.display' => 'How many cups of coffee do you drink per day?', 'opinion_scale.config.high_label.instructions' => 'Shown below the highest value.', 'opinion_scale.config.low_label.instructions' => 'Shown below the lowest value.', 'opinion_scale.config.middle_label.instructions' => 'Shown below the middle value.', + 'opinion_scale.description' => 'An opinion scale for measuring agreement or satisfaction.', + 'opinion_scale.example.display' => 'How likely are you to recommend us?', + 'opinion_scale.example.high_label' => 'Very likely', + 'opinion_scale.example.low_label' => 'Not likely', 'paragraph.config.display.instructions' => "This won't be displayed to visitors. It's just for internal reference.", + 'paragraph.description' => 'A paragraph to provide information in your form.', + 'phone.description' => 'A field for collecting phone numbers.', + 'phone.example.display' => 'Phone Number', + 'phone.example.placeholder' => '(555) 123-4567', + 'phone.example.value' => '(555) 867-5309', + 'ranking.description' => 'A ranking input for ordering items by preference.', + 'ranking.example.display' => 'Rank your favorite seasons', + 'ranking.example.options.autumn' => 'Autumn', + 'ranking.example.options.spring' => 'Spring', + 'ranking.example.options.summer' => 'Summer', + 'ranking.example.options.winter' => 'Winter', + 'short_answer.description' => 'A simple field for short, one-line answers.', + 'short_answer.example.display' => 'What\'s your secret talent?', + 'short_answer.example.value' => 'I can whistle with crackers in my mouth', + 'spacer.description' => 'Add visual spacing between form fields.', 'star_rating.config.allow_half_stars.instructions' => 'Allow ratings like 4.5.', 'star_rating.config.max_stars.instructions' => 'The maximum number of selectable stars.', + 'star_rating.description' => 'A star rating input for collecting ratings.', + 'star_rating.example.display' => 'How would you rate your experience?', + 'time_picker.description' => 'Lets respondents pick a time of day.', + 'time_picker.example.display' => 'When do you usually eat lunch?', + 'toggle.description' => 'A simple yes or no switch.', + 'toggle.example.display' => 'Agreement', + 'toggle.example.inline_label' => 'I promise not to spoil the ending', 'upload.config.container.instructions' => 'Select which asset container to store the uploaded files.', 'upload.config.folder.instructions' => 'The folder within the container to upload files to.', 'upload.config.max_files.instructions' => 'The maximum number of files that may be uploaded.', 'upload.config.min_files.instructions' => 'The minimum number of files that must be uploaded.', 'upload.config.store.instructions' => 'Store uploaded files permanently in an asset container.', + 'upload.description' => 'Upload files - store them permanently or use them temporarily.', + 'upload.example.display' => 'Upload your resume', + 'website.description' => 'Collects a website address and ensures it\'s properly formatted.', + 'website.example.display' => 'Your Website', + 'website.example.value' => 'https://schmidt.family', + 'yes_no.description' => 'A simple yes or no question.', + 'yes_no.example.display' => 'Would you recommend us to a friend?', ]; diff --git a/lang/en/messages.php b/lang/en/messages.php index cbda9e8750e..40eef94cac9 100644 --- a/lang/en/messages.php +++ b/lang/en/messages.php @@ -106,7 +106,6 @@ 'entry_origin_instructions' => 'The new localization will inherit values from the entry in the selected site.', 'expect_root_instructions' => 'Consider the first page in the tree a "root" or "home" page.', 'field_conditions_always_save_instructions' => 'Always save the field value, even if the field is hidden.', - 'field_conditions_reserve_space_when_hidden_instructions' => 'When hidden, reserve the field\'s space in the layout.', 'field_conditions_field_instructions' => 'You may enter any field handle. You are not limited to the options in the dropdown.', 'field_conditions_instructions' => 'When to show or hide this field.', 'field_conditions_reserve_space_when_hidden_instructions' => 'When hidden, reserve the field\'s space in the layout.', @@ -165,8 +164,18 @@ 'form_closed_message' => 'This form is no longer accepting submissions.', 'form_require_login_message' => 'You must be logged in to submit this form.', 'form_create_description' => 'Get started by creating your first form.', - 'form_builder' => 'Form Builder', + 'form_builder_delete_field_confirmation' => 'Are you sure you want to delete this field? This action cannot be undone.', + 'form_builder_delete_page_confirmation' => 'Are you sure you want to delete this page? All sections and fields in this page will also be deleted.', + 'form_builder_delete_section_confirmation' => 'Are you sure you want to delete this section? All fields in this section will also be deleted.', 'form_builder_empty_inspector' => 'Drag fields onto the form to add them. Click a field, section, or page to edit its settings here.', + 'form_builder_empty_section' => 'Drag fields here to build your form or :link', + 'form_builder_field_count' => ':count field on this form|:count fields on this form', + 'form_builder_field_has_errors' => 'This field has errors. Please fix them before saving.', + 'form_builder_link_existing_description' => 'Link one or more existing fields from a fieldset.', + 'form_builder_page_break_description' => 'Page Breaks split a form into multiple steps, turning a long form into a more manageable, step-by-step experience.', + 'form_builder_section_description' => 'Sections group fields into clearly defined areas, helping you structure, organize, and navigate your form.', + 'form_builder_select_field_to_import' => 'Select a field or fieldset to import', + 'form_connection_delete_confirmation' => 'Are you sure you want to delete this connection?', 'form_fake_submissions_deleted' => 'Deleted :count fake submission.|Deleted :count fake submissions.', 'form_fake_submissions_delete_failed' => 'Fake submissions could not be deleted.', 'form_fake_submissions_form_not_found' => 'Form could not be found for deleting fake submissions.', @@ -176,9 +185,12 @@ 'form_fake_submission_generated' => 'Fake submission generated.', 'form_fields_handle_instructions' => 'Auto-generated from the label. It can\'t be changed after saving the form.', 'form_fields_instructions_instructions' => 'Additional field instructions like this.', + 'form_logic_field_empty_description' => 'Show or hide fields based on previous answers.', + 'form_logic_imported_field_unsupported' => 'Logic can\'t be added to imported fields. Please edit the fieldset instead.', + 'form_logic_page_empty_description' => 'Send users to different pages based on their answers.', 'form_navigation' => 'Form navigation', 'form_summary_add_chart_instructions' => 'Add a chart to start summarizing responses.', - 'form_summary_checked_insight' => 'of users checked the toggle', + 'form_summary_checked_insight' => ':metric of users checked the toggle', 'form_summary_other_breakdown' => ':field: Other breakdown: :values', 'form_export_filtered_description' => 'Exports only the submissions matching the current search and filters.', 'getting_started_widget_collections' => 'Collections hold the different content types that make up your site, helping you stay organized.', @@ -277,6 +289,11 @@ 'role_handle_instructions' => 'Unique identifier used in code and templates to reference this role.', 'role_intro' => 'Roles are groups of access and action permissions that can be assigned to users and user groups.', 'role_title_instructions' => 'Use a singular noun, such as \'Editor\' or \'Admin\'', + 'sample_value_email' => 'name@example.com', + 'sample_value_paragraph' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', + 'sample_value_phone' => '555-0100', + 'sample_value_postcode' => '97477', + 'sample_value_url' => 'https://example.com', 'search_utility_description' => 'Manage and view important information about Statamic\'s search indexes.', 'selections_click_to_deselect_all' => 'All :total items selected. Uncheck to deselect items.', 'selections_click_to_select_all' => 'No items selected. Check to select :total items.', diff --git a/resources/js/components/forms/builder/FieldtypeSelector.vue b/resources/js/components/forms/builder/FieldtypeSelector.vue index 94d810df856..27b8f660517 100644 --- a/resources/js/components/forms/builder/FieldtypeSelector.vue +++ b/resources/js/components/forms/builder/FieldtypeSelector.vue @@ -21,7 +21,7 @@ const allFieldtypes = computed(() => { options.push({ handle: 'section', title: __('Section'), - description: __('Sections group fields into clearly defined areas, helping you structure, organize, and navigate your form.'), + description: __('statamic::messages.form_builder_section_description'), categories: ['structure'], keywords: [], icon: 'add-section', @@ -33,7 +33,7 @@ const allFieldtypes = computed(() => { options.push({ handle: 'page_break', title: __('Page Break'), - description: __('Page Breaks split a form into multiple steps, turning a long form into a more manageable, step-by-step experience.'), + description: __('statamic::messages.form_builder_page_break_description'), categories: ['structure'], keywords: [], icon: 'page', @@ -46,7 +46,7 @@ const allFieldtypes = computed(() => { options.push({ handle: 'fieldset', title: __('Link Existing'), - description: __('Link one or more existing fields from a fieldset.'), + description: __('statamic::messages.form_builder_link_existing_description'), categories: ['fieldsets'], keywords: [], icon: 'link', diff --git a/resources/js/components/forms/builder/PageInspector.vue b/resources/js/components/forms/builder/PageInspector.vue index 472adc931eb..3671f6d4070 100644 --- a/resources/js/components/forms/builder/PageInspector.vue +++ b/resources/js/components/forms/builder/PageInspector.vue @@ -53,7 +53,7 @@ watch(() => page.value.instructions, dirty); - +