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

394 lines 23.7 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_cannot_be_undone' => __('This action cannot be undone.', 'ivyforms'),
30 'all_forms' => __('All Forms', 'ivyforms'),
31 'back' => __('Back', 'ivyforms'),
32 'cancel' => __('Cancel', 'ivyforms'),
33 'delete' => __('Delete', 'ivyforms'),
34 'empty_search_subtitle' => __('Try again with different keywords and filters', 'ivyforms'),
35 'empty_search_title' => __('Oops! Looks like there\'s nothing here!', 'ivyforms'),
36 'entries' => __('Entries', 'ivyforms'),
37 'form_desc' => __('Form Description', 'ivyforms'),
38 'form_duplicated' => __('Form duplicated successfully', 'ivyforms'),
39 'form_name' => __('Form Name', 'ivyforms'),
40 'form_updated' => __('Form updated successfully', 'ivyforms'),
41 'leave' => __('Leave', 'ivyforms'),
42 'name' => __('Name', 'ivyforms'),
43 'new_form' => __('New Form', 'ivyforms'),
44 'no_results_for' => __('No results found for', 'ivyforms'),
45 'ok' => __('OK', 'ivyforms'),
46 'save' => __('Save', 'ivyforms'),
47 'security' => __('Security', 'ivyforms'),
48 'settings' => __('Settings', 'ivyforms'),
49 'starred' => __('Starred', 'ivyforms'),
50 'status' => __('Status', 'ivyforms'),
51 'stay' => __('Stay', 'ivyforms'),
52 'try_adjusting_search' => __('Try adjusting your search to find what you are looking for.', 'ivyforms'),
53 'update' => __('Update', 'ivyforms'),
54 ];
55 }
56
57 /**
58 * Returns the array for the settings strings
59 *
60 * @return mixed[]
61 */
62 public static function getSettingsStrings(): array
63 {
64 return [
65 'activation_activated' => __('Plugin has been activated', 'ivyforms'),
66 'activation_deactivated' => __('Plugin has been deactivated', 'ivyforms'),
67 'activation_settings_domains_limit' => __('You have reached maximum number of registered domains', 'ivyforms'),
68 'activation_settings_hidden_code' => __('Your purchase code has been hidden for security reasons. You can find it on your store page', 'ivyforms'),
69 'activation_settings_invalid_code' => __('The purchase code is invalid or it has expired', 'ivyforms'),
70 ];
71 }
72
73 /**
74 * Returns the array for the dashboard strings
75 *
76 * @return mixed[]
77 */
78 public static function getDashboardStrings(): array
79 {
80 return [
81 'dashboard' => __('Dashboard', 'ivyforms'),
82 ];
83 }
84
85 /**
86 * Returns the array for the "All Forms" page strings
87 *
88 * @return mixed[]
89 */
90 public static function getAllFormsStrings(): array
91 {
92 return [
93 'action_undone' => __('This action can\'t be undone', 'ivyforms'),
94 'actions' => __('Actions', 'ivyforms'),
95 'admin_notification_email' => __('Admin Notification Email', 'ivyforms'),
96 'are_you_sure_delete_form' => __('Are you sure you want to Delete this Form?', 'ivyforms'),
97 'are_you_sure_delete_forms' => __('Are you sure you want to Delete these Forms?', 'ivyforms'),
98 'author' => __('Author', 'ivyforms'),
99 'cancel' => __('Cancel', 'ivyforms'),
100 'close' => __('Close', 'ivyforms'),
101 'copied_shortcode' => __('Copied shortcode to clipboard', 'ivyforms'),
102 'copy_shorcode_table_form' => __('Copy shortcode for the form', 'ivyforms'),
103 'date_created' => __('Date Created', 'ivyforms'),
104 'date_edited' => __('Date Edited', 'ivyforms'),
105 'date_filters' => __('Date filter for all forms', 'ivyforms'),
106 'delete' => __('Delete', 'ivyforms'),
107 'delete_form' => __('Are you sure you want to Delete this Form?', 'ivyforms'),
108 'duplicate_form' => __('Duplicate this Form?', 'ivyforms'),
109 'duplicate_form_subtitle' => __('An exact copy will be added to your forms.', 'ivyforms'),
110 'duplicate_notification' => __('Duplicate this Notification?', 'ivyforms'),
111 'duplicate_notification_subtitle'=> __('An exact copy will be added to your notifications.', 'ivyforms'),
112 'duplicated_failed' => __('Failed to duplicate form', 'ivyforms'),
113 'edit_columns' => __('Select the columns to show in the table', 'ivyforms'),
114 'edit_table' => __('Edit Table', 'ivyforms'),
115 'empty_state_all_forms_subtitle' => __('Once you create a form it will appear here', 'ivyforms'),
116 'empty_state_all_forms_title' => __('We didn\'t find any forms', 'ivyforms'),
117 'error_deleting_form' => __('Error deleting form:', 'ivyforms'),
118 'error_deleting_forms' => __('Error deleting forms:', 'ivyforms'),
119 'error_duplicating_forms' => __('Error duplicating form:', 'ivyforms'),
120 'error_fetching_forms' => __('Error fetching forms:', 'ivyforms'),
121 'error_refreshing' => __('Error refreshing data', 'ivyforms'),
122 'error_updating_forms' => __('Error updating form:', 'ivyforms'),
123 'failed_to_create_form' => __('Failed to create form.', 'ivyforms'),
124 'failed_to_delete_form' => __('Failed to delete form:', 'ivyforms'),
125 'failed_to_delete_forms' => __('Failed to delete forms:', 'ivyforms'),
126 'failed_to_duplicate_form' => __('Failed to duplicate form.', 'ivyforms'),
127 'failed_to_update_form' => __('Failed to update form', 'ivyforms'),
128 'filters' => __('Filters for all forms', 'ivyforms'),
129 'flag' => __('Country flag icon', 'ivyforms'),
130 'form' => __('Form', 'ivyforms'),
131 'form_deleted' => __('Form deleted successfully', 'ivyforms'),
132 'form_duplicated' => __('Form duplicated successfully', 'ivyforms'),
133 'form_loaded' => __('Form loaded successfully', 'ivyforms'),
134 'forms_deleted' => __('Forms deleted successfully', 'ivyforms'),
135 'get_current_state_err' => __('The getCurrentState method must be implemented by the store that uses this handler:', 'ivyforms'),
136 'id' => __('ID', 'ivyforms'),
137 'menu_button_element_not_found' => __('Menu button element not found', 'ivyforms'),
138 'reset_filters' => __('Reset filters', 'ivyforms'),
139 'select_all_forms' => __('Select All Forms', 'ivyforms'),
140 'select_form_header' => __('Select Form', 'ivyforms'),
141 'shortcode' => __('Shortcode', 'ivyforms'),
142 'show_all_forms' => __('Show/Hide All', 'ivyforms'),
143 'status_switch' => __('Switch to publish or unpublish the form', 'ivyforms'),
144 'thanks_reaching' => __('Thanks for reaching out! We’ve received your message and will get back to you shortly', 'ivyforms'),
145 'unable_to_add_data' => __('Unable to add data in ', 'ivyforms'),
146 'unable_to_save_data' => __('Unable to save data in ', 'ivyforms'),
147 'unknown_entity' => __('Unknown entityPageName:', 'ivyforms'),
148 'unsaved_changes' => __('You have unsaved changes. If you leave now, your changes will be lost.', 'ivyforms'),
149 ];
150 }
151
152 /**
153 * Returns the array for the "New Form" page strings
154 *
155 * @return mixed[]
156 */
157 public static function getNewFormStrings(): array
158 {
159 return [
160 'add_field' => __('Add Field', 'ivyforms'),
161 'advanced' => __('Advanced', 'ivyforms'),
162 'build' => __('Build', 'ivyforms'),
163 'checkbox' => __('Checkbox', 'ivyforms'),
164 'default_value' => __('Default Value', 'ivyforms'),
165 'dropdown' => __('Dropdown', 'ivyforms'),
166 'email' => __('Email', 'ivyforms'),
167 'empty_state_title' => __('Add a field to start building your form', 'ivyforms'),
168 'error_loading_form' => __('Error loading form', 'ivyforms'),
169 'failed_to_fetch_form' => __('Failed to fetch form', 'ivyforms'),
170 'failed_to_load_form' => __('Failed to load the selected form', 'ivyforms'),
171 'failed_to_tab_form' => __('Failed to load form', 'ivyforms'),
172 'first_save_form' => __('Please save the form before previewing', 'ivyforms'),
173 'general' => __('General', 'ivyforms'),
174 'label' => __('Label', 'ivyforms'),
175 'no_field_selected' => __('No field selected', 'ivyforms'),
176 'number' => __('Number', 'ivyforms'),
177 'options' => __('Options', 'ivyforms'),
178 'paragraph' => __('Paragraph', 'ivyforms'),
179 'phone' => __('Phone', 'ivyforms'),
180 'placeholder' => __('Placeholder', 'ivyforms'),
181 'please_select_field' => __('Please select a field to view its options.', 'ivyforms'),
182 'preview_form' => __('Preview form', 'ivyforms'),
183 'support' => __('Support', 'ivyforms'),
184 'radio_button' => __('Radio Button', 'ivyforms'),
185 'required' => __('Required', 'ivyforms'),
186 'results' => __('Results', 'ivyforms'),
187 'select_form' => __('Select a form', 'ivyforms'),
188 'smart_logic' => __('Smart Logic', 'ivyforms'),
189 'style' => __('Style', 'ivyforms'),
190 'submit' => __('Submit', 'ivyforms'),
191 'text' => __('Text', 'ivyforms'),
192 ];
193 }
194
195 /**
196 * Returns the array for the "Settings form builder" page strings
197 *
198 * @return mixed[]
199 */
200 public static function getSettingsFormBuilderStrings(): array
201 {
202 return [
203 'after_form_submission' => __('After Form Submission:', 'ivyforms'),
204 'are_you_sure_delete_field' => __('Are you sure you want to Delete this Field?', 'ivyforms'),
205 'are_you_sure_delete_notification' => __('Are you sure you want to Delete this Notification?', 'ivyforms'),
206 'blank_form' => __('Blank form', 'ivyforms'),
207 'confirmations' => __('Confirmations', 'ivyforms'),
208 'create_confirmation' => __('Confirmation created successfully', 'ivyforms'),
209 'create_notification' => __('Notification created successfully', 'ivyforms'),
210 'duplicated_notification' => __('Notification duplicated successfully', 'ivyforms'),
211 'empty_state_notification_subtitle'=> __('Once you create a notification it will appear here', 'ivyforms'),
212 'empty_state_notification_title' => __('We didn\'t find any notifications', 'ivyforms'),
213 'enable_confirmation' => __('Enable or disable this confirmation', 'ivyforms'),
214 'enable_general' => __('Enable or disable this form', 'ivyforms'),
215 'enable_notification' => __('Enable or disable this notification', 'ivyforms'),
216 'enabled_status' => __('Enabled', 'ivyforms'),
217 'error_creating_confirmation' => __('Error creating confirmation:', 'ivyforms'),
218 'error_creating_notification' => __('Error creating notification:', 'ivyforms'),
219 'error_deleting_notification' => __('Error deleting notification:', 'ivyforms'),
220 'error_duplicate_confirmation' => __('Error duplicating confirmation:', 'ivyforms'),
221 'error_duplicate_notification' => __('Error duplicating notification:', 'ivyforms'),
222 'error_loading_data_confirmation' => __('Error loading data:', 'ivyforms'),
223 'error_loading_notification' => __('Error loading notification:', 'ivyforms'),
224 'error_save_form' => __('Error saving form:', 'ivyforms'),
225 'error_saving_notification' => __('Error saving notification:', 'ivyforms'),
226 'error_to_update_confirmation' => __('Error updating confirmation', 'ivyforms'),
227 'error_updating_notification' => __('Error updating notification:', 'ivyforms'),
228 'example' => __('example', 'ivyforms'),
229 'failed_to_create_confirmation' => __('Failed to create confirmation.', 'ivyforms'),
230 'failed_to_create_default_notification'=> __('Failed to create default notification', 'ivyforms'),
231 'failed_to_create_notification' => __('Failed to create notification', 'ivyforms'),
232 'failed_to_delete_notification' => __('Failed to delete notification', 'ivyforms'),
233 'failed_to_duplicate_confirmation' => __('Failed to duplicate confirmation:', 'ivyforms'),
234 'failed_to_duplicate_notification' => __('Failed to duplicate notification', 'ivyforms'),
235 'failed_to_fetch_notification' => __('Failed to fetch notification:', 'ivyforms'),
236 'failed_to_load_confirmation' => __('Failed to load confirmation:', 'ivyforms'),
237 'failed_to_load_notification' => __('Failed to load notification:', 'ivyforms'),
238 'failed_to_save_form' => __('Failed to save form', 'ivyforms'),
239 'failed_to_update_confirmation' => __('Failed to update confirmation', 'ivyforms'),
240 'failed_to_update_notification' => __('Failed to update notification', 'ivyforms'),
241 'filtered_data_notification' => __('Filtered Data:', 'ivyforms'),
242 'form_description' => __('Write your description here', 'ivyforms'),
243 'form_saved' => __('Form saved successfully!', 'ivyforms'),
244 'form_updated' => __('Form updated successfully!', 'ivyforms'),
245 'general_settings' => __('General Settings', 'ivyforms'),
246 'hide_form' => __('Hide Form', 'ivyforms'),
247 'message' => __('Message', 'ivyforms'),
248 'new_notification' => __('New Notification', 'ivyforms'),
249 'notification_deleted' => __('Notification deleted successfully', 'ivyforms'),
250 'notification_duplicated' => __('Notification duplicated successfully', 'ivyforms'),
251 'notification_loaded' => __('Notifications loaded successfully', 'ivyforms'),
252 'notifications' => __('Notifications', 'ivyforms'),
253 'receiver' => __('Receiver', 'ivyforms'),
254 'redirect_to_custom_url' => __('Redirect to Custom URL', 'ivyforms'),
255 'redirect_to_page' => __('Redirect to Page', 'ivyforms'),
256 'reset_form' => __('Reset Form', 'ivyforms'),
257 'search_notifications' => __('Search Notifications', 'ivyforms'),
258 'select_page' => __('Select a page', 'ivyforms'),
259 'enter_url' => __('Enter URL', 'ivyforms'),
260 'send_from' => __('Send from', 'ivyforms'),
261 'send_to' => __('Send to', 'ivyforms'),
262 'show_form_description' => __('Show the form description', 'ivyforms'),
263 'show_form_title' => __('Show the form title', 'ivyforms'),
264 'subject' => __('Subject', 'ivyforms'),
265 'success_message' => __('Success Message', 'ivyforms'),
266 'update_confirmation' => __('Confirmation updated successfully', 'ivyforms'),
267 'update_notification' => __('Notification updated successfully', 'ivyforms'),
268 'updated_form' => __('Updated form', 'ivyforms'),
269 'unexpected_response_structure' => __('Unexpected response structure', 'ivyforms'),
270 'updating_duplicated_confirmation' => __('Confirmation duplicated successfully', 'ivyforms'),
271 ];
272 }
273
274 /**
275 * Returns the array for the "Empty States" parts strings
276 *
277 * @return mixed[]
278 */
279 public static function getEmptyStatesStrings(): array
280 {
281 return [
282 'clipboard_api_not_supported' => __('Clipboard API not supported', 'ivyforms'),
283 'collapse' => __('Collapse', 'ivyforms'),
284 'copy_shortcode' => __('Copy shortcode', 'ivyforms'),
285 'dark_theme' => __('Dark Theme', 'ivyforms'),
286 'expand_collapse' => __('Expand or collapse the content area to make better use of your screen space.', 'ivyforms'),
287 'form_id_not_found' => __('Form ID not found, please save the form first.', 'ivyforms'),
288 'full_screen' => __('Full Screen', 'ivyforms'),
289 'get_help' => __('Get help or contact our support team for assistance with any issues or questions.', 'ivyforms'),
290 'light_theme' => __('Light Theme', 'ivyforms'),
291 'shortcode_copied' => __('Shortcode copied!', 'ivyforms'),
292 ];
293 }
294
295 /**
296 * Returns the array for the "Entries" page strings
297 *
298 * @return mixed[]
299 */
300 public static function getEntriesStrings(): array
301 {
302 return [
303 ];
304 }
305
306 /**
307 * Returns the array for the "Integrations" page strings
308 *
309 * @return mixed[]
310 */
311 public static function getIntegrationsStrings(): array
312 {
313 return [
314 'integrations' => __('Integrations', 'ivyforms'),
315 ];
316 }
317
318
319 /**
320 * Returns the array for the entities modal
321 *
322 * @return mixed[]
323 */
324 public static function getEntityFormStrings(): array
325 {
326 return [
327 'duplicate' => __('Duplicate', 'ivyforms'),
328 'loader_message' => __('Please Wait', 'ivyforms'),
329 'visible' => __('Visible', 'ivyforms'),
330 ];
331 }
332
333 /**
334 * Returns the array for the components
335 *
336 * @return mixed[]
337 */
338 public static function getComponentsStrings(): array
339 {
340 return [
341 'action_button' => __('Action button', 'ivyforms'),
342 'add_star' => __('Add star', 'ivyforms'),
343 'add_subfolder' => __('Add subfolder', 'ivyforms'),
344 'adjusting_your_search_phone' => __('Try adjusting your search to find what you\'re looking for.', 'ivyforms'),
345 'clear' => __('Clear', 'ivyforms'),
346 'download' => __('Download', 'ivyforms'),
347 'edit' => __('Edit', 'ivyforms'),
348 'export' => __('Export', 'ivyforms'),
349 'font_family' => __('Font Family Select', 'ivyforms'),
350 'header_button' => __('Header button', 'ivyforms'),
351 'heading_level' => __('Heading Level Select', 'ivyforms'),
352 'html' => __('HTML', 'ivyforms'),
353 'image_url' => __('Image Url', 'ivyforms'),
354 'import' => __('Import', 'ivyforms'),
355 'indicator_button' => __('Indicator button', 'ivyforms'),
356 'insert_image_by_url' => __('Insert Image By URL', 'ivyforms'),
357 'locate' => __('Locate', 'ivyforms'),
358 'mark_as_read' => __('Mark as read', 'ivyforms'),
359 'mark_as_spam' => __('Mark as spam', 'ivyforms'),
360 'mark_as_unread' => __('Mark as unread', 'ivyforms'),
361 'move_down' => __('Move down', 'ivyforms'),
362 'move_to_folder' => __('Move to folder', 'ivyforms'),
363 'move_to_folder_clicked' => __('Move to folder clicked', 'ivyforms'),
364 'move_up' => __('Move up', 'ivyforms'),
365 'off' => __('Off', 'ivyforms'),
366 'on' => __('On', 'ivyforms'),
367 'open_in_new_tab' => __('Open in new tab', 'ivyforms'),
368 'option_button' => __('Option button', 'ivyforms'),
369 'preview' => __('Preview', 'ivyforms'),
370 'print' => __('Print', 'ivyforms'),
371 'published' => __('Published', 'ivyforms'),
372 'remove_star' => __('Remove star', 'ivyforms'),
373 'rename' => __('Rename', 'ivyforms'),
374 'resend_notification' => __('Resend notification', 'ivyforms'),
375 'reset' => __('Reset', 'ivyforms'),
376 'restore' => __('Restore', 'ivyforms'),
377 'save_as_draft' => __('Save as draft', 'ivyforms'),
378 'search' => __('Search', 'ivyforms'),
379 'select' => __('Select', 'ivyforms'),
380 'show_all' => __('Show all', 'ivyforms'),
381 'sort_by' => __('Sort by', 'ivyforms'),
382 'theme_switch' => __('Theme Switch', 'ivyforms'),
383 'toggle_switch' => __('Toggle Switch', 'ivyforms'),
384 'tooltip' => __('Tooltip', 'ivyforms'),
385 'translate' => __('Translate', 'ivyforms'),
386 'trash' => __('Trash', 'ivyforms'),
387 'unpublished' => __('Unpublished', 'ivyforms'),
388 'unstarred' => __('Unstarred', 'ivyforms'),
389 'upload_image' => __('Upload Image', 'ivyforms'),
390 'visual' => __('Visual', 'ivyforms'),
391 ];
392 }
393 }
394