PluginProbe
The Innovative Form Builder – IvyForms / 0.3.1
The Innovative Form Builder – IvyForms v0.3.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Services / Translations / BackendStrings.php

BackendStrings.php in The Innovative Form Builder – IvyForms 0.3.1, at backend/src/Services/Translations/BackendStrings.php

635 lines 43.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 'css_classes' => __('CSS Classes', 'ivyforms'),
189 'css_classes_placeholder' => __('Add custom CSS class', 'ivyforms'),
190 'default_value' => __('Default Value', 'ivyforms'),
191 'description' => __('Description', 'ivyforms'),
192 'field_desc_placeholder' => __('Write your field description here', 'ivyforms'),
193 'dropdown' => __('Dropdown', 'ivyforms'),
194 'email' => __('Email', 'ivyforms'),
195 'empty_state_title' => __('Add a field to start building your form', 'ivyforms'),
196 'error_loading_form' => __('Error loading form', 'ivyforms'),
197 'failed_to_fetch_form' => __('Failed to fetch form', 'ivyforms'),
198 'failed_to_load_form' => __('Failed to load the selected form', 'ivyforms'),
199 'failed_to_tab_form' => __('Failed to load form', 'ivyforms'),
200 'first_save_form' => __('Please save the form before previewing', 'ivyforms'),
201 'field_required' => __('field is required', 'ivyforms'),
202 'general' => __('General', 'ivyforms'),
203 'hide_label' => __('Hide label', 'ivyforms'),
204 'label' => __('Label', 'ivyforms'),
205 'no_field_selected' => __('No field selected', 'ivyforms'),
206 'number' => __('Number', 'ivyforms'),
207 'options' => __('Options', 'ivyforms'),
208 'paragraph' => __('Paragraph', 'ivyforms'),
209 'phone' => __('Phone', 'ivyforms'),
210 'placeholder' => __('Placeholder', 'ivyforms'),
211 'please_select_field' => __('Please select a field to view its options.', 'ivyforms'),
212 'preview_form' => __('Preview form', 'ivyforms'),
213 'support' => __('Support', 'ivyforms'),
214 'radio_button' => __('Radio Button', 'ivyforms'),
215 'required' => __('Required', 'ivyforms'),
216 'required_message' => __('Required message', 'ivyforms'),
217 'required_message_placeholder' => __('Write your field required message here', 'ivyforms'),
218 'read_only' => __('Read Only', 'ivyforms'),
219 'results' => __('Results', 'ivyforms'),
220 'select_form' => __('Select a form', 'ivyforms'),
221 'smart_logic' => __('Smart Logic', 'ivyforms'),
222 'style' => __('Style', 'ivyforms'),
223 'submit' => __('Submit', 'ivyforms'),
224 'text' => __('Text', 'ivyforms'),
225 'website' => __('Website/Url', 'ivyforms'),
226 ];
227 }
228
229 /**
230 * Returns the array for the "Settings form builder" page strings
231 *
232 * @return mixed[]
233 */
234 public static function getSettingsFormBuilderStrings(): array
235 {
236 return [
237 'after_form_submission' => __('After Form Submission:', 'ivyforms'),
238 'are_you_sure_delete_field' => __('Are you sure you want to Delete this Field?', 'ivyforms'),
239 'are_you_sure_delete_notification' => __('Are you sure you want to Delete this Notification?', 'ivyforms'),
240 'blank_form' => __('Blank form', 'ivyforms'),
241 'confirmations' => __('Confirmations', 'ivyforms'),
242 'create_confirmation' => __('Confirmation created successfully', 'ivyforms'),
243 'create_notification' => __('Notification created successfully', 'ivyforms'),
244 'duplicated_notification' => __('Notification duplicated successfully', 'ivyforms'),
245 'empty_state_notification_subtitle'=> __('Once you create a notification it will appear here', 'ivyforms'),
246 'empty_state_notification_title' => __('We didn\'t find any notifications', 'ivyforms'),
247 'enable_confirmation' => __('Enable or disable this confirmation', 'ivyforms'),
248 'enable_general' => __('Enable or disable this form', 'ivyforms'),
249 'enable_notification' => __('Enable or disable this notification', 'ivyforms'),
250 'enabled_status' => __('Enabled', 'ivyforms'),
251 'error_creating_confirmation' => __('Error creating confirmation:', 'ivyforms'),
252 'error_creating_notification' => __('Error creating notification:', 'ivyforms'),
253 'error_deleting_notification' => __('Error deleting notification:', 'ivyforms'),
254 'error_duplicate_confirmation' => __('Error duplicating confirmation:', 'ivyforms'),
255 'error_duplicate_notification' => __('Error duplicating notification:', 'ivyforms'),
256 'error_loading_data_confirmation' => __('Error loading data:', 'ivyforms'),
257 'error_loading_notification' => __('Error loading notification:', 'ivyforms'),
258 'error_save_form' => __('Error saving form:', 'ivyforms'),
259 'error_saving_notification' => __('Error saving notification:', 'ivyforms'),
260 'error_to_update_confirmation' => __('Error updating confirmation', 'ivyforms'),
261 'error_updating_notification' => __('Error updating notification:', 'ivyforms'),
262 'example' => __('example', 'ivyforms'),
263 'failed_to_create_confirmation' => __('Failed to create confirmation.', 'ivyforms'),
264 'failed_to_create_default_notification'=> __('Failed to create default notification', 'ivyforms'),
265 'failed_to_create_notification' => __('Failed to create notification', 'ivyforms'),
266 'failed_to_delete_notification' => __('Failed to delete notification', 'ivyforms'),
267 'failed_to_duplicate_confirmation' => __('Failed to duplicate confirmation:', 'ivyforms'),
268 'failed_to_duplicate_notification' => __('Failed to duplicate notification', 'ivyforms'),
269 'failed_to_fetch_notification' => __('Failed to fetch notification:', 'ivyforms'),
270 'failed_to_load_confirmation' => __('Failed to load confirmation:', 'ivyforms'),
271 'failed_to_load_notification' => __('Failed to load notification:', 'ivyforms'),
272 'failed_to_save_form' => __('Failed to save form', 'ivyforms'),
273 'failed_to_update_confirmation' => __('Failed to update confirmation', 'ivyforms'),
274 'failed_to_update_notification' => __('Failed to update notification', 'ivyforms'),
275 'filtered_data_notification' => __('Filtered Data:', 'ivyforms'),
276 'form_description' => __('Write your description here', 'ivyforms'),
277 'form_saved' => __('Form saved successfully!', 'ivyforms'),
278 'form_updated' => __('Form updated successfully!', 'ivyforms'),
279 'general_settings' => __('General Settings', 'ivyforms'),
280 'hide_form' => __('Hide Form', 'ivyforms'),
281 'message' => __('Message', 'ivyforms'),
282 'new_notification' => __('New Notification', 'ivyforms'),
283 'notification_deleted' => __('Notification deleted successfully', 'ivyforms'),
284 'notification_duplicated' => __('Notification duplicated successfully', 'ivyforms'),
285 'notification_loaded' => __('Notifications loaded successfully', 'ivyforms'),
286 'notifications' => __('Notifications', 'ivyforms'),
287 'receiver' => __('Receiver', 'ivyforms'),
288 'redirect_to_custom_url' => __('Redirect to Custom URL', 'ivyforms'),
289 'redirect_to_page' => __('Redirect to Page', 'ivyforms'),
290 'reset_form' => __('Reset Form', 'ivyforms'),
291 'search_notifications' => __('Search Notifications', 'ivyforms'),
292 'select_page' => __('Select a page', 'ivyforms'),
293 'enter_url' => __('Enter URL', 'ivyforms'),
294 'send_from' => __('Send from', 'ivyforms'),
295 'send_to' => __('Send to', 'ivyforms'),
296 'show_form_description' => __('Show the form description', 'ivyforms'),
297 'show_form_title' => __('Show the form title', 'ivyforms'),
298 'store_entries_db' => __('Store entries in Database', 'ivyforms'),
299 'subject' => __('Subject', 'ivyforms'),
300 'success_message' => __('Success Message', 'ivyforms'),
301 'success_message_tooltip' => __('Message displayed to the user after a successful form submission.', 'ivyforms'),
302 'redirection_message' => __('Redirection Message', 'ivyforms'),
303 'redirection_message_tooltip' => __('Message displayed to the user during redirection to the selected page.', 'ivyforms'),
304 'redirection_message_url' => __('Redirection Message (Custom URL)', 'ivyforms'),
305 'redirection_message_url_tooltip' => __('Message displayed to the user while being redirected to the specified URL.', 'ivyforms'),
306 'overridden_warn' => __('HTML formatting may be overridden by plain text formatting upon switching between modes', 'ivyforms'),
307 'update_confirmation' => __('Confirmation updated successfully', 'ivyforms'),
308 'update_notification' => __('Notification updated successfully', 'ivyforms'),
309 'updated_form' => __('Updated form', 'ivyforms'),
310 'unexpected_response_structure' => __('Unexpected response structure', 'ivyforms'),
311 'updating_duplicated_confirmation' => __('Confirmation duplicated successfully', 'ivyforms'),
312 ];
313 }
314
315 /**
316 * Returns the array for the "Results Form Builder" page strings
317 *
318 * @return mixed[]
319 */
320 public static function getResultsFormBuilderStrings(): array
321 {
322 return [
323 'insights' => __('Insights', 'ivyforms'),
324 'report' => __('Report', 'ivyforms'),
325 ];
326 }
327
328 /**
329 * Returns the array for the "Empty States" parts strings
330 *
331 * @return mixed[]
332 */
333 public static function getEmptyStatesStrings(): array
334 {
335 return [
336 'clipboard_api_not_supported' => __('Clipboard API not supported', 'ivyforms'),
337 'collapse' => __('Collapse', 'ivyforms'),
338 'copy_shortcode' => __('Copy shortcode', 'ivyforms'),
339 'dark_theme' => __('Dark Theme', 'ivyforms'),
340 'expand_collapse' => __('Expand or collapse the content area to make better use of your screen space.', 'ivyforms'),
341 'form_id_not_found' => __('Form ID not found, please save the form first.', 'ivyforms'),
342 'full_screen' => __('Full Screen', 'ivyforms'),
343 'get_help' => __('Get help or contact our support team for assistance with any issues or questions.', 'ivyforms'),
344 'light_theme' => __('Light Theme', 'ivyforms'),
345 'shortcode_copied' => __('Shortcode copied!', 'ivyforms'),
346 ];
347 }
348
349 /**
350 * Returns the array for the "Entries" page strings
351 *
352 * @return mixed[]
353 */
354 public static function getEntriesStrings(): array
355 {
356 return [
357 'all_entries' => __('All Entries', 'ivyforms'),
358 'are_you_sure_delete_entries' => __('Are you sure you want to Delete these Entries?', 'ivyforms'),
359 'are_you_sure_delete_entry' => __('Are you sure you want to Delete this Entry?', 'ivyforms'),
360 'browser' => __('Browser', 'ivyforms'),
361 'date_submitted' => __('Date Submitted', 'ivyforms'),
362 'entries' => __('Entries', 'ivyforms'),
363 'entries_deleted' => __('Entries deleted successfully', 'ivyforms'),
364 'empty_state_all_entries_title' => __('We didn\'t find any entries', 'ivyforms'),
365 'empty_state_all_entries_subtitle' => __('Once your forms start receiving submissions, entries will appear here.', 'ivyforms'),
366 'empty_state_filters_all_entries_title' => __('Oops! Looks like there’s nothing here.', 'ivyforms'),
367 'empty_state_filters_all_entries_subtitle' => __('Try again with different keywords or filters.', 'ivyforms'),
368 'entry' => __('Entry', 'ivyforms'),
369 'entry_deleted' => __('Entry deleted successfully', 'ivyforms'),
370 'entry_id' => __('Entry ID', 'ivyforms'),
371 'entry_read' => __('Entry marked as read', 'ivyforms'),
372 'entry_starred' => __('Entry moved to favorites', 'ivyforms'),
373 'entry_unread' => __('Entry marked as unread', 'ivyforms'),
374 'entry_unstarred' => __('Entry removed from favorites', 'ivyforms'),
375 'entry_updated' => __('Entry updated successfully', 'ivyforms'),
376 'error_deleting_entries' => __('Error deleting entries:', 'ivyforms'),
377 'error_fetching_entries' => __('Error fetching entries:', 'ivyforms'),
378 'error_updating_entry' => __('Error updating entry:', 'ivyforms'),
379 'failed_to_delete_entry' => __('Failed to delete entry:', 'ivyforms'),
380 'failed_to_delete_entries' => __('Failed to delete entries:', 'ivyforms'),
381 'failed_to_get_entry' => __('Failed to get entry:', 'ivyforms'),
382 'failed_to_update_entry' => __('Failed to update entry:', 'ivyforms'),
383 'failed_to_update_entry_status' => __('Failed to update entry status', 'ivyforms'),
384 'failed_to_star_entry' => __('Failed to favorite entry', 'ivyforms'),
385 'failed_to_unstar_entry' => __('Failed to unfavorite entry', 'ivyforms'),
386 'form_name' => __('Form Name', 'ivyforms'),
387 'general_details' => __('General Details', 'ivyforms'),
388 'ip_address' => __('IP Address', 'ivyforms'),
389 'show_all_entries' => __('Show/Hide All', 'ivyforms'),
390 'show_empty_fields' => __('Show Empty Fields', 'ivyforms'),
391 'status' => __('Status', 'ivyforms'),
392 'submitted_on' => __('Submitted On', 'ivyforms'),
393 'unknown' => __('Unknown', 'ivyforms'),
394 'user_information' => __('User Information', 'ivyforms'),
395 'user_ip' =>__('User IP', 'ivyforms'),
396 ];
397 }
398
399 /**
400 * Returns the array for the "Integrations" page strings
401 *
402 * @return mixed[]
403 */
404 public static function getIntegrationsStrings(): array
405 {
406 return [
407 'integrations' => __('Integrations', 'ivyforms'),
408 ];
409 }
410
411 /**
412 * Returns the array for the "Security" page strings
413 *
414 * @return mixed[]
415 */
416 public static function getSecurityStrings(): array
417 {
418 return [
419 'browser_default' => __('Browser default', 'ivyforms'),
420 'configure_now' => __('Configure now', 'ivyforms'),
421 'captcha_secret_key' => __('Secret Key', 'ivyforms'),
422 'captcha_site_key' => __('Site Key', 'ivyforms'),
423 'enter_secret_key' => __('Enter secret key', 'ivyforms'),
424 'enter_site_key' => __('Enter site key', 'ivyforms'),
425 'enable_honeypot_protection' => __('Enable Honeypot Protection', 'ivyforms'),
426 'enter_hcaptcha_secret_key' => __('Enter hCaptcha secret key', 'ivyforms'),
427 'enter_hcaptcha_site_key' => __('Enter hCaptcha site key', 'ivyforms'),
428 'enter_turnstile_secret_key' => __('Enter Turnstile secret key', 'ivyforms'),
429 'enter_turnstile_site_key' => __('Enter Turnstile site key', 'ivyforms'),
430 'honeypot_protection' => __('Honeypot Protection', 'ivyforms'),
431 'honeypot_protection_description' => __('Honeypot protection adds hidden fields to your forms to catch spam bots.', 'ivyforms'),
432 'not_a_robot' => __('I\'m not a robot', 'ivyforms'),
433 'no_captcha_provider' => __('No CAPTCHA provider specified', 'ivyforms'),
434 'protected_by' => __('protected by', 'ivyforms'),
435 'privacy' => __('Privacy', 'ivyforms'),
436 'recaptcha' => __('reCaptcha', 'ivyforms'),
437 'recaptcha_configured' => __('reCAPTCHA is configured and ready to use', 'ivyforms'),
438 'recaptcha_invisible' => __('Invisible reCAPTCHA', 'ivyforms'),
439 'recaptcha_language' => __('reCAPTCHA Language', 'ivyforms'),
440 'recaptcha_type' => __('reCAPTCHA Type', 'ivyforms'),
441 'recaptcha_v2' => __('reCAPTCHA v2', 'ivyforms'),
442 'recaptcha_v3' => __('reCAPTCHA v3', 'ivyforms'),
443 'recaptcha_verification' => __('reCAPTCHA Verification', 'ivyforms'),
444 'recaptcha_v2_description' => __('I\'m not a robot checkbox verification', 'ivyforms'),
445 'recaptcha_v3_description' => __('Invisible background verification', 'ivyforms'),
446 'recaptcha_invisible_description' => __('Invisible verification', 'ivyforms'),
447 'recaptcha_not_configured' => __('reCAPTCHA needs to be configured in security settings first.', 'ivyforms'),
448 'recaptcha_required' => __('reCAPTCHA verification is required.', 'ivyforms'),
449 'recaptcha_instruction' => __('To use the reCAPTCHA field, you first need to generate a free site key and secret key via reCAPTCHA', 'ivyforms'),
450 // Validation messages
451 'recaptcha_keys_required' => __('Both site key and secret key are required', 'ivyforms'),
452 'recaptcha_invalid_key_format' => __('Invalid key format. Please check your reCAPTCHA keys', 'ivyforms'),
453 'recaptcha_validation_network_error' => __('Unable to validate keys due to network error', 'ivyforms'),
454 'recaptcha_invalid_secret_key' => __('Invalid secret key. Please verify your reCAPTCHA secret key', 'ivyforms'),
455 'recaptcha_invalid_site_key' => __('Invalid site key. Please verify your reCAPTCHA site key', 'ivyforms'),
456 'recaptcha_keys_validated' => __('reCAPTCHA keys validated successfully', 'ivyforms'),
457 'recaptcha_keys_format_valid' => __('reCAPTCHA keys format appears valid', 'ivyforms'),
458 'recaptcha_settings_incomplete' => __('reCAPTCHA settings are incomplete', 'ivyforms'),
459 'recaptcha_invalid_type' => __('Invalid reCAPTCHA type selected', 'ivyforms'),
460 'recaptcha_validation_failed' => __('reCAPTCHA validation failed. Settings not saved', 'ivyforms'),
461 'recaptcha_credentials_valid' => __('Credentials are valid', 'ivyforms'),
462 'recaptcha_unable_to_validate' => __('Unable to validate credentials with Google reCAPTCHA service', 'ivyforms'),
463 // Exception messages
464 'recaptcha_verification_required' => __('reCAPTCHA verification required.', 'ivyforms'),
465 'recaptcha_verification_failed' => __('reCAPTCHA verification failed. Please try again.', 'ivyforms'),
466 // Google API error messages
467 'recaptcha_error_missing_secret' => __('The secret parameter is missing.', 'ivyforms'),
468 'recaptcha_error_invalid_secret' => __('The secret parameter is invalid or malformed.', 'ivyforms'),
469 'recaptcha_error_missing_response' => __('The response parameter is missing.', 'ivyforms'),
470 'recaptcha_error_invalid_response' => __('The response parameter is invalid or malformed.', 'ivyforms'),
471 'recaptcha_error_bad_request' => __('The request is invalid or malformed.', 'ivyforms'),
472 'recaptcha_error_timeout_duplicate' => __('The response is no longer valid: either is too old or has been used previously.', 'ivyforms'),
473 'recaptcha_error_unknown' => __('Unknown error: %s', 'ivyforms'),
474 // Test token generation
475 'test_token_prefix' => __('test-token', 'ivyforms'),
476 // Frontend error messages
477 'recaptcha_not_initialized' => __('reCAPTCHA not initialized', 'ivyforms'),
478 'recaptcha_widget_not_initialized' => __('Invisible reCAPTCHA widget not initialized', 'ivyforms'),
479 'recaptcha_execution_timeout' => __('reCAPTCHA execution timeout', 'ivyforms'),
480 'recaptcha_execute_not_supported' => __('Execute is only supported for v3 and invisible reCAPTCHA', 'ivyforms'),
481 'recaptcha_widget_not_initialized_field' => __('reCAPTCHA widget not initialized', 'ivyforms'),
482 'recaptcha_v3_failed' => __('reCAPTCHA v3 execution failed', 'ivyforms'),
483 'recaptcha_init_failed' => __('Failed to initialize reCAPTCHA', 'ivyforms'),
484 'recaptcha_initialization_failed' => __('reCAPTCHA initialization failed', 'ivyforms'),
485 'recaptcha_invisible_failed' => __('reCAPTCHA invisible execution failed', 'ivyforms'),
486 'recaptcha_complete_verification' => __('Please complete the reCAPTCHA verification', 'ivyforms'),
487 'unknown_captcha_provider' => __('Unknown CAPTCHA provider', 'ivyforms'),
488 'unknown_captcha_provider_with_name' => __('Unknown CAPTCHA provider: %s', 'ivyforms'),
489 'terms' => __('Terms', 'ivyforms'),
490 ];
491 }
492
493 /**
494 * Returns the array for the entities modal
495 *
496 * @return mixed[]
497 */
498 public static function getEntityFormStrings(): array
499 {
500 return [
501 'duplicate' => __('Duplicate', 'ivyforms'),
502 'loader_message' => __('Please Wait', 'ivyforms'),
503 'visible' => __('Visible', 'ivyforms'),
504 ];
505 }
506
507 /**
508 * Returns the array for the components
509 *
510 * @return mixed[]
511 */
512 public static function getComponentsStrings(): array
513 {
514 return [
515 'action_button' => __('Action button', 'ivyforms'),
516 'add_star' => __('Add star', 'ivyforms'),
517 'add_subfolder' => __('Add subfolder', 'ivyforms'),
518 'adjusting_your_search_phone' => __('Try adjusting your search to find what you\'re looking for.', 'ivyforms'),
519 'clear' => __('Clear', 'ivyforms'),
520 'download' => __('Download', 'ivyforms'),
521 'edit' => __('Edit', 'ivyforms'),
522 'export' => __('Export', 'ivyforms'),
523 'font_family' => __('Font Family Select', 'ivyforms'),
524 'header_button' => __('Header button', 'ivyforms'),
525 'heading_level' => __('Heading Level Select', 'ivyforms'),
526 'html' => __('HTML', 'ivyforms'),
527 'image_url' => __('Image Url', 'ivyforms'),
528 'import' => __('Import', 'ivyforms'),
529 'indicator_button' => __('Indicator button', 'ivyforms'),
530 'insert_image_by_url' => __('Insert Image By URL', 'ivyforms'),
531 'locate' => __('Locate', 'ivyforms'),
532 'mark_as_read' => __('Mark as read', 'ivyforms'),
533 'mark_as_spam' => __('Mark as spam', 'ivyforms'),
534 'mark_as_unread' => __('Mark as unread', 'ivyforms'),
535 'move_down' => __('Move down', 'ivyforms'),
536 'move_to_folder' => __('Move to folder', 'ivyforms'),
537 'move_to_folder_clicked' => __('Move to folder clicked', 'ivyforms'),
538 'move_up' => __('Move up', 'ivyforms'),
539 'off' => __('Off', 'ivyforms'),
540 'on' => __('On', 'ivyforms'),
541 'open_in_new_tab' => __('Open in new tab', 'ivyforms'),
542 'option_button' => __('Option button', 'ivyforms'),
543 'preview' => __('Preview', 'ivyforms'),
544 'print' => __('Print', 'ivyforms'),
545 'published' => __('Published', 'ivyforms'),
546 'remove_star' => __('Remove star', 'ivyforms'),
547 'rename' => __('Rename', 'ivyforms'),
548 'resend_notification' => __('Resend notification', 'ivyforms'),
549 'reset' => __('Reset', 'ivyforms'),
550 'restore' => __('Restore', 'ivyforms'),
551 'save_as_draft' => __('Save as draft', 'ivyforms'),
552 'search' => __('Search', 'ivyforms'),
553 'select' => __('Select', 'ivyforms'),
554 'show_all' => __('Show all', 'ivyforms'),
555 'sort_by' => __('Sort by', 'ivyforms'),
556 'theme_switch' => __('Theme Switch', 'ivyforms'),
557 'toggle_switch' => __('Toggle Switch', 'ivyforms'),
558 'tooltip' => __('Tooltip', 'ivyforms'),
559 'translate' => __('Translate', 'ivyforms'),
560 'trash' => __('Trash', 'ivyforms'),
561 'unpublished' => __('Unpublished', 'ivyforms'),
562 'unstarred' => __('Unstarred', 'ivyforms'),
563 'upload_image' => __('Upload Image', 'ivyforms'),
564 'visual' => __('Visual', 'ivyforms'),
565 'read' => __('Read', 'ivyforms'),
566 'unread' => __('Unread', 'ivyforms'),
567 ];
568 }
569
570 /**
571 * Returns the array for the exception strings
572 *
573 * @return mixed[]
574 */
575 public static function getExceptionStrings(): array {
576 return [
577 'active_notif_not_found' => __('Active notifications not found.', 'ivyforms'),
578 'autoload_not_found' => __('Autoload file not found.', 'ivyforms'),
579 'confirmation_id_required' => __('Confirmation ID is required.', 'ivyforms'),
580 'confirmation_not_found' => __('Confirmation not found.', 'ivyforms'),
581 'container_not_found' => __('Container file not found.', 'ivyforms'),
582 'entry_id_required' => __('Entry ID is required.', 'ivyforms'),
583 'entry_not_found' => __('Entry not found.', 'ivyforms'),
584 'field_id_required' => __('Field ID is required.', 'ivyforms'),
585 'form_id_required' => __('Form ID is required.', 'ivyforms'),
586 'form_not_found' => __('Form not found.', 'ivyforms'),
587 'invalid_entry_id' => __('Invalid entry ID.', 'ivyforms'),
588 'invalid_form_data' => __('Invalid form data.', 'ivyforms'),
589 'invalid_form_id' => __('Invalid Form ID.', 'ivyforms'),
590 'invalid_id' => __('Invalid ID.', 'ivyforms'),
591 'invalid_nonce' => __('Invalid nonce.', 'ivyforms'),
592 'invalid_request_data' => __('Invalid request data.', 'ivyforms'),
593 'ivyforms_not_installed' => __('IvyForms plugin is not installed or activated', 'ivyforms'),
594 'notification_id_required' => __('Notification ID is required.', 'ivyforms'),
595 'notification_ids_required' => __('Notification IDs are required and must be an array.', 'ivyforms'),
596 'notification_not_found' => __('Notification not found.', 'ivyforms'),
597 'table_name_not_provided' => __('Table name is not provided.', 'ivyforms'),
598 'unable_find_by_id' => __('Unable to find by id in ', 'ivyforms'),
599 'unable_get_entry_fields' => __('Unable to fetch entry fields in ', 'ivyforms'),
600 'unable_search_entries' => __('Unable to search entries in ', 'ivyforms'),
601 'unable_to_add_data' => __('Unable to add data in ', 'ivyforms'),
602 'unable_update_data' => __('Unable to update data in ', 'ivyforms'),
603 'unable_update_starred' => __('Unable to update starred status in ', 'ivyforms'),
604 'unable_update_status' => __('Unable to update entry status in ', 'ivyforms'),
605 ];
606 }
607
608 /**
609 * Returns the array for the templates
610 *
611 * @return mixed[]
612 */
613 public static function getTemplateStrings(): array
614 {
615 return [
616 'contact_form' => __('Contact Form', 'ivyforms'),
617 'contact_form_desc' => __('A simple contact form with essential fields', 'ivyforms'),
618 'generate_with_ai' => __('Generate with AI', 'ivyforms'),
619 'generate_with_ai_desc' => __('Generate a form automatically with the help of AI.', 'ivyforms'),
620 'failed_to_create_template'=> __('Failed to create form from template.', 'ivyforms'),
621 'failed_to_fetch_template' => __('Failed to fetch templates', 'ivyforms'),
622 'no_templates_found' => __('No templates found', 'ivyforms'),
623 'required_template_id' => __('Template ID is required.', 'ivyforms'),
624 'select_a_template' => __('Select a template', 'ivyforms'),
625 'select_template_desc' => __('To get started quickly, you can pick from our ready-made template', 'ivyforms'),
626 'search_template' => __('Search a form template', 'ivyforms'),
627 'start_scratch' => __('Start from scratch', 'ivyforms'),
628 'start_with_blank_desc' => __('Start with a blank form and build it your way.', 'ivyforms'),
629 'template_not_found' => __('Template not found.', 'ivyforms'),
630 'template_fetch_error' => __('Template fetch error:', 'ivyforms'),
631 'use_this_template' => __('Use this template', 'ivyforms'),
632 ];
633 }
634 }
635