| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Services\Translations; |
| 4 |
|
| 5 |
// phpcs:disable PSR1.Files.SideEffects |
| 6 |
if (!defined('ABSPATH')) { |
| 7 |
exit; // Exit if accessed directly |
| 8 |
} |
| 9 |
|
| 10 |
/** |
| 11 |
* Class BackendStrings |
| 12 |
* |
| 13 |
* @package IvyForms\Translations |
| 14 |
* |
| 15 |
* @SuppressWarnings(ExcessiveMethodLength) |
| 16 |
* @SuppressWarnings(ExcessiveClassLength) |
| 17 |
* @phpcs:disable |
| 18 |
*/ |
| 19 |
class BackendStrings |
| 20 |
{ |
| 21 |
/** |
| 22 |
* Returns the array for the common strings |
| 23 |
* |
| 24 |
* @return mixed[] |
| 25 |
*/ |
| 26 |
public static function getCommonStrings(): array |
| 27 |
{ |
| 28 |
return [ |
| 29 |
'action' => __('Action', 'ivyforms'), |
| 30 |
'action_cannot_be_undone' => __('This action cannot be undone.', 'ivyforms'), |
| 31 |
'all_forms' => __('All Forms', 'ivyforms'), |
| 32 |
'all_entries' => __('All Entries', 'ivyforms'), |
| 33 |
'back' => __('Back', 'ivyforms'), |
| 34 |
'cancel' => __('Cancel', 'ivyforms'), |
| 35 |
'close_notification' => __('Close notification', 'ivyforms'), |
| 36 |
'column_visibility' => __('Column Visibility', 'ivyforms'), |
| 37 |
'delete' => __('Delete', 'ivyforms'), |
| 38 |
'empty_search_subtitle' => __('Try again with different keywords and filters', 'ivyforms'), |
| 39 |
'empty_search_title' => __('Oops! Looks like there\'s nothing here!', 'ivyforms'), |
| 40 |
'entries' => __('Entries', 'ivyforms'), |
| 41 |
'form_desc' => __('Form Description', 'ivyforms'), |
| 42 |
'form_duplicated' => __('Form duplicated successfully', 'ivyforms'), |
| 43 |
'form_name' => __('Form Name', 'ivyforms'), |
| 44 |
'form_updated' => __('Form updated successfully', 'ivyforms'), |
| 45 |
'leave' => __('Leave', 'ivyforms'), |
| 46 |
'learn_more' => __('Learn more', 'ivyforms'), |
| 47 |
'name' => __('Name', 'ivyforms'), |
| 48 |
'new_form' => __('New Form', 'ivyforms'), |
| 49 |
'no_results_for' => __('No results found for', 'ivyforms'), |
| 50 |
'ok' => __('OK', 'ivyforms'), |
| 51 |
'save' => __('Save', 'ivyforms'), |
| 52 |
'security' => __('Security', 'ivyforms'), |
| 53 |
'settings' => __('Settings', 'ivyforms'), |
| 54 |
'starred' => __('Starred', 'ivyforms'), |
| 55 |
'status' => __('Status', 'ivyforms'), |
| 56 |
'stay' => __('Stay', 'ivyforms'), |
| 57 |
'try_adjusting_search' => __('Try adjusting your search to find what you are looking for.', 'ivyforms'), |
| 58 |
'update' => __('Update', 'ivyforms'), |
| 59 |
'validation' => __('Validation', 'ivyforms'), |
| 60 |
// Validation error messages |
| 61 |
'invalid_request_data' => __('Invalid request data.', 'ivyforms'), |
| 62 |
'invalid_form_id' => __('Invalid form ID.', 'ivyforms'), |
| 63 |
]; |
| 64 |
} |
| 65 |
|
| 66 |
/** |
| 67 |
* Returns the array for the settings strings |
| 68 |
* |
| 69 |
* @return mixed[] |
| 70 |
*/ |
| 71 |
public static function getSettingsStrings(): array |
| 72 |
{ |
| 73 |
return [ |
| 74 |
'activation_activated' => __('Plugin has been activated', 'ivyforms'), |
| 75 |
'activation_deactivated' => __('Plugin has been deactivated', 'ivyforms'), |
| 76 |
'activation_settings_domains_limit' => __('You have reached maximum number of registered domains', 'ivyforms'), |
| 77 |
'activation_settings_hidden_code' => __('Your purchase code has been hidden for security reasons. You can find it on your store page', 'ivyforms'), |
| 78 |
'activation_settings_invalid_code' => __('The purchase code is invalid or it has expired', 'ivyforms'), |
| 79 |
'all_settings_retrieved' => __('All settings retrieved successfully', 'ivyforms'), |
| 80 |
'error_loading_settings' => __('Error loading settings', 'ivyforms'), |
| 81 |
'error_saving_settings' => __('Error saving settings', 'ivyforms'), |
| 82 |
'failed_to_load_settings' => __('Failed to load settings', 'ivyforms'), |
| 83 |
'failed_to_save_settings' => __('Failed to save settings', 'ivyforms'), |
| 84 |
'settings_option_updated' => __('Settings option updated successfully', 'ivyforms'), |
| 85 |
'setting_retrieved' => __('Setting retrieved successfully', 'ivyforms'), |
| 86 |
'settings_category_or_option_missing'=> __('Settings category and option must be provided.', 'ivyforms'), |
| 87 |
'settings_saved' => __('Settings saved successfully', 'ivyforms'), |
| 88 |
'site_key_invalid' => __('Site key format is invalid. Please check your reCAPTCHA site key.', 'ivyforms'), |
| 89 |
'secret_key_missing' => __('Secret key is missing', 'ivyforms'), ]; |
| 90 |
} |
| 91 |
|
| 92 |
/** |
| 93 |
* Returns the array for the dashboard strings |
| 94 |
* |
| 95 |
* @return mixed[] |
| 96 |
*/ |
| 97 |
public static function getDashboardStrings(): array |
| 98 |
{ |
| 99 |
return [ |
| 100 |
'dashboard' => __('Dashboard', 'ivyforms'), |
| 101 |
]; |
| 102 |
} |
| 103 |
|
| 104 |
/** |
| 105 |
* Returns the array for the "All Forms" page strings |
| 106 |
* |
| 107 |
* @return mixed[] |
| 108 |
*/ |
| 109 |
public static function getAllFormsStrings(): array |
| 110 |
{ |
| 111 |
return [ |
| 112 |
'add_new_form' => __('Add new Form', 'ivyforms'), |
| 113 |
'action_undone' => __('This action can\'t be undone', 'ivyforms'), |
| 114 |
'actions' => __('Actions', 'ivyforms'), |
| 115 |
'admin_notification_email' => __('Admin Notification Email', 'ivyforms'), |
| 116 |
'are_you_sure_delete_form' => __('Are you sure you want to Delete this Form?', 'ivyforms'), |
| 117 |
'are_you_sure_delete_forms' => __('Are you sure you want to Delete these Forms?', 'ivyforms'), |
| 118 |
'author' => __('Author', 'ivyforms'), |
| 119 |
'close' => __('Close', 'ivyforms'), |
| 120 |
'copied_shortcode' => __('Copied shortcode to clipboard', 'ivyforms'), |
| 121 |
'copy_shorcode_table_form' => __('Copy shortcode for the form', 'ivyforms'), |
| 122 |
'date_created' => __('Date Created', 'ivyforms'), |
| 123 |
'date_edited' => __('Date Edited', 'ivyforms'), |
| 124 |
'date_filters' => __('Date filter for all forms', 'ivyforms'), |
| 125 |
'delete_form' => __('Are you sure you want to Delete this Form?', 'ivyforms'), |
| 126 |
'duplicate_form' => __('Duplicate this Form?', 'ivyforms'), |
| 127 |
'duplicate_form_subtitle' => __('An exact copy will be added to your forms.', 'ivyforms'), |
| 128 |
'duplicate_notification' => __('Duplicate this Notification?', 'ivyforms'), |
| 129 |
'duplicate_notification_subtitle'=> __('An exact copy will be added to your notifications.', 'ivyforms'), |
| 130 |
'duplicated_failed' => __('Failed to duplicate form', 'ivyforms'), |
| 131 |
'edit_columns' => __('Select the columns to show in the table', 'ivyforms'), |
| 132 |
'edit_table' => __('Edit Table', 'ivyforms'), |
| 133 |
'empty_state_all_forms_subtitle' => __('Once you create a form it will appear here', 'ivyforms'), |
| 134 |
'empty_state_all_forms_title' => __('We didn\'t find any forms', 'ivyforms'), |
| 135 |
'error_deleting_form' => __('Error deleting form:', 'ivyforms'), |
| 136 |
'error_deleting_forms' => __('Error deleting forms:', 'ivyforms'), |
| 137 |
'error_duplicating_forms' => __('Error duplicating form:', 'ivyforms'), |
| 138 |
'error_fetching_forms' => __('Error fetching forms:', 'ivyforms'), |
| 139 |
'error_refreshing' => __('Error refreshing data', 'ivyforms'), |
| 140 |
'error_updating_forms' => __('Error updating form:', 'ivyforms'), |
| 141 |
'failed_to_create_form' => __('Failed to create form.', 'ivyforms'), |
| 142 |
'failed_to_delete_form' => __('Failed to delete form:', 'ivyforms'), |
| 143 |
'failed_to_delete_forms' => __('Failed to delete forms:', 'ivyforms'), |
| 144 |
'failed_to_duplicate_form' => __('Failed to duplicate form.', 'ivyforms'), |
| 145 |
'failed_to_star_form' => __('Failed to favorite form', 'ivyforms'), |
| 146 |
'failed_to_unstar_form' => __('Failed to unfavorite form', 'ivyforms'), |
| 147 |
'failed_to_update_form' => __('Failed to update form', 'ivyforms'), |
| 148 |
'filters' => __('Filters for all forms', 'ivyforms'), |
| 149 |
'flag' => __('Country flag icon', 'ivyforms'), |
| 150 |
'form' => __('Form', 'ivyforms'), |
| 151 |
'form_deleted' => __('Form deleted successfully', 'ivyforms'), |
| 152 |
'form_loaded' => __('Form loaded successfully', 'ivyforms'), |
| 153 |
'form_published' => __('Form published successfully', 'ivyforms'), |
| 154 |
'form_starred' => __('Form moved to favorites', 'ivyforms'), |
| 155 |
'form_unpublished' => __('Form unpublished successfully', 'ivyforms'), |
| 156 |
'form_unstarred' => __('Form removed from favorites', 'ivyforms'), |
| 157 |
'forms_deleted' => __('Forms deleted successfully', 'ivyforms'), |
| 158 |
'get_current_state_err' => __('The getCurrentState method must be implemented by the store that uses this handler:', 'ivyforms'), |
| 159 |
'id' => __('ID', 'ivyforms'), |
| 160 |
'menu_button_element_not_found' => __('Menu button element not found', 'ivyforms'), |
| 161 |
'reset_filters' => __('Reset filters', 'ivyforms'), |
| 162 |
'select_all_forms' => __('Select All Forms', 'ivyforms'), |
| 163 |
'select_form_header' => __('Select Form', 'ivyforms'), |
| 164 |
'shortcode' => __('Shortcode', 'ivyforms'), |
| 165 |
'show_all_forms' => __('Show/Hide All', 'ivyforms'), |
| 166 |
'status_switch' => __('Switch to publish or unpublish the form', 'ivyforms'), |
| 167 |
'thanks_reaching' => __('Thanks for reaching out! We’ve received your message and will get back to you shortly', 'ivyforms'), |
| 168 |
'try_adjusting_criteria' => __('Try adjusting your search criteria', 'ivyforms'), |
| 169 |
'unable_to_add_data' => __('Unable to add data in ', 'ivyforms'), |
| 170 |
'unable_to_save_data' => __('Unable to save data in ', 'ivyforms'), |
| 171 |
'unknown_entity' => __('Unknown entityPageName:', 'ivyforms'), |
| 172 |
'unsaved_changes' => __('You have unsaved changes. If you leave now, your changes will be lost.', 'ivyforms'), |
| 173 |
]; |
| 174 |
} |
| 175 |
|
| 176 |
/** |
| 177 |
* Returns the array for the "New Form" page strings |
| 178 |
* |
| 179 |
* @return mixed[] |
| 180 |
*/ |
| 181 |
public static function getNewFormStrings(): array |
| 182 |
{ |
| 183 |
return [ |
| 184 |
'add_field' => __('Add Field', 'ivyforms'), |
| 185 |
'advanced' => __('Advanced', 'ivyforms'), |
| 186 |
'build' => __('Build', 'ivyforms'), |
| 187 |
'checkbox' => __('Checkbox', 'ivyforms'), |
| 188 |
'default_value' => __('Default Value', 'ivyforms'), |
| 189 |
'dropdown' => __('Dropdown', 'ivyforms'), |
| 190 |
'email' => __('Email', 'ivyforms'), |
| 191 |
'empty_state_title' => __('Add a field to start building your form', 'ivyforms'), |
| 192 |
'error_loading_form' => __('Error loading form', 'ivyforms'), |
| 193 |
'failed_to_fetch_form' => __('Failed to fetch form', 'ivyforms'), |
| 194 |
'failed_to_load_form' => __('Failed to load the selected form', 'ivyforms'), |
| 195 |
'failed_to_tab_form' => __('Failed to load form', 'ivyforms'), |
| 196 |
'first_save_form' => __('Please save the form before previewing', 'ivyforms'), |
| 197 |
'field_required' => __('field is required', 'ivyforms'), |
| 198 |
'general' => __('General', 'ivyforms'), |
| 199 |
'label' => __('Label', 'ivyforms'), |
| 200 |
'no_field_selected' => __('No field selected', 'ivyforms'), |
| 201 |
'number' => __('Number', 'ivyforms'), |
| 202 |
'options' => __('Options', 'ivyforms'), |
| 203 |
'paragraph' => __('Paragraph', 'ivyforms'), |
| 204 |
'phone' => __('Phone', 'ivyforms'), |
| 205 |
'placeholder' => __('Placeholder', 'ivyforms'), |
| 206 |
'please_select_field' => __('Please select a field to view its options.', 'ivyforms'), |
| 207 |
'preview_form' => __('Preview form', 'ivyforms'), |
| 208 |
'support' => __('Support', 'ivyforms'), |
| 209 |
'radio_button' => __('Radio Button', 'ivyforms'), |
| 210 |
'required' => __('Required', 'ivyforms'), |
| 211 |
'results' => __('Results', 'ivyforms'), |
| 212 |
'select_form' => __('Select a form', 'ivyforms'), |
| 213 |
'smart_logic' => __('Smart Logic', 'ivyforms'), |
| 214 |
'style' => __('Style', 'ivyforms'), |
| 215 |
'submit' => __('Submit', 'ivyforms'), |
| 216 |
'text' => __('Text', 'ivyforms'), |
| 217 |
'website' => __('Website/Url', 'ivyforms'), |
| 218 |
]; |
| 219 |
} |
| 220 |
|
| 221 |
/** |
| 222 |
* Returns the array for the "Settings form builder" page strings |
| 223 |
* |
| 224 |
* @return mixed[] |
| 225 |
*/ |
| 226 |
public static function getSettingsFormBuilderStrings(): array |
| 227 |
{ |
| 228 |
return [ |
| 229 |
'after_form_submission' => __('After Form Submission:', 'ivyforms'), |
| 230 |
'are_you_sure_delete_field' => __('Are you sure you want to Delete this Field?', 'ivyforms'), |
| 231 |
'are_you_sure_delete_notification' => __('Are you sure you want to Delete this Notification?', 'ivyforms'), |
| 232 |
'blank_form' => __('Blank form', 'ivyforms'), |
| 233 |
'confirmations' => __('Confirmations', 'ivyforms'), |
| 234 |
'create_confirmation' => __('Confirmation created successfully', 'ivyforms'), |
| 235 |
'create_notification' => __('Notification created successfully', 'ivyforms'), |
| 236 |
'duplicated_notification' => __('Notification duplicated successfully', 'ivyforms'), |
| 237 |
'empty_state_notification_subtitle'=> __('Once you create a notification it will appear here', 'ivyforms'), |
| 238 |
'empty_state_notification_title' => __('We didn\'t find any notifications', 'ivyforms'), |
| 239 |
'enable_confirmation' => __('Enable or disable this confirmation', 'ivyforms'), |
| 240 |
'enable_general' => __('Enable or disable this form', 'ivyforms'), |
| 241 |
'enable_notification' => __('Enable or disable this notification', 'ivyforms'), |
| 242 |
'enabled_status' => __('Enabled', 'ivyforms'), |
| 243 |
'error_creating_confirmation' => __('Error creating confirmation:', 'ivyforms'), |
| 244 |
'error_creating_notification' => __('Error creating notification:', 'ivyforms'), |
| 245 |
'error_deleting_notification' => __('Error deleting notification:', 'ivyforms'), |
| 246 |
'error_duplicate_confirmation' => __('Error duplicating confirmation:', 'ivyforms'), |
| 247 |
'error_duplicate_notification' => __('Error duplicating notification:', 'ivyforms'), |
| 248 |
'error_loading_data_confirmation' => __('Error loading data:', 'ivyforms'), |
| 249 |
'error_loading_notification' => __('Error loading notification:', 'ivyforms'), |
| 250 |
'error_save_form' => __('Error saving form:', 'ivyforms'), |
| 251 |
'error_saving_notification' => __('Error saving notification:', 'ivyforms'), |
| 252 |
'error_to_update_confirmation' => __('Error updating confirmation', 'ivyforms'), |
| 253 |
'error_updating_notification' => __('Error updating notification:', 'ivyforms'), |
| 254 |
'example' => __('example', 'ivyforms'), |
| 255 |
'failed_to_create_confirmation' => __('Failed to create confirmation.', 'ivyforms'), |
| 256 |
'failed_to_create_default_notification'=> __('Failed to create default notification', 'ivyforms'), |
| 257 |
'failed_to_create_notification' => __('Failed to create notification', 'ivyforms'), |
| 258 |
'failed_to_delete_notification' => __('Failed to delete notification', 'ivyforms'), |
| 259 |
'failed_to_duplicate_confirmation' => __('Failed to duplicate confirmation:', 'ivyforms'), |
| 260 |
'failed_to_duplicate_notification' => __('Failed to duplicate notification', 'ivyforms'), |
| 261 |
'failed_to_fetch_notification' => __('Failed to fetch notification:', 'ivyforms'), |
| 262 |
'failed_to_load_confirmation' => __('Failed to load confirmation:', 'ivyforms'), |
| 263 |
'failed_to_load_notification' => __('Failed to load notification:', 'ivyforms'), |
| 264 |
'failed_to_save_form' => __('Failed to save form', 'ivyforms'), |
| 265 |
'failed_to_update_confirmation' => __('Failed to update confirmation', 'ivyforms'), |
| 266 |
'failed_to_update_notification' => __('Failed to update notification', 'ivyforms'), |
| 267 |
'filtered_data_notification' => __('Filtered Data:', 'ivyforms'), |
| 268 |
'form_description' => __('Write your description here', 'ivyforms'), |
| 269 |
'form_saved' => __('Form saved successfully!', 'ivyforms'), |
| 270 |
'form_updated' => __('Form updated successfully!', 'ivyforms'), |
| 271 |
'general_settings' => __('General Settings', 'ivyforms'), |
| 272 |
'hide_form' => __('Hide Form', 'ivyforms'), |
| 273 |
'message' => __('Message', 'ivyforms'), |
| 274 |
'new_notification' => __('New Notification', 'ivyforms'), |
| 275 |
'notification_deleted' => __('Notification deleted successfully', 'ivyforms'), |
| 276 |
'notification_duplicated' => __('Notification duplicated successfully', 'ivyforms'), |
| 277 |
'notification_loaded' => __('Notifications loaded successfully', 'ivyforms'), |
| 278 |
'notifications' => __('Notifications', 'ivyforms'), |
| 279 |
'receiver' => __('Receiver', 'ivyforms'), |
| 280 |
'redirect_to_custom_url' => __('Redirect to Custom URL', 'ivyforms'), |
| 281 |
'redirect_to_page' => __('Redirect to Page', 'ivyforms'), |
| 282 |
'reset_form' => __('Reset Form', 'ivyforms'), |
| 283 |
'search_notifications' => __('Search Notifications', 'ivyforms'), |
| 284 |
'select_page' => __('Select a page', 'ivyforms'), |
| 285 |
'enter_url' => __('Enter URL', 'ivyforms'), |
| 286 |
'send_from' => __('Send from', 'ivyforms'), |
| 287 |
'send_to' => __('Send to', 'ivyforms'), |
| 288 |
'show_form_description' => __('Show the form description', 'ivyforms'), |
| 289 |
'show_form_title' => __('Show the form title', 'ivyforms'), |
| 290 |
'store_entries_db' => __('Store entries in Database', 'ivyforms'), |
| 291 |
'subject' => __('Subject', 'ivyforms'), |
| 292 |
'success_message' => __('Success Message', 'ivyforms'), |
| 293 |
'update_confirmation' => __('Confirmation updated successfully', 'ivyforms'), |
| 294 |
'update_notification' => __('Notification updated successfully', 'ivyforms'), |
| 295 |
'updated_form' => __('Updated form', 'ivyforms'), |
| 296 |
'unexpected_response_structure' => __('Unexpected response structure', 'ivyforms'), |
| 297 |
'updating_duplicated_confirmation' => __('Confirmation duplicated successfully', 'ivyforms'), |
| 298 |
]; |
| 299 |
} |
| 300 |
|
| 301 |
/** |
| 302 |
* Returns the array for the "Results Form Builder" page strings |
| 303 |
* |
| 304 |
* @return mixed[] |
| 305 |
*/ |
| 306 |
public static function getResultsFormBuilderStrings(): array |
| 307 |
{ |
| 308 |
return [ |
| 309 |
'insights' => __('Insights', 'ivyforms'), |
| 310 |
'report' => __('Report', 'ivyforms'), |
| 311 |
]; |
| 312 |
} |
| 313 |
|
| 314 |
/** |
| 315 |
* Returns the array for the "Empty States" parts strings |
| 316 |
* |
| 317 |
* @return mixed[] |
| 318 |
*/ |
| 319 |
public static function getEmptyStatesStrings(): array |
| 320 |
{ |
| 321 |
return [ |
| 322 |
'clipboard_api_not_supported' => __('Clipboard API not supported', 'ivyforms'), |
| 323 |
'collapse' => __('Collapse', 'ivyforms'), |
| 324 |
'copy_shortcode' => __('Copy shortcode', 'ivyforms'), |
| 325 |
'dark_theme' => __('Dark Theme', 'ivyforms'), |
| 326 |
'expand_collapse' => __('Expand or collapse the content area to make better use of your screen space.', 'ivyforms'), |
| 327 |
'form_id_not_found' => __('Form ID not found, please save the form first.', 'ivyforms'), |
| 328 |
'full_screen' => __('Full Screen', 'ivyforms'), |
| 329 |
'get_help' => __('Get help or contact our support team for assistance with any issues or questions.', 'ivyforms'), |
| 330 |
'light_theme' => __('Light Theme', 'ivyforms'), |
| 331 |
'shortcode_copied' => __('Shortcode copied!', 'ivyforms'), |
| 332 |
]; |
| 333 |
} |
| 334 |
|
| 335 |
/** |
| 336 |
* Returns the array for the "Entries" page strings |
| 337 |
* |
| 338 |
* @return mixed[] |
| 339 |
*/ |
| 340 |
public static function getEntriesStrings(): array |
| 341 |
{ |
| 342 |
return [ |
| 343 |
'all_entries' => __('All Entries', 'ivyforms'), |
| 344 |
'are_you_sure_delete_entries' => __('Are you sure you want to Delete these Entries?', 'ivyforms'), |
| 345 |
'are_you_sure_delete_entry' => __('Are you sure you want to Delete this Entry?', 'ivyforms'), |
| 346 |
'browser' => __('Browser', 'ivyforms'), |
| 347 |
'date_submitted' => __('Date Submitted', 'ivyforms'), |
| 348 |
'entries' => __('Entries', 'ivyforms'), |
| 349 |
'entries_deleted' => __('Entries deleted successfully', 'ivyforms'), |
| 350 |
'empty_state_all_entries_title' => __('We didn\'t find any entries', 'ivyforms'), |
| 351 |
'empty_state_all_entries_subtitle' => __('Once your forms start receiving submissions, entries will appear here.', 'ivyforms'), |
| 352 |
'empty_state_filters_all_entries_title' => __('Oops! Looks like there’s nothing here.', 'ivyforms'), |
| 353 |
'empty_state_filters_all_entries_subtitle' => __('Try again with different keywords or filters.', 'ivyforms'), |
| 354 |
'entry' => __('Entry', 'ivyforms'), |
| 355 |
'entry_deleted' => __('Entry deleted successfully', 'ivyforms'), |
| 356 |
'entry_id' => __('Entry ID', 'ivyforms'), |
| 357 |
'entry_read' => __('Entry marked as read', 'ivyforms'), |
| 358 |
'entry_starred' => __('Entry moved to favorites', 'ivyforms'), |
| 359 |
'entry_unread' => __('Entry marked as unread', 'ivyforms'), |
| 360 |
'entry_unstarred' => __('Entry removed from favorites', 'ivyforms'), |
| 361 |
'entry_updated' => __('Entry updated successfully', 'ivyforms'), |
| 362 |
'error_deleting_entries' => __('Error deleting entries:', 'ivyforms'), |
| 363 |
'error_fetching_entries' => __('Error fetching entries:', 'ivyforms'), |
| 364 |
'error_updating_entry' => __('Error updating entry:', 'ivyforms'), |
| 365 |
'failed_to_delete_entry' => __('Failed to delete entry:', 'ivyforms'), |
| 366 |
'failed_to_delete_entries' => __('Failed to delete entries:', 'ivyforms'), |
| 367 |
'failed_to_get_entry' => __('Failed to get entry:', 'ivyforms'), |
| 368 |
'failed_to_update_entry' => __('Failed to update entry:', 'ivyforms'), |
| 369 |
'failed_to_update_entry_status' => __('Failed to update entry status', 'ivyforms'), |
| 370 |
'failed_to_star_entry' => __('Failed to favorite entry', 'ivyforms'), |
| 371 |
'failed_to_unstar_entry' => __('Failed to unfavorite entry', 'ivyforms'), |
| 372 |
'form_name' => __('Form Name', 'ivyforms'), |
| 373 |
'general_details' => __('General Details', 'ivyforms'), |
| 374 |
'ip_address' => __('IP Address', 'ivyforms'), |
| 375 |
'show_all_entries' => __('Show/Hide All', 'ivyforms'), |
| 376 |
'show_empty_fields' => __('Show Empty Fields', 'ivyforms'), |
| 377 |
'status' => __('Status', 'ivyforms'), |
| 378 |
'submitted_on' => __('Submitted On', 'ivyforms'), |
| 379 |
'unknown' => __('Unknown', 'ivyforms'), |
| 380 |
'user_information' => __('User Information', 'ivyforms'), |
| 381 |
'user_ip' =>__('User IP', 'ivyforms'), |
| 382 |
]; |
| 383 |
} |
| 384 |
|
| 385 |
/** |
| 386 |
* Returns the array for the "Integrations" page strings |
| 387 |
* |
| 388 |
* @return mixed[] |
| 389 |
*/ |
| 390 |
public static function getIntegrationsStrings(): array |
| 391 |
{ |
| 392 |
return [ |
| 393 |
'integrations' => __('Integrations', 'ivyforms'), |
| 394 |
]; |
| 395 |
} |
| 396 |
|
| 397 |
/** |
| 398 |
* Returns the array for the "Security" page strings |
| 399 |
* |
| 400 |
* @return mixed[] |
| 401 |
*/ |
| 402 |
public static function getSecurityStrings(): array |
| 403 |
{ |
| 404 |
return [ |
| 405 |
'browser_default' => __('Browser default', 'ivyforms'), |
| 406 |
'configure_now' => __('Configure now', 'ivyforms'), |
| 407 |
'captcha_secret_key' => __('Secret Key', 'ivyforms'), |
| 408 |
'captcha_site_key' => __('Site Key', 'ivyforms'), |
| 409 |
'enter_secret_key' => __('Enter secret key', 'ivyforms'), |
| 410 |
'enter_site_key' => __('Enter site key', 'ivyforms'), |
| 411 |
'enable_honeypot_protection' => __('Enable Honeypot Protection', 'ivyforms'), |
| 412 |
'enter_hcaptcha_secret_key' => __('Enter hCaptcha secret key', 'ivyforms'), |
| 413 |
'enter_hcaptcha_site_key' => __('Enter hCaptcha site key', 'ivyforms'), |
| 414 |
'enter_turnstile_secret_key' => __('Enter Turnstile secret key', 'ivyforms'), |
| 415 |
'enter_turnstile_site_key' => __('Enter Turnstile site key', 'ivyforms'), |
| 416 |
'honeypot_protection' => __('Honeypot Protection', 'ivyforms'), |
| 417 |
'honeypot_protection_description' => __('Honeypot protection adds hidden fields to your forms to catch spam bots.', 'ivyforms'), |
| 418 |
'not_a_robot' => __('I\'m not a robot', 'ivyforms'), |
| 419 |
'no_captcha_provider' => __('No CAPTCHA provider specified', 'ivyforms'), |
| 420 |
'protected_by' => __('protected by', 'ivyforms'), |
| 421 |
'privacy' => __('Privacy', 'ivyforms'), |
| 422 |
'recaptcha' => __('reCaptcha', 'ivyforms'), |
| 423 |
'recaptcha_configured' => __('reCAPTCHA is configured and ready to use', 'ivyforms'), |
| 424 |
'recaptcha_invisible' => __('Invisible reCAPTCHA', 'ivyforms'), |
| 425 |
'recaptcha_language' => __('reCAPTCHA Language', 'ivyforms'), |
| 426 |
'recaptcha_type' => __('reCAPTCHA Type', 'ivyforms'), |
| 427 |
'recaptcha_v2' => __('reCAPTCHA v2', 'ivyforms'), |
| 428 |
'recaptcha_v3' => __('reCAPTCHA v3', 'ivyforms'), |
| 429 |
'recaptcha_verification' => __('reCAPTCHA Verification', 'ivyforms'), |
| 430 |
'recaptcha_v2_description' => __('I\'m not a robot checkbox verification', 'ivyforms'), |
| 431 |
'recaptcha_v3_description' => __('Invisible background verification', 'ivyforms'), |
| 432 |
'recaptcha_invisible_description' => __('Invisible verification', 'ivyforms'), |
| 433 |
'recaptcha_not_configured' => __('reCAPTCHA needs to be configured in security settings first.', 'ivyforms'), |
| 434 |
'recaptcha_required' => __('reCAPTCHA verification is required.', 'ivyforms'), |
| 435 |
'recaptcha_instruction' => __('To use the reCAPTCHA field, you first need to generate a free site key and secret key via reCAPTCHA', 'ivyforms'), |
| 436 |
// Validation messages |
| 437 |
'recaptcha_keys_required' => __('Both site key and secret key are required', 'ivyforms'), |
| 438 |
'recaptcha_invalid_key_format' => __('Invalid key format. Please check your reCAPTCHA keys', 'ivyforms'), |
| 439 |
'recaptcha_validation_network_error' => __('Unable to validate keys due to network error', 'ivyforms'), |
| 440 |
'recaptcha_invalid_secret_key' => __('Invalid secret key. Please verify your reCAPTCHA secret key', 'ivyforms'), |
| 441 |
'recaptcha_invalid_site_key' => __('Invalid site key. Please verify your reCAPTCHA site key', 'ivyforms'), |
| 442 |
'recaptcha_keys_validated' => __('reCAPTCHA keys validated successfully', 'ivyforms'), |
| 443 |
'recaptcha_keys_format_valid' => __('reCAPTCHA keys format appears valid', 'ivyforms'), |
| 444 |
'recaptcha_settings_incomplete' => __('reCAPTCHA settings are incomplete', 'ivyforms'), |
| 445 |
'recaptcha_invalid_type' => __('Invalid reCAPTCHA type selected', 'ivyforms'), |
| 446 |
'recaptcha_validation_failed' => __('reCAPTCHA validation failed. Settings not saved', 'ivyforms'), |
| 447 |
'recaptcha_credentials_valid' => __('Credentials are valid', 'ivyforms'), |
| 448 |
'recaptcha_unable_to_validate' => __('Unable to validate credentials with Google reCAPTCHA service', 'ivyforms'), |
| 449 |
// Exception messages |
| 450 |
'recaptcha_verification_required' => __('reCAPTCHA verification required.', 'ivyforms'), |
| 451 |
'recaptcha_verification_failed' => __('reCAPTCHA verification failed. Please try again.', 'ivyforms'), |
| 452 |
// Google API error messages |
| 453 |
'recaptcha_error_missing_secret' => __('The secret parameter is missing.', 'ivyforms'), |
| 454 |
'recaptcha_error_invalid_secret' => __('The secret parameter is invalid or malformed.', 'ivyforms'), |
| 455 |
'recaptcha_error_missing_response' => __('The response parameter is missing.', 'ivyforms'), |
| 456 |
'recaptcha_error_invalid_response' => __('The response parameter is invalid or malformed.', 'ivyforms'), |
| 457 |
'recaptcha_error_bad_request' => __('The request is invalid or malformed.', 'ivyforms'), |
| 458 |
'recaptcha_error_timeout_duplicate' => __('The response is no longer valid: either is too old or has been used previously.', 'ivyforms'), |
| 459 |
'recaptcha_error_unknown' => __('Unknown error: %s', 'ivyforms'), |
| 460 |
// Test token generation |
| 461 |
'test_token_prefix' => __('test-token', 'ivyforms'), |
| 462 |
// Frontend error messages |
| 463 |
'recaptcha_not_initialized' => __('reCAPTCHA not initialized', 'ivyforms'), |
| 464 |
'recaptcha_widget_not_initialized' => __('Invisible reCAPTCHA widget not initialized', 'ivyforms'), |
| 465 |
'recaptcha_execution_timeout' => __('reCAPTCHA execution timeout', 'ivyforms'), |
| 466 |
'recaptcha_execute_not_supported' => __('Execute is only supported for v3 and invisible reCAPTCHA', 'ivyforms'), |
| 467 |
'recaptcha_widget_not_initialized_field' => __('reCAPTCHA widget not initialized', 'ivyforms'), |
| 468 |
'recaptcha_v3_failed' => __('reCAPTCHA v3 execution failed', 'ivyforms'), |
| 469 |
'recaptcha_init_failed' => __('Failed to initialize reCAPTCHA', 'ivyforms'), |
| 470 |
'recaptcha_initialization_failed' => __('reCAPTCHA initialization failed', 'ivyforms'), |
| 471 |
'recaptcha_invisible_failed' => __('reCAPTCHA invisible execution failed', 'ivyforms'), |
| 472 |
'recaptcha_complete_verification' => __('Please complete the reCAPTCHA verification', 'ivyforms'), |
| 473 |
'unknown_captcha_provider' => __('Unknown CAPTCHA provider', 'ivyforms'), |
| 474 |
'unknown_captcha_provider_with_name' => __('Unknown CAPTCHA provider: %s', 'ivyforms'), |
| 475 |
'terms' => __('Terms', 'ivyforms'), |
| 476 |
]; |
| 477 |
} |
| 478 |
|
| 479 |
/** |
| 480 |
* Returns the array for the entities modal |
| 481 |
* |
| 482 |
* @return mixed[] |
| 483 |
*/ |
| 484 |
public static function getEntityFormStrings(): array |
| 485 |
{ |
| 486 |
return [ |
| 487 |
'duplicate' => __('Duplicate', 'ivyforms'), |
| 488 |
'loader_message' => __('Please Wait', 'ivyforms'), |
| 489 |
'visible' => __('Visible', 'ivyforms'), |
| 490 |
]; |
| 491 |
} |
| 492 |
|
| 493 |
/** |
| 494 |
* Returns the array for the components |
| 495 |
* |
| 496 |
* @return mixed[] |
| 497 |
*/ |
| 498 |
public static function getComponentsStrings(): array |
| 499 |
{ |
| 500 |
return [ |
| 501 |
'action_button' => __('Action button', 'ivyforms'), |
| 502 |
'add_star' => __('Add star', 'ivyforms'), |
| 503 |
'add_subfolder' => __('Add subfolder', 'ivyforms'), |
| 504 |
'adjusting_your_search_phone' => __('Try adjusting your search to find what you\'re looking for.', 'ivyforms'), |
| 505 |
'clear' => __('Clear', 'ivyforms'), |
| 506 |
'download' => __('Download', 'ivyforms'), |
| 507 |
'edit' => __('Edit', 'ivyforms'), |
| 508 |
'export' => __('Export', 'ivyforms'), |
| 509 |
'font_family' => __('Font Family Select', 'ivyforms'), |
| 510 |
'header_button' => __('Header button', 'ivyforms'), |
| 511 |
'heading_level' => __('Heading Level Select', 'ivyforms'), |
| 512 |
'html' => __('HTML', 'ivyforms'), |
| 513 |
'image_url' => __('Image Url', 'ivyforms'), |
| 514 |
'import' => __('Import', 'ivyforms'), |
| 515 |
'indicator_button' => __('Indicator button', 'ivyforms'), |
| 516 |
'insert_image_by_url' => __('Insert Image By URL', 'ivyforms'), |
| 517 |
'locate' => __('Locate', 'ivyforms'), |
| 518 |
'mark_as_read' => __('Mark as read', 'ivyforms'), |
| 519 |
'mark_as_spam' => __('Mark as spam', 'ivyforms'), |
| 520 |
'mark_as_unread' => __('Mark as unread', 'ivyforms'), |
| 521 |
'move_down' => __('Move down', 'ivyforms'), |
| 522 |
'move_to_folder' => __('Move to folder', 'ivyforms'), |
| 523 |
'move_to_folder_clicked' => __('Move to folder clicked', 'ivyforms'), |
| 524 |
'move_up' => __('Move up', 'ivyforms'), |
| 525 |
'off' => __('Off', 'ivyforms'), |
| 526 |
'on' => __('On', 'ivyforms'), |
| 527 |
'open_in_new_tab' => __('Open in new tab', 'ivyforms'), |
| 528 |
'option_button' => __('Option button', 'ivyforms'), |
| 529 |
'preview' => __('Preview', 'ivyforms'), |
| 530 |
'print' => __('Print', 'ivyforms'), |
| 531 |
'published' => __('Published', 'ivyforms'), |
| 532 |
'remove_star' => __('Remove star', 'ivyforms'), |
| 533 |
'rename' => __('Rename', 'ivyforms'), |
| 534 |
'resend_notification' => __('Resend notification', 'ivyforms'), |
| 535 |
'reset' => __('Reset', 'ivyforms'), |
| 536 |
'restore' => __('Restore', 'ivyforms'), |
| 537 |
'save_as_draft' => __('Save as draft', 'ivyforms'), |
| 538 |
'search' => __('Search', 'ivyforms'), |
| 539 |
'select' => __('Select', 'ivyforms'), |
| 540 |
'show_all' => __('Show all', 'ivyforms'), |
| 541 |
'sort_by' => __('Sort by', 'ivyforms'), |
| 542 |
'theme_switch' => __('Theme Switch', 'ivyforms'), |
| 543 |
'toggle_switch' => __('Toggle Switch', 'ivyforms'), |
| 544 |
'tooltip' => __('Tooltip', 'ivyforms'), |
| 545 |
'translate' => __('Translate', 'ivyforms'), |
| 546 |
'trash' => __('Trash', 'ivyforms'), |
| 547 |
'unpublished' => __('Unpublished', 'ivyforms'), |
| 548 |
'unstarred' => __('Unstarred', 'ivyforms'), |
| 549 |
'upload_image' => __('Upload Image', 'ivyforms'), |
| 550 |
'visual' => __('Visual', 'ivyforms'), |
| 551 |
'read' => __('Read', 'ivyforms'), |
| 552 |
'unread' => __('Unread', 'ivyforms'), |
| 553 |
]; |
| 554 |
} |
| 555 |
|
| 556 |
/** |
| 557 |
* Returns the array for the exception strings |
| 558 |
* |
| 559 |
* @return mixed[] |
| 560 |
*/ |
| 561 |
public static function getExceptionStrings(): array { |
| 562 |
return [ |
| 563 |
'active_notif_not_found' => __('Active notifications not found.', 'ivyforms'), |
| 564 |
'autoload_not_found' => __('Autoload file not found.', 'ivyforms'), |
| 565 |
'confirmation_id_required' => __('Confirmation ID is required.', 'ivyforms'), |
| 566 |
'confirmation_not_found' => __('Confirmation not found.', 'ivyforms'), |
| 567 |
'container_not_found' => __('Container file not found.', 'ivyforms'), |
| 568 |
'entry_id_required' => __('Entry ID is required.', 'ivyforms'), |
| 569 |
'entry_not_found' => __('Entry not found.', 'ivyforms'), |
| 570 |
'field_id_required' => __('Field ID is required.', 'ivyforms'), |
| 571 |
'form_id_required' => __('Form ID is required.', 'ivyforms'), |
| 572 |
'form_not_found' => __('Form not found.', 'ivyforms'), |
| 573 |
'invalid_entry_id' => __('Invalid entry ID.', 'ivyforms'), |
| 574 |
'invalid_form_data' => __('Invalid form data.', 'ivyforms'), |
| 575 |
'invalid_form_id' => __('Invalid Form ID.', 'ivyforms'), |
| 576 |
'invalid_id' => __('Invalid ID.', 'ivyforms'), |
| 577 |
'invalid_nonce' => __('Invalid nonce.', 'ivyforms'), |
| 578 |
'invalid_request_data' => __('Invalid request data.', 'ivyforms'), |
| 579 |
'ivyforms_not_installed' => __('IvyForms plugin is not installed or activated', 'ivyforms'), |
| 580 |
'notification_id_required' => __('Notification ID is required.', 'ivyforms'), |
| 581 |
'notification_ids_required' => __('Notification IDs are required and must be an array.', 'ivyforms'), |
| 582 |
'notification_not_found' => __('Notification not found.', 'ivyforms'), |
| 583 |
'table_name_not_provided' => __('Table name is not provided.', 'ivyforms'), |
| 584 |
'unable_find_by_id' => __('Unable to find by id in ', 'ivyforms'), |
| 585 |
'unable_get_entry_fields' => __('Unable to fetch entry fields in ', 'ivyforms'), |
| 586 |
'unable_search_entries' => __('Unable to search entries in ', 'ivyforms'), |
| 587 |
'unable_to_add_data' => __('Unable to add data in ', 'ivyforms'), |
| 588 |
'unable_update_data' => __('Unable to update data in ', 'ivyforms'), |
| 589 |
'unable_update_starred' => __('Unable to update starred status in ', 'ivyforms'), |
| 590 |
'unable_update_status' => __('Unable to update entry status in ', 'ivyforms'), |
| 591 |
]; |
| 592 |
} |
| 593 |
|
| 594 |
/** |
| 595 |
* Returns the array for the templates |
| 596 |
* |
| 597 |
* @return mixed[] |
| 598 |
*/ |
| 599 |
public static function getTemplateStrings(): array |
| 600 |
{ |
| 601 |
return [ |
| 602 |
'contact_form' => __('Contact Form', 'ivyforms'), |
| 603 |
'contact_form_desc' => __('A simple contact form with essential fields', 'ivyforms'), |
| 604 |
'generate_with_ai' => __('Generate with AI', 'ivyforms'), |
| 605 |
'generate_with_ai_desc' => __('Generate a form automatically with the help of AI.', 'ivyforms'), |
| 606 |
'failed_to_create_template'=> __('Failed to create form from template.', 'ivyforms'), |
| 607 |
'failed_to_fetch_template' => __('Failed to fetch templates', 'ivyforms'), |
| 608 |
'no_templates_found' => __('No templates found', 'ivyforms'), |
| 609 |
'required_template_id' => __('Template ID is required.', 'ivyforms'), |
| 610 |
'select_a_template' => __('Select a template', 'ivyforms'), |
| 611 |
'select_template_desc' => __('To get started quickly, you can pick from our ready-made template', 'ivyforms'), |
| 612 |
'search_template' => __('Search a form template', 'ivyforms'), |
| 613 |
'start_scratch' => __('Start from scratch', 'ivyforms'), |
| 614 |
'start_with_blank_desc' => __('Start with a blank form and build it your way.', 'ivyforms'), |
| 615 |
'template_not_found' => __('Template not found.', 'ivyforms'), |
| 616 |
'template_fetch_error' => __('Template fetch error:', 'ivyforms'), |
| 617 |
'use_this_template' => __('Use this template', 'ivyforms'), |
| 618 |
]; |
| 619 |
} |
| 620 |
} |
| 621 |
|