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

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