PluginProbe
The Innovative Form Builder – IvyForms / 0.4
The Innovative Form Builder – IvyForms v0.4
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.4, at backend/src/Services/Translations/BackendStrings.php

779 lines 55.9 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_entries' => __('All Entries', 'ivyforms'),
32 'all_forms' => __('All Forms', '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 'invalid_form_id' => __('Invalid form ID.', 'ivyforms'),
46 'invalid_request_data' => __('Invalid request data.', 'ivyforms'),
47 'leave' => __('Leave', 'ivyforms'),
48 'learn_more' => __('Learn more', 'ivyforms'),
49 'name' => __('Name', 'ivyforms'),
50 'new_form' => __('New Form', 'ivyforms'),
51 'no_results_for' => __('No results found for', 'ivyforms'),
52 'ok' => __('OK', 'ivyforms'),
53 'save' => __('Save', 'ivyforms'),
54 'security' => __('Security', 'ivyforms'),
55 'settings' => __('Settings', 'ivyforms'),
56 'starred' => __('Starred', 'ivyforms'),
57 'status' => __('Status', 'ivyforms'),
58 'stay' => __('Stay', 'ivyforms'),
59 'try_adjusting_search' => __('Try adjusting your search to find what you are looking for.', 'ivyforms'),
60 'update' => __('Update', 'ivyforms'),
61 'validation' => __('Validation', 'ivyforms'),
62 ];
63 }
64
65 /**
66 * Returns the array for the settings strings
67 *
68 * @return mixed[]
69 */
70 public static function getSettingsStrings(): array
71 {
72 return [
73 'activation_activated' => __('Plugin has been activated', 'ivyforms'),
74 'activation_deactivated' => __('Plugin has been deactivated', 'ivyforms'),
75 'activation_settings_domains_limit' => __('You have reached maximum number of registered domains', 'ivyforms'),
76 'activation_settings_hidden_code' => __('Your purchase code has been hidden for security reasons. You can find it on your store page', 'ivyforms'),
77 'activation_settings_invalid_code' => __('The purchase code is invalid or it has expired', 'ivyforms'),
78 'all_settings_retrieved' => __('All settings retrieved successfully', 'ivyforms'),
79 'error_loading_settings' => __('Error loading settings', 'ivyforms'),
80 'error_saving_settings' => __('Error saving settings', 'ivyforms'),
81 'failed_to_load_settings' => __('Failed to load settings', 'ivyforms'),
82 'failed_to_save_settings' => __('Failed to save settings', 'ivyforms'),
83 'secret_key_missing' => __('Secret key is missing', 'ivyforms'),
84 'setting_retrieved' => __('Setting retrieved successfully', 'ivyforms'),
85 'settings_category_or_option_missing'=> __('Settings category and option must be provided.', 'ivyforms'),
86 'settings_option_updated' => __('Settings option updated successfully', '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 'wcag_compliance_settings' => __('WCAG-compliant backend layout', 'ivyforms'),
90 ];
91 }
92
93 /**
94 * Returns the array for the dashboard strings
95 *
96 * @return mixed[]
97 */
98 public static function getDashboardStrings(): array
99 {
100 return [
101 'dashboard' => __('Dashboard', 'ivyforms'),
102 ];
103 }
104
105 /**
106 * Returns the array for the "All Forms" page strings
107 *
108 * @return mixed[]
109 */
110 public static function getAllFormsStrings(): array
111 {
112 return [
113 'actions' => __('Actions', 'ivyforms'),
114 'action_undone' => __('This action can\'t be undone', 'ivyforms'),
115 'add_new_form' => __('Add new Form', 'ivyforms'),
116 'admin_notification_email' => __('Admin Notification Email', 'ivyforms'),
117 'are_you_sure_delete_form' => __('Are you sure you want to Delete this Form?', 'ivyforms'),
118 'are_you_sure_delete_forms' => __('Are you sure you want to Delete these Forms?', 'ivyforms'),
119 'author' => __('Author', 'ivyforms'),
120 'close' => __('Close', 'ivyforms'),
121 'copied_shortcode' => __('Copied shortcode to clipboard', 'ivyforms'),
122 'copy_shorcode_table_form' => __('Copy shortcode for the form', 'ivyforms'),
123 'date_created' => __('Date Created', 'ivyforms'),
124 'date_edited' => __('Date Edited', 'ivyforms'),
125 'date_filters' => __('Date filter for all forms', 'ivyforms'),
126 'delete_form' => __('Are you sure you want to Delete this Form?', 'ivyforms'),
127 'duplicate_form' => __('Duplicate this Form?', 'ivyforms'),
128 'duplicate_form_subtitle' => __('An exact copy will be added to your forms.', 'ivyforms'),
129 'duplicate_notification' => __('Duplicate this Notification?', 'ivyforms'),
130 'duplicate_notification_subtitle'=> __('An exact copy will be added to your notifications.', 'ivyforms'),
131 'duplicated_failed' => __('Failed to duplicate form', 'ivyforms'),
132 'edit_columns' => __('Select the columns to show in the table', 'ivyforms'),
133 'edit_table' => __('Edit Table', 'ivyforms'),
134 'empty_state_all_forms_subtitle' => __('Once you create a form it will appear here', 'ivyforms'),
135 'empty_state_all_forms_title' => __('We didn\'t find any forms', 'ivyforms'),
136 'error_deleting_form' => __('Error deleting form:', 'ivyforms'),
137 'error_deleting_forms' => __('Error deleting forms:', 'ivyforms'),
138 'error_duplicating_forms' => __('Error duplicating form:', 'ivyforms'),
139 'error_fetching_forms' => __('Error fetching forms:', 'ivyforms'),
140 'error_refreshing' => __('Error refreshing data', 'ivyforms'),
141 'error_updating_forms' => __('Error updating form:', 'ivyforms'),
142 'failed_to_create_form' => __('Failed to create form.', 'ivyforms'),
143 'failed_to_delete_form' => __('Failed to delete form:', 'ivyforms'),
144 'failed_to_delete_forms' => __('Failed to delete forms:', 'ivyforms'),
145 'failed_to_duplicate_form' => __('Failed to duplicate form.', 'ivyforms'),
146 'failed_to_star_form' => __('Failed to favorite form', 'ivyforms'),
147 'failed_to_unstar_form' => __('Failed to unfavorite form', 'ivyforms'),
148 'failed_to_update_form' => __('Failed to update form', 'ivyforms'),
149 'filters' => __('Filters for all forms', 'ivyforms'),
150 'flag' => __('Country flag icon', 'ivyforms'),
151 'form' => __('Form', 'ivyforms'),
152 'form_deleted' => __('Form deleted successfully', 'ivyforms'),
153 'form_loaded' => __('Form loaded successfully', 'ivyforms'),
154 'form_published' => __('Form published successfully', 'ivyforms'),
155 'form_starred' => __('Form moved to favorites', 'ivyforms'),
156 'form_unpublished' => __('Form unpublished successfully', 'ivyforms'),
157 'form_unstarred' => __('Form removed from favorites', 'ivyforms'),
158 'forms_deleted' => __('Forms deleted successfully', 'ivyforms'),
159 'get_current_state_err' => __('The getCurrentState method must be implemented by the store that uses this handler:', 'ivyforms'),
160 'id' => __('ID', 'ivyforms'),
161 'menu_button_element_not_found' => __('Menu button element not found', 'ivyforms'),
162 'reset_filters' => __('Reset filters', 'ivyforms'),
163 'select_all_forms' => __('Select All Forms', 'ivyforms'),
164 'select_form_header' => __('Select Form', 'ivyforms'),
165 'shortcode' => __('Shortcode', 'ivyforms'),
166 'show_all_forms' => __('Show/Hide All', 'ivyforms'),
167 'status_switch' => __('Switch to publish or unpublish the form', 'ivyforms'),
168 'thanks_reaching' => __('Thanks for reaching out! We’ve received your message and will get back to you shortly', 'ivyforms'),
169 'try_adjusting_criteria' => __('Try adjusting your search criteria', 'ivyforms'),
170 'unable_to_add_data' => __('Unable to add data in ', 'ivyforms'),
171 'unable_to_save_data' => __('Unable to save data in ', 'ivyforms'),
172 'unknown_entity' => __('Unknown entityPageName:', 'ivyforms'),
173 'unsaved_changes' => __('You have unsaved changes. If you leave now, your changes will be lost.', 'ivyforms'),
174 ];
175 }
176
177 /**
178 * Returns the array for the "New Form" page strings
179 *
180 * @return mixed[]
181 */
182 public static function getNewFormStrings(): array
183 {
184 return [
185 'add_field' => __('Add Field', 'ivyforms'),
186 'add_option' => __('Add Option', 'ivyforms'),
187 'advanced' => __('Advanced', 'ivyforms'),
188 'address' => __('Address', 'ivyforms'),
189 'address_line_2' => __('Address Line 2', 'ivyforms'),
190 'build' => __('Build', 'ivyforms'),
191 'characters' => __('Characters', 'ivyforms'),
192 'checkbox' => __('Checkbox', 'ivyforms'),
193 'city' => __('City', 'ivyforms'),
194 'confirmation_label' => __('Confirmation Label', 'ivyforms'),
195 'confirmation_label_placeholder' => __('Confirm Email', 'ivyforms'),
196 'confirmation_placeholder' => __('Confirmation Placeholder', 'ivyforms'),
197 'confirmation_placeholder_placeholder' => __('Re-enter your email', 'ivyforms'),
198 'copy_label' => __(' (copy)', 'ivyforms'),
199 'country' => __('Country', 'ivyforms'),
200 'css_classes' => __('CSS Classes', 'ivyforms'),
201 'css_classes_placeholder' => __('Add custom CSS class', 'ivyforms'),
202 'css_classes_tooltip' => __('Add custom CSS classes to style this field', 'ivyforms'),
203 'custom_validation_message' => __('Custom Validation Message', 'ivyforms'),
204 'custom_validation_placeholder' => __('{{field_name}} is invalid', 'ivyforms'),
205 'default_value' => __('Default Value', 'ivyforms'),
206 'default_value_tooltip' => __('Set a default value for this field', 'ivyforms'),
207 'description' => __('Description', 'ivyforms'),
208 'description_message' => __('Description message', 'ivyforms'),
209 'dropdown' => __('Dropdown', 'ivyforms'),
210 'email' => __('Email', 'ivyforms'),
211 'empty_state_title' => __('Add a field to start building your form', 'ivyforms'),
212 'enable_email_confirmation' => __('Enable Email Confirmation', 'ivyforms'),
213 'enable_auto_country_detection' => __('Enable Auto Country Detection', 'ivyforms'),
214 'enter_description_here' => __('Enter description here', 'ivyforms'),
215 'enter_email_address' => __('Please enter a valid email address.', 'ivyforms'),
216 'enter_phone_number' => __('Please enter a valid phone number.', 'ivyforms'),
217 'enter_text_here' => __('Enter text here', 'ivyforms'),
218 'enter_tooltip_message_here' => __('Enter tooltip message here', 'ivyforms'),
219 'enter_valid_website' => __('Please enter a valid website URL.', 'ivyforms'),
220 'error_loading_form' => __('Error loading form', 'ivyforms'),
221 'failed_to_fetch_form' => __('Failed to fetch form', 'ivyforms'),
222 'failed_to_load_form' => __('Failed to load the selected form', 'ivyforms'),
223 'failed_to_tab_form' => __('Failed to load form', 'ivyforms'),
224 'field_desc_placeholder' => __('Write your field description here', 'ivyforms'),
225 'field_required' => __('field is required', 'ivyforms'),
226 'first_name' => __('First Name', 'ivyforms'),
227 'first_save_form' => __('Please save the form before previewing', 'ivyforms'),
228 'general' => __('General', 'ivyforms'),
229 'hide_confirmation_label' => __('Hide Confirmation Label', 'ivyforms'),
230 'hide_label' => __('Hide label', 'ivyforms'),
231 'label' => __('Label', 'ivyforms'),
232 'label_position' => __('Label Position', 'ivyforms'),
233 'label_position_default' => __('Default', 'ivyforms'),
234 'label_position_inside' => __('Inside', 'ivyforms'),
235 'label_position_left' => __('Left', 'ivyforms'),
236 'label_position_right' => __('Right', 'ivyforms'),
237 'label_position_top' => __('Top', 'ivyforms'),
238 'label_tooltip' => __('Label Tooltip', 'ivyforms'),
239 'last_name' => __('Last Name', 'ivyforms'),
240 'limit_maximum_length' => __('Limit Maximum Length', 'ivyforms'),
241 'maximum_length' => __('Maximum Length', 'ivyforms'),
242 'middle_name' => __('Middle Name', 'ivyforms'),
243 'name' => __('Name', 'ivyforms'),
244 'name_field' => __('Name Field', 'ivyforms'),
245 'name_field_1' => __('Name Field 1', 'ivyforms'),
246 'name_field_2' => __('Name Field 2', 'ivyforms'),
247 'name_field_3' => __('Name Field 3', 'ivyforms'),
248 'name_field_4' => __('Name Field 4', 'ivyforms'),
249 'name_field_5' => __('Name Field 5', 'ivyforms'),
250 'no_duplicates' => __('No Duplicates', 'ivyforms'),
251 'no_field_selected' => __('No field selected', 'ivyforms'),
252 'number' => __('Number', 'ivyforms'),
253 'number_format' => __('Format', 'ivyforms'),
254 'number_format_none' => __('None', 'ivyforms'),
255 'number_format_us_decimal' => __('US Style with Decimal (Ex: 123,456.00)', 'ivyforms'),
256 'number_format_us_int' => __('US Style without Decimal (Ex: 123,456,789)', 'ivyforms'),
257 'number_format_eu_decimal' => __('EU Style with Decimal (Ex: 123.456,00)', 'ivyforms'),
258 'number_format_eu_int' => __('EU Style without Decimal (Ex: 123.456.789)', 'ivyforms'),
259 'options' => __('Options', 'ivyforms'),
260 'options_list' => __('Options List', 'ivyforms'),
261 'paragraph' => __('Paragraph', 'ivyforms'),
262 'partonomic_name' => __('Partonomic Name', 'ivyforms'),
263 'phone' => __('Phone', 'ivyforms'),
264 'phone_format' => __('Phone Format', 'ivyforms'),
265 'phone_format_e164' => __('e.164', 'ivyforms'),
266 'phone_format_international' => __('international', 'ivyforms'),
267 'phone_format_national' => __('national', 'ivyforms'),
268 'placeholder' => __('Placeholder', 'ivyforms'),
269 'please_select_field' => __('Please select a field to view its options.', 'ivyforms'),
270 'preview_form' => __('Preview form', 'ivyforms'),
271 'radio_button' => __('Radio Button', 'ivyforms'),
272 'range_from' => __('Range from', 'ivyforms'),
273 'range_to' => __('Range to', 'ivyforms'),
274 'read_only' => __('Read Only', 'ivyforms'),
275 'required' => __('Required', 'ivyforms'),
276 'required_message' => __('Required message', 'ivyforms'),
277 'required_message_placeholder' => __('Write your field required message here', 'ivyforms'),
278 'results' => __('Results', 'ivyforms'),
279 'rows' => __('rows', 'ivyforms'),
280 'select_form' => __('Select a form', 'ivyforms'),
281 'show_layouts' => __('Show Layouts', 'ivyforms'),
282 'smart_logic' => __('Smart Logic', 'ivyforms'),
283 'state' => __('State / Province', 'ivyforms'),
284 'step' => __('Step', 'ivyforms'),
285 'street_address' => __('Street Address', 'ivyforms'),
286 'style' => __('Style', 'ivyforms'),
287 'sublabel' => __('Sublabel', 'ivyforms'),
288 'submit' => __('Submit', 'ivyforms'),
289 'support' => __('Support', 'ivyforms'),
290 'text' => __('Text', 'ivyforms'),
291 'text_area_size' => __('Text area size', 'ivyforms'),
292 'this_field_is_required' => __('This field is required', 'ivyforms'),
293 'validation' => __('Validation', 'ivyforms'),
294 'website' => __('Website/Url', 'ivyforms'),
295 'zip' => __('Zip / Postal Code', 'ivyforms'),
296 ];
297 }
298
299 /**
300 * Returns the array for the "Settings form builder" page strings
301 *
302 * @return mixed[]
303 */
304 public static function getSettingsFormBuilderStrings(): array
305 {
306 return [
307 'after_form_submission' => __('After Form Submission:', 'ivyforms'),
308 'are_you_sure_delete_field' => __('Are you sure you want to Delete this Field?', 'ivyforms'),
309 'are_you_sure_delete_notification' => __('Are you sure you want to Delete this Notification?', 'ivyforms'),
310 'blank_form' => __('Blank form', 'ivyforms'),
311 'confirmations' => __('Confirmations', 'ivyforms'),
312 'create_confirmation' => __('Confirmation created successfully', 'ivyforms'),
313 'create_notification' => __('Notification created successfully', 'ivyforms'),
314 'duplicated_notification' => __('Notification duplicated successfully', 'ivyforms'),
315 'empty_state_notification_subtitle'=> __('Once you create a notification it will appear here', 'ivyforms'),
316 'empty_state_notification_title' => __('We didn\'t find any notifications', 'ivyforms'),
317 'enable_confirmation' => __('Enable or disable this confirmation', 'ivyforms'),
318 'enable_general' => __('Enable or disable this form', 'ivyforms'),
319 'enable_notification' => __('Enable or disable this notification', 'ivyforms'),
320 'enabled_status' => __('Enabled', 'ivyforms'),
321 'error_creating_confirmation' => __('Error creating confirmation:', 'ivyforms'),
322 'error_creating_notification' => __('Error creating notification:', 'ivyforms'),
323 'error_deleting_notification' => __('Error deleting notification:', 'ivyforms'),
324 'error_duplicate_confirmation' => __('Error duplicating confirmation:', 'ivyforms'),
325 'error_duplicate_notification' => __('Error duplicating notification:', 'ivyforms'),
326 'error_loading_data_confirmation' => __('Error loading data:', 'ivyforms'),
327 'error_loading_notification' => __('Error loading notification:', 'ivyforms'),
328 'error_save_form' => __('Error saving form:', 'ivyforms'),
329 'error_saving_notification' => __('Error saving notification:', 'ivyforms'),
330 'error_to_update_confirmation' => __('Error updating confirmation', 'ivyforms'),
331 'error_updating_notification' => __('Error updating notification:', 'ivyforms'),
332 'example' => __('example', 'ivyforms'),
333 'failed_to_create_confirmation' => __('Failed to create confirmation.', 'ivyforms'),
334 'failed_to_create_default_notification'=> __('Failed to create default notification', 'ivyforms'),
335 'failed_to_create_notification' => __('Failed to create notification', 'ivyforms'),
336 'failed_to_delete_notification' => __('Failed to delete notification', 'ivyforms'),
337 'failed_to_duplicate_confirmation' => __('Failed to duplicate confirmation:', 'ivyforms'),
338 'failed_to_duplicate_notification' => __('Failed to duplicate notification', 'ivyforms'),
339 'failed_to_fetch_notification' => __('Failed to fetch notification:', 'ivyforms'),
340 'failed_to_load_confirmation' => __('Failed to load confirmation:', 'ivyforms'),
341 'failed_to_load_notification' => __('Failed to load notification:', 'ivyforms'),
342 'failed_to_save_form' => __('Failed to save form', 'ivyforms'),
343 'failed_to_update_confirmation' => __('Failed to update confirmation', 'ivyforms'),
344 'failed_to_update_notification' => __('Failed to update notification', 'ivyforms'),
345 'filtered_data_notification' => __('Filtered Data:', 'ivyforms'),
346 'form_description' => __('Write your description here', 'ivyforms'),
347 'form_saved' => __('Form saved successfully!', 'ivyforms'),
348 'form_updated' => __('Form updated successfully!', 'ivyforms'),
349 'general_settings' => __('General Settings', 'ivyforms'),
350 'hide_form' => __('Hide Form', 'ivyforms'),
351 'message' => __('Message', 'ivyforms'),
352 'new_notification' => __('New Notification', 'ivyforms'),
353 'notification_deleted' => __('Notification deleted successfully', 'ivyforms'),
354 'notification_duplicated' => __('Notification duplicated successfully', 'ivyforms'),
355 'notification_loaded' => __('Notifications loaded successfully', 'ivyforms'),
356 'notifications' => __('Notifications', 'ivyforms'),
357 'receiver' => __('Receiver', 'ivyforms'),
358 'redirect_to_custom_url' => __('Redirect to Custom URL', 'ivyforms'),
359 'redirect_to_page' => __('Redirect to Page', 'ivyforms'),
360 'reset_form' => __('Reset Form', 'ivyforms'),
361 'search_notifications' => __('Search Notifications', 'ivyforms'),
362 'select_page' => __('Select a page', 'ivyforms'),
363 'enter_url' => __('Enter URL', 'ivyforms'),
364 'send_from' => __('Send from', 'ivyforms'),
365 'send_to' => __('Send to', 'ivyforms'),
366 'show_form_description' => __('Show the form description', 'ivyforms'),
367 'show_form_title' => __('Show the form title', 'ivyforms'),
368 'store_entries_db' => __('Store entries in Database', 'ivyforms'),
369 'subject' => __('Subject', 'ivyforms'),
370 'success_message' => __('Success Message', 'ivyforms'),
371 'success_message_tooltip' => __('Message displayed to the user after a successful form submission.', 'ivyforms'),
372 'time' => __('Time', 'ivyforms'),
373 'redirection_message' => __('Redirection Message', 'ivyforms'),
374 'redirection_message_tooltip' => __('Message displayed to the user during redirection to the selected page.', 'ivyforms'),
375 'redirection_message_url' => __('Redirection Message (Custom URL)', 'ivyforms'),
376 'redirection_message_url_tooltip' => __('Message displayed to the user while being redirected to the specified URL.', 'ivyforms'),
377 'overridden_warn' => __('HTML formatting may be overridden by plain text formatting upon switching between modes', 'ivyforms'),
378 'update_confirmation' => __('Confirmation updated successfully', 'ivyforms'),
379 'update_notification' => __('Notification updated successfully', 'ivyforms'),
380 'updated_form' => __('Updated form', 'ivyforms'),
381 'unexpected_response_structure' => __('Unexpected response structure', 'ivyforms'),
382 'updating_duplicated_confirmation' => __('Confirmation duplicated successfully', 'ivyforms'),
383 ];
384 }
385
386 /**
387 * Returns the array for the "Results Form Builder" page strings
388 *
389 * @return mixed[]
390 */
391 public static function getResultsFormBuilderStrings(): array
392 {
393 return [
394 'insights' => __('Insights', 'ivyforms'),
395 'report' => __('Report', 'ivyforms'),
396 ];
397 }
398
399 /**
400 * Returns the array for the "Empty States" parts strings
401 *
402 * @return mixed[]
403 */
404 public static function getEmptyStatesStrings(): array
405 {
406 return [
407 'clipboard_api_not_supported' => __('Clipboard API not supported', 'ivyforms'),
408 'collapse' => __('Collapse', 'ivyforms'),
409 'copy_shortcode' => __('Copy shortcode', 'ivyforms'),
410 'dark_theme' => __('Dark Theme', 'ivyforms'),
411 'expand_collapse' => __('Expand or collapse the content area to make better use of your screen space.', 'ivyforms'),
412 'form_id_not_found' => __('Form ID not found, please save the form first.', 'ivyforms'),
413 'full_screen' => __('Full Screen', 'ivyforms'),
414 'get_help' => __('Get help or contact our support team for assistance with any issues or questions.', 'ivyforms'),
415 'light_theme' => __('Light Theme', 'ivyforms'),
416 'shortcode_copied' => __('Shortcode copied!', 'ivyforms'),
417 ];
418 }
419
420 /**
421 * Returns the array for the "Entries" page strings
422 *
423 * @return mixed[]
424 */
425 public static function getEntriesStrings(): array
426 {
427 return [
428 'all_entries' => __('All Entries', 'ivyforms'),
429 'are_you_sure_delete_entries' => __('Are you sure you want to Delete these Entries?', 'ivyforms'),
430 'are_you_sure_delete_entry' => __('Are you sure you want to Delete this Entry?', 'ivyforms'),
431 'browser' => __('Browser', 'ivyforms'),
432 'date_submitted' => __('Date Submitted', 'ivyforms'),
433 'entries' => __('Entries', 'ivyforms'),
434 'entries_deleted' => __('Entries deleted successfully', 'ivyforms'),
435 'empty_state_all_entries_title' => __('We didn\'t find any entries', 'ivyforms'),
436 'empty_state_all_entries_subtitle' => __('Once your forms start receiving submissions, entries will appear here.', 'ivyforms'),
437 'empty_state_filters_all_entries_title' => __('Oops! Looks like there’s nothing here.', 'ivyforms'),
438 'empty_state_filters_all_entries_subtitle' => __('Try again with different keywords or filters.', 'ivyforms'),
439 'entry' => __('Entry', 'ivyforms'),
440 'entry_deleted' => __('Entry deleted successfully', 'ivyforms'),
441 'entry_id' => __('Entry ID', 'ivyforms'),
442 'entry_read' => __('Entry marked as read', 'ivyforms'),
443 'entry_starred' => __('Entry moved to favorites', 'ivyforms'),
444 'entry_unread' => __('Entry marked as unread', 'ivyforms'),
445 'entry_unstarred' => __('Entry removed from favorites', 'ivyforms'),
446 'entry_updated' => __('Entry updated successfully', 'ivyforms'),
447 'error_deleting_entries' => __('Error deleting entries:', 'ivyforms'),
448 'error_fetching_entries' => __('Error fetching entries:', 'ivyforms'),
449 'error_updating_entry' => __('Error updating entry:', 'ivyforms'),
450 'failed_to_delete_entry' => __('Failed to delete entry:', 'ivyforms'),
451 'failed_to_delete_entries' => __('Failed to delete entries:', 'ivyforms'),
452 'failed_to_get_entry' => __('Failed to get entry:', 'ivyforms'),
453 'failed_to_update_entry' => __('Failed to update entry:', 'ivyforms'),
454 'failed_to_update_entry_status' => __('Failed to update entry status', 'ivyforms'),
455 'failed_to_star_entry' => __('Failed to favorite entry', 'ivyforms'),
456 'failed_to_unstar_entry' => __('Failed to unfavorite entry', 'ivyforms'),
457 'form_name' => __('Form Name', 'ivyforms'),
458 'general_details' => __('General Details', 'ivyforms'),
459 'ip_address' => __('IP Address', 'ivyforms'),
460 'show_all_entries' => __('Show/Hide All', 'ivyforms'),
461 'show_empty_fields' => __('Show Empty Fields', 'ivyforms'),
462 'status' => __('Status', 'ivyforms'),
463 'submitted_on' => __('Submitted On', 'ivyforms'),
464 'unknown' => __('Unknown', 'ivyforms'),
465 'user_information' => __('User Information', 'ivyforms'),
466 'user_ip' =>__('User IP', 'ivyforms'),
467 ];
468 }
469
470 /**
471 * Returns the array for the "Integrations" page strings
472 *
473 * @return mixed[]
474 */
475 public static function getIntegrationsStrings(): array
476 {
477 return [
478 'integrations' => __('Integrations', 'ivyforms'),
479 ];
480 }
481
482 /**
483 * Returns the array for the "Security" page strings
484 *
485 * @return mixed[]
486 */
487 public static function getSecurityStrings(): array
488 {
489 return [
490 'browser_default' => __('Browser default', 'ivyforms'),
491 'configure_now' => __('Configure now', 'ivyforms'),
492 'captcha_secret_key' => __('Secret Key', 'ivyforms'),
493 'captcha_site_key' => __('Site Key', 'ivyforms'),
494 'enter_secret_key' => __('Enter secret key', 'ivyforms'),
495 'enter_site_key' => __('Enter site key', 'ivyforms'),
496 'enable_honeypot_protection' => __('Enable Honeypot Protection', 'ivyforms'),
497 'enter_hcaptcha_secret_key' => __('Enter hCaptcha secret key', 'ivyforms'),
498 'enter_hcaptcha_site_key' => __('Enter hCaptcha site key', 'ivyforms'),
499 'enter_turnstile_secret_key' => __('Enter Turnstile secret key', 'ivyforms'),
500 'enter_turnstile_site_key' => __('Enter Turnstile site key', 'ivyforms'),
501 'honeypot_protection' => __('Honeypot Protection', 'ivyforms'),
502 'honeypot_protection_description' => __('Honeypot protection adds hidden fields to your forms to catch spam bots.', 'ivyforms'),
503 'not_a_robot' => __('I\'m not a robot', 'ivyforms'),
504 'no_captcha_provider' => __('No CAPTCHA provider specified', 'ivyforms'),
505 'protected_by' => __('protected by', 'ivyforms'),
506 'privacy' => __('Privacy', 'ivyforms'),
507 'recaptcha' => __('reCaptcha', 'ivyforms'),
508 'recaptcha_configured' => __('reCAPTCHA is configured and ready to use', 'ivyforms'),
509 'recaptcha_invisible' => __('Invisible reCAPTCHA', 'ivyforms'),
510 'recaptcha_language' => __('reCAPTCHA Language', 'ivyforms'),
511 'recaptcha_type' => __('reCAPTCHA Type', 'ivyforms'),
512 'recaptcha_v2' => __('reCAPTCHA v2', 'ivyforms'),
513 'recaptcha_v3' => __('reCAPTCHA v3', 'ivyforms'),
514 'recaptcha_verification' => __('reCAPTCHA Verification', 'ivyforms'),
515 'recaptcha_v2_description' => __('I\'m not a robot checkbox verification', 'ivyforms'),
516 'recaptcha_v3_description' => __('Invisible background verification', 'ivyforms'),
517 'recaptcha_invisible_description' => __('Invisible verification', 'ivyforms'),
518 'recaptcha_not_configured' => __('reCAPTCHA needs to be configured in security settings first.', 'ivyforms'),
519 'recaptcha_required' => __('reCAPTCHA verification is required.', 'ivyforms'),
520 'recaptcha_instruction' => __('To use the reCAPTCHA field, you first need to generate a free site key and secret key via reCAPTCHA', 'ivyforms'),
521 // Validation messages
522 'recaptcha_keys_required' => __('Both site key and secret key are required', 'ivyforms'),
523 'recaptcha_invalid_key_format' => __('Invalid key format. Please check your reCAPTCHA keys', 'ivyforms'),
524 'recaptcha_validation_network_error' => __('Unable to validate keys due to network error', 'ivyforms'),
525 'recaptcha_invalid_secret_key' => __('Invalid secret key. Please verify your reCAPTCHA secret key', 'ivyforms'),
526 'recaptcha_invalid_site_key' => __('Invalid site key. Please verify your reCAPTCHA site key', 'ivyforms'),
527 'recaptcha_keys_validated' => __('reCAPTCHA keys validated successfully', 'ivyforms'),
528 'recaptcha_keys_format_valid' => __('reCAPTCHA keys format appears valid', 'ivyforms'),
529 'recaptcha_settings_incomplete' => __('reCAPTCHA settings are incomplete', 'ivyforms'),
530 'recaptcha_invalid_type' => __('Invalid reCAPTCHA type selected', 'ivyforms'),
531 'recaptcha_validation_failed' => __('reCAPTCHA validation failed. Settings not saved', 'ivyforms'),
532 'recaptcha_credentials_valid' => __('Credentials are valid', 'ivyforms'),
533 'recaptcha_unable_to_validate' => __('Unable to validate credentials with Google reCAPTCHA service', 'ivyforms'),
534 // Exception messages
535 'recaptcha_verification_required' => __('reCAPTCHA verification required.', 'ivyforms'),
536 'recaptcha_verification_failed' => __('reCAPTCHA verification failed. Please try again.', 'ivyforms'),
537 // Google API error messages
538 'recaptcha_error_missing_secret' => __('The secret parameter is missing.', 'ivyforms'),
539 'recaptcha_error_invalid_secret' => __('The secret parameter is invalid or malformed.', 'ivyforms'),
540 'recaptcha_error_missing_response' => __('The response parameter is missing.', 'ivyforms'),
541 'recaptcha_error_invalid_response' => __('The response parameter is invalid or malformed.', 'ivyforms'),
542 'recaptcha_error_bad_request' => __('The request is invalid or malformed.', 'ivyforms'),
543 'recaptcha_error_timeout_duplicate' => __('The response is no longer valid: either is too old or has been used previously.', 'ivyforms'),
544 'recaptcha_error_unknown' => __('Unknown error: %s', 'ivyforms'),
545 // Test token generation
546 'test_token_prefix' => __('test-token', 'ivyforms'),
547 // Frontend error messages
548 'recaptcha_not_initialized' => __('reCAPTCHA not initialized', 'ivyforms'),
549 'recaptcha_widget_not_initialized' => __('Invisible reCAPTCHA widget not initialized', 'ivyforms'),
550 'recaptcha_execution_timeout' => __('reCAPTCHA execution timeout', 'ivyforms'),
551 'recaptcha_execute_not_supported' => __('Execute is only supported for v3 and invisible reCAPTCHA', 'ivyforms'),
552 'recaptcha_widget_not_initialized_field' => __('reCAPTCHA widget not initialized', 'ivyforms'),
553 'recaptcha_v3_failed' => __('reCAPTCHA v3 execution failed', 'ivyforms'),
554 'recaptcha_init_failed' => __('Failed to initialize reCAPTCHA', 'ivyforms'),
555 'recaptcha_initialization_failed' => __('reCAPTCHA initialization failed', 'ivyforms'),
556 'recaptcha_invisible_failed' => __('reCAPTCHA invisible execution failed', 'ivyforms'),
557 'recaptcha_complete_verification' => __('Please complete the reCAPTCHA verification', 'ivyforms'),
558 'unknown_captcha_provider' => __('Unknown CAPTCHA provider', 'ivyforms'),
559 'unknown_captcha_provider_with_name' => __('Unknown CAPTCHA provider: %s', 'ivyforms'),
560 'terms' => __('Terms', 'ivyforms'),
561 ];
562 }
563
564 /**
565 * Returns the array for the entities modal
566 *
567 * @return mixed[]
568 */
569 public static function getEntityFormStrings(): array
570 {
571 return [
572 'duplicate' => __('Duplicate', 'ivyforms'),
573 'loader_message' => __('Please Wait', 'ivyforms'),
574 'visible' => __('Visible', 'ivyforms'),
575 ];
576 }
577
578 /**
579 * Returns the array for the components
580 *
581 * @return mixed[]
582 */
583 public static function getComponentsStrings(): array
584 {
585 return [
586 'action_button' => __('Action button', 'ivyforms'),
587 'address_fields' => __('Address Fields', 'ivyforms'),
588 'add_option' => __('Add Option', 'ivyforms'),
589 'add_star' => __('Add star', 'ivyforms'),
590 'add_subfolder' => __('Add subfolder', 'ivyforms'),
591 'admin_email' => __('Admin Email', 'ivyforms'),
592 'allow_search_options' => __('Allow users to search options.', 'ivyforms'),
593 'adjusting_your_search_phone' => __('Try adjusting your search to find what you\'re looking for.', 'ivyforms'),
594 'all_data' => __('All data', 'ivyforms'),
595 'bulk_edit' => __('Bulk Edit', 'ivyforms'),
596 'clear' => __('Clear', 'ivyforms'),
597 'configure_options_field' => __('Configure the options for this field.', 'ivyforms'),
598 'default' => __('Default', 'ivyforms'),
599 'date' => __('Date', 'ivyforms'),
600 'download' => __('Download', 'ivyforms'),
601 'edit' => __('Edit', 'ivyforms'),
602 'entry_id' => __('Entry ID', 'ivyforms'),
603 'enable_search' => __('Enable Search', 'ivyforms'),
604 'export' => __('Export', 'ivyforms'),
605 'fields' => __('Fields', 'ivyforms'),
606 'font_family' => __('Font Family Select', 'ivyforms'),
607 'go_to' => __('Go to', 'ivyforms'),
608 'header_button' => __('Header button', 'ivyforms'),
609 'heading_level' => __('Heading Level Select', 'ivyforms'),
610 'html' => __('HTML', 'ivyforms'),
611 'image_url' => __('Image Url', 'ivyforms'),
612 'import' => __('Import', 'ivyforms'),
613 'indicator_button' => __('Indicator button', 'ivyforms'),
614 'insert_image_by_url' => __('Insert Image By URL', 'ivyforms'),
615 'insert_placeholders' => __('Insert Placeholders', 'ivyforms'),
616 'items_per_page' => __('Items per page', 'ivyforms'),
617 'locate' => __('Locate', 'ivyforms'),
618 'mark_as_read' => __('Mark as read', 'ivyforms'),
619 'mark_as_spam' => __('Mark as spam', 'ivyforms'),
620 'mark_as_unread' => __('Mark as unread', 'ivyforms'),
621 'move_down' => __('Move down', 'ivyforms'),
622 'move_to_folder' => __('Move to folder', 'ivyforms'),
623 'move_to_folder_clicked' => __('Move to folder clicked', 'ivyforms'),
624 'move_up' => __('Move up', 'ivyforms'),
625 'none' => __('None', 'ivyforms'),
626 'next' => __('Next', 'ivyforms'),
627 'no_fields_available' => __('No fields available', 'ivyforms'),
628 'no_placeholders_available' => __('No placeholders available', 'ivyforms'),
629 'off' => __('Off', 'ivyforms'),
630 'on' => __('On', 'ivyforms'),
631 'open_in_new_tab' => __('Open in new tab', 'ivyforms'),
632 'option1' => __('option1', 'ivyforms'),
633 'option2' => __('option2', 'ivyforms'),
634 'option_1' => __('Option 1', 'ivyforms'),
635 'option_2' => __('Option 2', 'ivyforms'),
636 'option_button' => __('Option button', 'ivyforms'),
637 'option_label' => __('Option Label', 'ivyforms'),
638 'option_value' => __('Option Value', 'ivyforms'),
639 'option_list' => __('Option List:', 'ivyforms'),
640 'pagination_navigation' => __('Pagination navigation', 'ivyforms'),
641 'post_id' => __('Post ID', 'ivyforms'),
642 'post_permalink' => __('Post Permalink', 'ivyforms'),
643 'post_title' => __('Post Title', 'ivyforms'),
644 'preview' => __('Preview', 'ivyforms'),
645 'previous' => __('Previous', 'ivyforms'),
646 'print' => __('Print', 'ivyforms'),
647 'published' => __('Published', 'ivyforms'),
648 'randomize_order_options' => __('Randomize the order of options each time.', 'ivyforms'),
649 'referer_url' => __('Referer URL', 'ivyforms'),
650 'remove_star' => __('Remove star', 'ivyforms'),
651 'rename' => __('Rename', 'ivyforms'),
652 'resend_notification' => __('Resend notification', 'ivyforms'),
653 'reset' => __('Reset', 'ivyforms'),
654 'restore' => __('Restore', 'ivyforms'),
655 'save_as_draft' => __('Save as draft', 'ivyforms'),
656 'search' => __('Search', 'ivyforms'),
657 'search_placeholder' => __('Search Placeholder', 'ivyforms'),
658 'select' => __('Select', 'ivyforms'),
659 'show_all' => __('Show all', 'ivyforms'),
660 'show_values' => __('Show Values', 'ivyforms'),
661 'shuffle_options' => __('Shuffle the available options', 'ivyforms'),
662 'site_title' => __('Site Title', 'ivyforms'),
663 'site_url' => __('Site URL', 'ivyforms'),
664 'sort_by' => __('Sort by', 'ivyforms'),
665 'theme_switch' => __('Theme Switch', 'ivyforms'),
666 'toggle_switch' => __('Toggle Switch', 'ivyforms'),
667 'tooltip' => __('Tooltip', 'ivyforms'),
668 'total' => __('Total', 'ivyforms'),
669 'translate' => __('Translate', 'ivyforms'),
670 'trash' => __('Trash', 'ivyforms'),
671 'unpublished' => __('Unpublished', 'ivyforms'),
672 'unread' => __('Unread', 'ivyforms'),
673 'unstarred' => __('Unstarred', 'ivyforms'),
674 'upload_image' => __('Upload Image', 'ivyforms'),
675 'user_agent' => __('User Agent', 'ivyforms'),
676 'user_email' => __('User Email', 'ivyforms'),
677 'user_first_name' => __('User First Name', 'ivyforms'),
678 'user_id' => __('User ID', 'ivyforms'),
679 'user_ip' => __('User IP', 'ivyforms'),
680 'user_last_name' => __('User Last Name', 'ivyforms'),
681 'user_name' => __('User Name', 'ivyforms'),
682 'visual' => __('Visual', 'ivyforms'),
683 'read' => __('Read', 'ivyforms'),
684 'with_icons' => __('With Icons', 'ivyforms'),
685 'with_image' => __('With Image', 'ivyforms'),
686 ];
687 }
688
689 /**
690 * Returns the array for the exception strings
691 *
692 * @return mixed[]
693 */
694 public static function getExceptionStrings(): array {
695 return [
696 'active_notif_not_found' => __('Active notifications not found.', 'ivyforms'),
697 'autoload_not_found' => __('Autoload file not found.', 'ivyforms'),
698 'confirmation_id_required' => __('Confirmation ID is required.', 'ivyforms'),
699 'confirmation_not_found' => __('Confirmation not found.', 'ivyforms'),
700 'container_not_found' => __('Container file not found.', 'ivyforms'),
701 'duplicate_value_exists' => __('This value must be unique. Please use a different value.', 'ivyforms'),
702 'entry_id_required' => __('Entry ID is required.', 'ivyforms'),
703 'entry_not_found' => __('Entry not found.', 'ivyforms'),
704 'error_log_failed_send' => __('Failed to send email notification for form ID: %s', 'ivyforms'),
705 'error_log_invalid_email' => __('Invalid sender or receiver email after placeholder replacement. Sender: %s Receiver: %s', 'ivyforms'),
706 'failed_delete_by_foreign_key' => __('Failed to delete records with foreign key %s from table %s', 'ivyforms'),
707 'failed_delete_by_foreign_keys' => __('Failed to delete records with foreign keys %s from table %s', 'ivyforms'),
708 'failed_delete_by_id' => __('Failed to delete record with ID %s from table %s', 'ivyforms'),
709 'failed_check_duplicates' => __('Failed to check duplicates: %s', 'ivyforms'),
710 'failed_delete_by_ids' => __('Failed to delete records with IDs %s from table %s', 'ivyforms'),
711 'field_id_required' => __('Field ID is required.', 'ivyforms'),
712 'form_id_required' => __('Form ID is required.', 'ivyforms'),
713 'form_not_found' => __('Form not found.', 'ivyforms'),
714 'id_positive_integer' => __('ID must be a positive integer.', 'ivyforms'),
715 'int_positive_integer' => __('Value must be a positive integer.', 'ivyforms'),
716 'invalid_column_name_deletion' => __('Invalid column name provided for deletion.', 'ivyforms'),
717 'invalid_entry_id' => __('Invalid entry ID.', 'ivyforms'),
718 'invalid_field_id' => __('Invalid field ID.', 'ivyforms'),
719 'invalid_foreign_column' => __('Invalid foreign column provided.', 'ivyforms'),
720 'invalid_form_data' => __('Invalid form data.', 'ivyforms'),
721 'invalid_form_id' => __('Invalid Form ID.', 'ivyforms'),
722 'invalid_id' => __('Invalid ID.', 'ivyforms'),
723 'invalid_nonce' => __('Invalid nonce.', 'ivyforms'),
724 'invalid_request_data' => __('Invalid request data.', 'ivyforms'),
725 'ivyforms_not_installed' => __('IvyForms plugin is not installed or activated', 'ivyforms'),
726 'no_confirmation_ids_provided' => __('No confirmation IDs provided for deletion.', 'ivyforms'),
727 'no_entry_ids_provided' => __('No entry IDs provided for deletion.', 'ivyforms'),
728 'no_field_ids_provided' => __('No field IDs provided for deletion.', 'ivyforms'),
729 'no_form_ids_provided' => __('No form IDs provided for deletion.', 'ivyforms'),
730 'no_notification_ids_provided' => __('No notification IDs provided for deletion.', 'ivyforms'),
731 'notification_id_required' => __('Notification ID is required.', 'ivyforms'),
732 'notification_ids_required' => __('Notification IDs are required and must be an array.', 'ivyforms'),
733 'notification_not_found' => __('Notification not found.', 'ivyforms'),
734 'parentId_positive_integer' => __('The parentId must be a positive integer or null.', 'ivyforms'),
735 'property_positive_integer' => __('The property must be a positive integer.', 'ivyforms'),
736 'please_enter_a_url' => __('Please enter a URL.', 'ivyforms'),
737 'please_enter_a_valid_url' => __('Please enter a valid URL.', 'ivyforms'),
738 'please_select_a_page' => __('Please select a page.', 'ivyforms'),
739 'table_name_not_provided' => __('Table name is not provided.', 'ivyforms'),
740 'unable_find_by_id' => __('Unable to find by id in ', 'ivyforms'),
741 'unable_get_entry_fields' => __('Unable to fetch entry fields in ', 'ivyforms'),
742 'unable_get_form_names' => __('Unable to fetch form names for entries in ', 'ivyforms'),
743 'unable_search_entries' => __('Unable to search entries in ', 'ivyforms'),
744 'unable_to_add_data' => __('Unable to add data in ', 'ivyforms'),
745 'unable_update_data' => __('Unable to update data in ', 'ivyforms'),
746 'unable_update_starred' => __('Unable to update starred status in ', 'ivyforms'),
747 'unable_update_status' => __('Unable to update entry status in ', 'ivyforms'),
748 'unknown_error' => __('Unknown error', 'ivyforms'),
749 ];
750 }
751
752 /**
753 * Returns the array for the templates
754 *
755 * @return mixed[]
756 */
757 public static function getTemplateStrings(): array
758 {
759 return [
760 'contact_form' => __('Contact Form', 'ivyforms'),
761 'contact_form_desc' => __('A simple contact form with essential fields', 'ivyforms'),
762 'generate_with_ai' => __('Generate with AI', 'ivyforms'),
763 'generate_with_ai_desc' => __('Generate a form automatically with the help of AI.', 'ivyforms'),
764 'failed_to_create_template'=> __('Failed to create form from template.', 'ivyforms'),
765 'failed_to_fetch_template' => __('Failed to fetch templates', 'ivyforms'),
766 'no_templates_found' => __('No templates found', 'ivyforms'),
767 'required_template_id' => __('Template ID is required.', 'ivyforms'),
768 'select_a_template' => __('Select a template', 'ivyforms'),
769 'select_template_desc' => __('To get started quickly, you can pick from our ready-made template', 'ivyforms'),
770 'search_template' => __('Search a form template', 'ivyforms'),
771 'start_scratch' => __('Start from scratch', 'ivyforms'),
772 'start_with_blank_desc' => __('Start with a blank form and build it your way.', 'ivyforms'),
773 'template_not_found' => __('Template not found.', 'ivyforms'),
774 'template_fetch_error' => __('Template fetch error:', 'ivyforms'),
775 'use_this_template' => __('Use this template', 'ivyforms'),
776 ];
777 }
778 }
779