| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Services\Translations; |
| 4 |
|
| 5 |
/** |
| 6 |
* Class FrontendStrings |
| 7 |
* |
| 8 |
* @package IvyForms\Translations |
| 9 |
* |
| 10 |
* @SuppressWarnings(ExcessiveMethodLength) |
| 11 |
* @SuppressWarnings(ExcessiveClassLength) |
| 12 |
* @phpcs:disable |
| 13 |
*/ |
| 14 |
class FrontendStrings |
| 15 |
{ |
| 16 |
|
| 17 |
/** |
| 18 |
* Returns the array for the form render |
| 19 |
* |
| 20 |
* @return mixed[] |
| 21 |
*/ |
| 22 |
public static function getFormRenderStrings(): array |
| 23 |
{ |
| 24 |
return [ |
| 25 |
'all_form_fields' => __('All form fields:', 'ivyforms'), |
| 26 |
'am' => __('AM', 'ivyforms'), |
| 27 |
'am_pm' => __('AM/PM', 'ivyforms'), |
| 28 |
'api_response_for_field' => __('API response for field {fieldKey}:', 'ivyforms'), |
| 29 |
'checking_field_with_value' => __('Checking field {fieldKey} (ID: {fieldId}) with value:', 'ivyforms'), |
| 30 |
'confirmation_label_placeholder' => __('Confirm Email', 'ivyforms'), |
| 31 |
'day' => __('Day', 'ivyforms'), |
| 32 |
'duplicate_found_for_field' => __('Duplicate found for field {fieldKey}:', 'ivyforms'), |
| 33 |
'duplicate_value_error' => __('This value must be unique. Please enter a unique value.', 'ivyforms'), |
| 34 |
'duplicate_value_error_label' => __('This {label} must be unique. Please use a different value.', 'ivyforms'), |
| 35 |
'do_not_match' => __(' do not match.', 'ivyforms'), |
| 36 |
'emails_do_not_match' => __('Email addresses do not match', 'ivyforms'), |
| 37 |
'enter_email_address' => __('Please enter a valid email address.', 'ivyforms'), |
| 38 |
'enter_valid_date' => __('Please enter a valid date.', 'ivyforms'), |
| 39 |
'enter_date_valid_format' => __('Please enter date in valid format.', 'ivyforms'), |
| 40 |
'date_must_be_after' => __('Date must be after {min}.', 'ivyforms'), |
| 41 |
'date_must_be_before' => __('Date must be before {max}.', 'ivyforms'), |
| 42 |
'enter_valid_number' => __('Please enter a valid number.', 'ivyforms'), |
| 43 |
'enter_phone_number' => __('Please enter a valid phone number.', 'ivyforms'), |
| 44 |
'enter_valid_time' => __('Please enter a valid time.', 'ivyforms'), |
| 45 |
'enter_valid_website' => __('Please enter a valid website URL.', 'ivyforms'), |
| 46 |
'error_checking_duplicates' => __('Error checking for duplicate values. Please try again.', 'ivyforms'), |
| 47 |
'error_checking_duplicates_for_field'=> __('Error checking duplicates for field {fieldKey}:', 'ivyforms'), |
| 48 |
'error_submitting_form' => __('Error submitting form:', 'ivyforms'), |
| 49 |
'fields_to_check_for_duplicates' => __('Fields to check for duplicates:', 'ivyforms'), |
| 50 |
'final_duplicate_errors' => __('Final duplicate errors:', 'ivyforms'), |
| 51 |
'flag' => __('Country flag icon', 'ivyforms'), |
| 52 |
'form_data_not_found' => __('Form data not found (wpIvyFormData is undefined)', 'ivyforms'), |
| 53 |
'form_submitted' => __('Form submitted successfully!', 'ivyforms'), |
| 54 |
'hours' => __('Hours', 'ivyforms'), |
| 55 |
'invalid_form_data' => __('Invalid form data:', 'ivyforms'), |
| 56 |
'invalid_input' => __('Invalid input', 'ivyforms'), |
| 57 |
'making_api_call_for_field' => __('Making API call for field {fieldKey}', 'ivyforms'), |
| 58 |
'minutes' => __('Minutes', 'ivyforms'), |
| 59 |
'month' => __('Month', 'ivyforms'), |
| 60 |
'no_fields_with_no_duplicates' => __('No fields with noDuplicates enabled', 'ivyforms'), |
| 61 |
'not_selected' => __('Not Selected', 'ivyforms'), |
| 62 |
'number_out_of_range' => __('Value must be between {min} and {max}.', 'ivyforms'), |
| 63 |
'pm' => __('PM', 'ivyforms'), |
| 64 |
'number_cannot_be_smaller_than' => __('Value cannot be smaller than {min}.', 'ivyforms'), |
| 65 |
'number_cannot_be_greater_than' => __('Value cannot be greater than {max}.', 'ivyforms'), |
| 66 |
'phone_number' => __('Phone number', 'ivyforms'), |
| 67 |
'range_from' => __('Range from', 'ivyforms'), |
| 68 |
'range_to' => __('Range to', 'ivyforms'), |
| 69 |
'recaptcha_complete_verification' => __('Please complete the reCAPTCHA verification', 'ivyforms'), |
| 70 |
'recaptcha_expired' => __('reCAPTCHA expired. Please try again.', 'ivyforms'), |
| 71 |
'recaptcha_invisible_failed' => __('Failed to execute reCAPTCHA invisible', 'ivyforms'), |
| 72 |
'recaptcha_not_configured' => __('reCAPTCHA is not configured. Please contact the site administrator.', 'ivyforms'), |
| 73 |
'recaptcha_v3_failed' => __('Failed to execute reCAPTCHA v3', 'ivyforms'), |
| 74 |
'recaptcha_widget_not_initialized' => __('reCAPTCHA widget not initialized', 'ivyforms'), |
| 75 |
'required' => __('is required.', 'ivyforms'), |
| 76 |
'select_country' => __('Select country', 'ivyforms'), |
| 77 |
'skipping_empty_field' => __('Skipping empty field {fieldKey}', 'ivyforms'), |
| 78 |
'submit' => __('Submit', 'ivyforms'), |
| 79 |
'thank_you' => __('Thank you!', 'ivyforms'), |
| 80 |
'this_field' => __('This field', 'ivyforms'), |
| 81 |
'year' => __('Year', 'ivyforms'), |
| 82 |
]; |
| 83 |
} |
| 84 |
} |