PluginProbe
Bookit — Booking & Appointment Calendar / 2.6.0.5
Bookit — Booking & Appointment Calendar v2.6.0.5
2.6.0.5 2.6.0.4 2.6.0.3 2.6.0.2 2.6.0.1 2.6.0 trunk 1.2 1.2.2 1.2.3 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 All 62 releases
bookit / includes / classes / Translations.php

Translations.php in Bookit — Booking & Appointment Calendar 2.6.0.5, at includes/classes/Translations.php

467 lines 35.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Bookit\Classes;
4
5 class Translations {
6
7 /**
8 * Frontend Translation Strings
9 * @return array
10 */
11 public static function get_frontend_translations() {
12 $translations = array(
13 'choose_category' => esc_html__( 'Choose Category', 'bookit' ),
14 'choose_service' => esc_html__( 'Choose Service', 'bookit' ),
15 'from' => esc_html__( 'From', 'bookit' ),
16 'no_services' => esc_html__( 'No available Services!', 'bookit' ),
17 'booking_appointment' => esc_html__( 'Booking Appointment', 'bookit' ),
18 'service' => esc_html__( 'Service', 'bookit' ),
19 'employee' => esc_html__( 'Employee', 'bookit' ),
20 'customer' => esc_html__( 'Customer', 'bookit' ),
21 'date' => esc_html__( 'Date', 'bookit' ),
22 'time' => esc_html__( 'Time', 'bookit' ),
23 'price' => esc_html__( 'Price', 'bookit' ),
24 'submit' => esc_html__( 'Submit', 'bookit' ),
25 'please_choose_service' => esc_html__( 'Please choose a Service!', 'bookit' ),
26 'booking_details' => esc_html__( 'Booking Details', 'bookit' ),
27 'full_name' => esc_html__( 'Full Name', 'bookit' ),
28 'email' => esc_html__( 'Email', 'bookit' ),
29 'phone' => esc_html__( 'Phone', 'bookit' ),
30 'password' => esc_html__( 'Password', 'bookit' ),
31 'password_confirmation' => esc_html__( 'Password Confirmation', 'bookit' ),
32 'login' => esc_html__( 'Log in', 'bookit' ),
33 'register' => esc_html__( 'Register', 'bookit' ),
34 'login_intro' => esc_html__( 'Already have an account? Log in to continue.', 'bookit' ),
35 'login_failed' => esc_html__( 'The email or password you entered is incorrect.', 'bookit' ),
36 'locally' => esc_html__( 'I will pay locally', 'bookit' ),
37 'paypal' => esc_html__( 'Pay now with PayPal', 'bookit' ),
38 'stripe' => esc_html__( 'Pay now with Credit Card', 'bookit' ),
39 'stripeConnect' => esc_html_x( 'Pay now with Credit Card', 'Stripe Connect pay with credit card.', 'bookit' ),
40 'woocommerce' => esc_html__( 'WooCommerce Checkout', 'bookit' ),
41 'book_now' => esc_html__( 'Book Now', 'bookit' ),
42 'success_booking' => esc_html__( 'Your Appointment Request successfully sent!', 'bookit' ),
43 'reservation_confirmation' => esc_html__( 'Reservation confirmation', 'bookit' ),
44 'booking_email_sent' => esc_html__( 'We have sent your booking information to your email address.', 'bookit' ),
45 'you_will_be_redirected' => esc_html__( 'You will be redirected to', 'bookit' ),
46 'in' => esc_html__( 'in', 'bookit' ),
47 'seconds' => esc_html__( 'seconds', 'bookit' ),
48 'client_name' => esc_html__( 'Client Name', 'bookit' ),
49 'reservation_time' => esc_html__( 'Reservation Time', 'bookit' ),
50 'reservation_date' => esc_html__( 'Reservation Date', 'bookit' ),
51 'print_confirmation' => esc_html__( 'Print Confirmation', 'bookit' ),
52 'required_field' => esc_html__( 'This field is required.', 'bookit' ),
53 'invalid_email' => esc_html__( 'Invalid Email address.', 'bookit' ),
54 'confirmation_mismatched' => esc_html__( 'Confirmation mismatched.', 'bookit' ),
55 'not_available' => esc_html__( 'Not Available', 'bookit' ),
56 'no_appointments' => esc_html__( 'No Booked Appointments', 'bookit' ),
57 'status' => esc_html__( 'Status', 'bookit' ),
58 'approve' => esc_html__( 'Approve', 'bookit' ),
59 'reject' => esc_html__( 'Reject', 'bookit' ),
60 'cancel' => esc_html__( 'Cancel', 'bookit' ),
61 'something_went_wrong' => esc_html__( 'Something went wrong', 'bookit' ),
62 'not_authenticated_card' => esc_html__( 'Your card was not authenticated, please try again', 'bookit' ),
63 'available_employees' => esc_html__( 'All available employees', 'bookit' ),
64 'service_price' => esc_html__( 'Service price', 'bookit' ),
65 'select_date' => esc_html__( 'Select date', 'bookit' ),
66 'select_time' => esc_html__( 'Select time', 'bookit' ),
67 'error_staff_id' => esc_html__( 'Select employee', 'bookit' ),
68 'name_label' => esc_html__( 'Name', 'bookit' ),
69 'name_placeholder' => esc_html__( 'Enter your Name', 'bookit' ),
70 'print' => esc_html__( 'Print', 'bookit' ),
71 'back' => esc_html__( 'Back', 'bookit' ),
72 'new_booking' => esc_html__( 'New Booking', 'bookit' ),
73 'continue' => esc_html__( 'Continue', 'bookit' ),
74 'add_to_calendar' => esc_html__( 'Add to calendar', 'bookit' ),
75 'service_note' => esc_html__( 'Service note', 'bookit' ),
76 'service_note_placeholder' => esc_html__( 'Your Message', 'bookit' ),
77 'invalid_phone' => esc_html__( 'Please enter a valid phone number', 'bookit' ),
78 'no_email' => esc_html__( 'Please enter email', 'bookit' ),
79 'full_name_wrong_length' => esc_html__( 'Full name must be between 3 and 25 characters long', 'bookit' ),
80 'total' => esc_html__( 'Total', 'bookit' ),
81 'payment_method' => esc_html__( 'Payment method', 'bookit' ),
82 'google_calendar' => esc_html__( 'Google Calendar', 'bookit' ),
83 'i_cal' => esc_html__( 'iCal Export', 'bookit' ),
84 'download_pdf' => esc_html__( 'Download PDF', 'bookit' ),
85 'error_date_timestamp' => esc_html__( 'Please select date', 'bookit' ),
86 'error_start_time' => esc_html__( 'Please select time', 'bookit' ),
87 'error_payment_method' => esc_html__( 'Please select payment', 'bookit' ),
88 'available_for_booking' => esc_html__( 'Available for booking', 'bookit' ),
89 'unavailable_for_booking' => esc_html__( 'Unavailable for booking', 'bookit' ),
90 'wrong_password' => esc_html__( 'Wrong password', 'bookit' ),
91 );
92
93 return $translations;
94 }
95
96 /**
97 * Admin Translation Strings
98 * @return array
99 */
100 public static function get_admin_translations() {
101 $translations = array(
102 'id' => esc_html__( 'id', 'bookit' ),
103 'search' => esc_html__( 'Search', 'bookit' ),
104 'add_new' => esc_html__( 'Add New', 'bookit' ),
105 'categories' => esc_html__( 'Categories', 'bookit' ),
106 'category' => esc_html__( 'Category', 'bookit' ),
107 'no_results' => esc_html__( 'No Results', 'bookit' ),
108 'appointment' => esc_html__( 'Appointment', 'bookit' ),
109 'all_appointments' => esc_html__( 'All Appointments', 'bookit' ),
110 'appointment_info' => esc_html__( 'Appointment Information', 'bookit' ),
111 'add' => esc_html__( 'Add', 'bookit' ),
112 'create' => esc_html__( 'Create', 'bookit' ),
113 'edit' => esc_html__( 'Edit', 'bookit' ),
114 'delete' => esc_html__( 'Delete', 'bookit' ),
115 'save' => esc_html__( 'Save', 'bookit' ),
116 'approve' => esc_html__( 'Approve', 'bookit' ),
117 'reject' => esc_html__( 'Reject', 'bookit' ),
118 'cancel' => esc_html__( 'Cancel', 'bookit' ),
119 'past' => esc_html__( 'Past', 'bookit' ),
120 'appointment_past' => esc_html__( 'Appointment is past', 'bookit' ),
121 'add_new_category' => esc_html__( 'Add New Category', 'bookit' ),
122 'enter_category_name' => esc_html__( 'Enter Category Name', 'bookit' ),
123 'all' => esc_html__( 'All', 'bookit' ),
124 'pending' => esc_html__( 'Pending', 'bookit' ),
125 'approved' => esc_html__( 'Approved', 'bookit' ),
126 'cancelled' => esc_html__( 'Cancelled', 'bookit' ),
127 'customer' => esc_html__( 'Customer', 'bookit' ),
128 'customer_phone' => esc_html__( 'Customer Phone', 'bookit' ),
129 'staff' => esc_html__( 'staff', 'bookit' ),
130 'service' => esc_html__( 'service', 'bookit' ),
131 'services' => esc_html__( 'Services', 'bookit' ),
132 'price' => esc_html__( 'Price', 'bookit' ),
133 'date' => esc_html__( 'Date', 'bookit' ),
134 'time' => esc_html__( 'Time', 'bookit' ),
135 'payment' => esc_html__( 'Payment', 'bookit' ),
136 'status' => esc_html__( 'Status', 'bookit' ),
137 'actions' => esc_html__( 'Actions', 'bookit' ),
138 'details' => esc_html__( 'Details', 'bookit' ),
139 'payment_method' => esc_html__( 'Payment method', 'bookit' ),
140 'no_payment_method' => esc_html__( 'No Payment Method', 'bookit' ),
141 'payment_status' => esc_html__( 'Payment status', 'bookit' ),
142 'del_appointment_info' => esc_html__( 'You are going to delete appointment ', 'bookit' ),
143 'send_notification_to' => esc_html__( 'Send Notification to:', 'bookit' ),
144 'cancel_reason_title' => esc_html__( 'Reason for cancellation ', 'bookit' ),
145 'reason_placeholder' => esc_html__( 'Reason message', 'bookit' ),
146 'employee' => esc_html__( 'Employee', 'bookit' ),
147 'confirm_service_edit_duration' => esc_html__( 'Changing of the service duration will not affect the existing appointments and will be applied only to new appointments', 'bookit' ),
148 'full_name' => esc_html__( 'Full Name', 'bookit' ),
149 'customer_name' => esc_html__( 'Customer name', 'bookit' ),
150 'email' => esc_html__( 'Email', 'bookit' ),
151 'phone' => esc_html__( 'Phone', 'bookit' ),
152 'working_hours' => esc_html__( 'Working Hours', 'bookit' ),
153 'lunch_break' => esc_html__( 'Lunch Break', 'bookit' ),
154 'confirm_edit_staff_wh' => esc_html__( 'Changing of the Staff working hours will not affect the existing appointments and will be applied only to new appointments', 'bookit' ),
155 'currency_error' => esc_html__( 'Wrong currency value', 'bookit' ),
156 'appointment_id' => esc_html__( 'Appointment ID', 'bookit' ),
157 'filter_by_service' => esc_html__( 'All Service', 'bookit' ),
158 'filter_by_staff' => esc_html__( 'All Staff', 'bookit' ),
159 'selected' => esc_html__( 'Selected', 'bookit' ),
160 'select' => esc_html__( 'Select', 'bookit' ),
161 'autorefresh' => esc_html__( 'Auto Refresh', 'bookit' ),
162 'detailed_view' => esc_html__( 'Detailed view', 'bookit' ),
163 'disabled' => esc_html__( 'disabled', 'bookit' ),
164 'total' => esc_html__( 'Total', 'bookit' ),
165 'icon' => esc_html__( 'Icon', 'bookit' ),
166 'duration' => esc_html__( 'Duration', 'bookit' ),
167 'title' => esc_html__( 'Title', 'bookit' ),
168 'confirm_service_delete_title' => esc_html__( 'You have {appointments} active appointments and {staff} staff associated with this service.', 'bookit' ),
169 'confirm_service_delete' => esc_html__( 'If you delete the service, all appointments associated with it, will be deleted as well. You can edit the service instead.', 'bookit' ),
170 'confirm_staff_delete_title' => esc_html__( 'You have {appointments} active appointments and {services} services associated with this staff member.', 'bookit' ),
171 'confirm_staff_delete' => esc_html__( 'If you remove the employee, all related services will remain without staff, and all appointments will be deleted.', 'bookit' ),
172 'confirm_customer_delete_title' => esc_html__( 'You have {appointments} active appointments associated with this customer.', 'bookit' ),
173 'confirm_customer_delete' => esc_html__( 'If you remove the customer, all appointments associated with customer will be deleted.', 'bookit' ),
174 'confirm_category_delete_title' => esc_html__( 'You have {services} active services, {appointments} active appointments and {staff} staff associated with this category.', 'bookit' ),
175 'confirm_category_delete' => esc_html__( 'If you delete the category, all service and appointments associated with it, will be deleted as well. You can edit the category instead.', 'bookit' ),
176 'edit_appointments' => esc_html__( 'Edit Appointments', 'bookit' ),
177 'time_slot_duration_title' => esc_html__( 'The duration of the time slot', 'bookit' ),
178 'woocommerce_alert' => esc_html__( 'To use this feature you need to install WooCommerce Plugin.', 'bookit' ),
179 'comment' => esc_html__( 'Comment', 'bookit' ),
180 'comment_placeholder' => esc_html__( 'Enter your comment', 'bookit' ),
181 'new_customer' => esc_html__( 'New customer', 'bookit' ),
182 'search_placeholder' => esc_html__( 'Type to search', 'bookit' ),
183 'password' => esc_html__( 'Password', 'bookit' ),
184 'password_confirmation' => esc_html__( 'Password Confirmation', 'bookit' ),
185 'required_field' => esc_html__( 'This field is required.', 'bookit' ),
186 'invalid_email' => esc_html__( 'Invalid Email address.', 'bookit' ),
187 'confirmation_mismatched' => esc_html__( 'Confirmation mismatched.', 'bookit' ),
188 'not_available' => esc_html__( 'Not Available', 'bookit' ),
189 'password_placeholder' => esc_html__( 'Enter password', 'bookit' ),
190 'repeat_password_placeholder' => esc_html__( 'Repeat password', 'bookit' ),
191 'settings' => esc_html__( 'Settings', 'bookit' ),
192 'sender_name' => esc_html__( 'Sender Name', 'bookit' ),
193 'sender_email' => esc_html__( 'Sender Email', 'bookit' ),
194 'no_user' => esc_html__( 'No user', 'bookit' ),
195 'wp_user' => esc_html__( 'WP User', 'bookit' ),
196 'new' => esc_html__( 'New', 'bookit' ),
197 'clean_all_on_delete_title' => esc_html__( 'Clean all on delete', 'bookit' ),
198 'clean_all_on_delete_help' => esc_html__( 'Removes all settings and tables from the database used for the plugin when uninstalling the plugin', 'bookit' ),
199 'setup_settings' => esc_html__( 'Setup settings', 'bookit' ),
200 'pay_locally' => esc_html__( 'Pay Locally', 'bookit' ),
201 'buy_now' => esc_html__( 'Buy Now', 'bookit' ),
202 'no' => esc_html__( 'No', 'bookit' ),
203 // translators: %s is the name of the add-on.
204 'addon_feature' => esc_html__( 'This feature is part of "%s" Add-on!', 'bookit' ),
205 /** Settings page */
206 'calendar_view' => esc_html__( 'Calendar View', 'bookit' ),
207 'email_settings' => esc_html__( 'Email Settings', 'bookit' ),
208 'theme_and_style' => esc_html__( 'Template & Style', 'bookit' ),
209 'calendar_theme' => esc_html__( 'Calendar Template', 'bookit' ),
210 'theme' => esc_html__( 'Template', 'bookit' ),
211 'calendar_view_default' => esc_html__( 'Default', 'bookit' ),
212 'calendar_view_step_by_step' => esc_html__( 'Step by step', 'bookit' ),
213 'booking_type' => esc_html__( 'Booking Type', 'bookit' ),
214 'booking_type_registered' => esc_html__( 'Registered Booking', 'bookit' ),
215 'booking_type_guest' => esc_html__( 'Guest Booking', 'bookit' ),
216 'use_custom_colors' => esc_html__( 'Use Custom Colors', 'bookit' ),
217 'hide_calendar_header_titles' => esc_html__( 'Hide Calendar Header Titles', 'bookit' ),
218 'hide_from_for_service_price' => esc_html__( 'Disable the word “From:” for service with one price', 'bookit' ),
219
220 /** appointment and payment statuses */
221 'pending' => esc_html__( 'pending', 'bookit' ),
222 'approved' => esc_html__( 'approved', 'bookit' ),
223 'cancelled' => esc_html__( 'cancelled', 'bookit' ),
224 'complete' => esc_html__( 'complete', 'bookit' ),
225 'locally' => esc_html__( 'locally', 'bookit' ),
226 'free' => esc_html__( 'free', 'bookit' ),
227 'rejected' => esc_html__( 'rejected', 'bookit' ),
228 'payment_mismatch_tip' => esc_html__( "Amount paid didn't match the booking price, verify or refund in PayPal before approving.", 'bookit' ),
229 'view_in_paypal' => esc_html__( 'View in PayPal', 'bookit' ),
230 'payment_reuse_tip' => esc_html__( 'This payment reused a transaction already applied to another booking, verify in Stripe before approving.', 'bookit' ),
231 'view_in_stripe' => esc_html__( 'View in Stripe', 'bookit' ),
232 'activate_addon' => esc_html__( 'Please activate addon', 'bookit' ),
233 'appointment_payment_notice' => esc_html__( 'Please choose the customer, staff and service first', 'bookit' ),
234 'copy' => esc_html__( 'Copy', 'bookit' ),
235 'url_copied' => esc_html__( 'link has been copied', 'bookit' ),
236 'load' => esc_html__( 'Load', 'bookit' ),
237 'new_appointment' => esc_html__( 'New Appointment', 'bookit' ),
238 'appointment_status_change' => esc_html__( 'Appointment Status Changed', 'bookit' ),
239 'payment_complete' => esc_html__( 'Payment Complete', 'bookit' ),
240 'appointment_updated' => esc_html__( 'Appointment Updated', 'bookit' ),
241 'delete_appointment' => esc_html__( 'Delete Appointment', 'bookit' ),
242 'customer_notification' => esc_html__( 'Customer Notification', 'bookit' ),
243 'admin_notification' => esc_html__( 'Admin Notification', 'bookit' ),
244 'staff_notification' => esc_html__( 'Staff Notification', 'bookit' ),
245 'day' => esc_html__( 'Day', 'bookit' ),
246 'week' => esc_html__( 'Week', 'bookit' ),
247 'month' => esc_html__( 'Month', 'bookit' ),
248 'today' => esc_html__( 'Today', 'bookit' ),
249 'feedback' => esc_html__( 'Feedback', 'bookit' ),
250 'documentation' => esc_html__( 'Documentation', 'bookit' ),
251 'no_category' => esc_html__( 'No Category', 'bookit' ),
252 'day_off' => esc_html__( 'Day Off', 'bookit' ),
253 'general' => esc_html__( 'General', 'bookit' ),
254 'currency' => esc_html__( 'Currency', 'bookit' ),
255 'payments' => esc_html__( 'Payments', 'bookit' ),
256 'email_templates' => esc_html__( 'Email Templates', 'bookit' ),
257 'shortcode_generator' => esc_html__( 'Shortcode Generator', 'bookit' ),
258 'import_export' => esc_html__( 'Import/Export', 'bookit' ),
259 'main_settings' => esc_html__( 'Main settings', 'bookit' ),
260 'base_color' => esc_html__( 'Base Color', 'bookit' ),
261 'base_bg_color' => esc_html__( 'Base Background Color', 'bookit' ),
262 'highligth_color' => esc_html__( 'Highlight Color', 'bookit' ),
263 'white_color' => esc_html__( 'White Color', 'bookit' ),
264 'dark_color' => esc_html__( 'Dark Color', 'bookit' ),
265 'currency_symbol' => esc_html__( 'Currency symbol', 'bookit' ),
266 'currency_position' => esc_html__( 'Currency Position', 'bookit' ),
267 'left' => esc_html__( 'Left', 'bookit' ),
268 'right' => esc_html__( 'Right', 'bookit' ),
269 'thousands_separator' => esc_html__( 'Thousands Separator', 'bookit' ),
270 'decimal_separator' => esc_html__( 'Decimals Separator', 'bookit' ),
271 'number_of_decimals' => esc_html__( 'Number of decimals', 'bookit' ),
272 'enabled' => esc_html__( 'Enabled', 'bookit' ),
273 'subject' => esc_html__( 'Subject', 'bookit' ),
274 'message_body' => esc_html__( 'Message Body', 'bookit' ),
275 'recipients' => esc_html__( 'Recipients', 'bookit' ),
276 'import_demo_content' => esc_html__( 'Import demo content', 'bookit' ),
277 'import_demo_content_info' => esc_html__( 'Import the demo content for understanding how it works', 'bookit' ),
278 'demo_import' => esc_html__( 'Demo Import', 'bookit' ),
279 'importing' => esc_html__( 'Importing', 'bookit' ),
280 'import' => esc_html__( 'Import', 'bookit' ),
281 'import_info' => esc_html__( 'Import Bookit data previously saved as in JSON format as txt file', 'bookit' ),
282 'select_file' => esc_html__( 'Select file', 'bookit' ),
283 'import_json' => esc_html__( 'Import Json', 'bookit' ),
284 'export' => esc_html__( 'Export', 'bookit' ),
285 'export_info' => esc_html__( 'Export the current Services, Staff, Categories and Settings in JSON format as txt file', 'bookit' ),
286 'export_json' => esc_html__( 'Export Json', 'bookit' ),
287 'export_appointments_info' => esc_html__( 'Export the current Appointments as Excel file', 'bookit' ),
288 'export_excel' => esc_html__( 'Export Excel', 'bookit' ),
289 '15_minutes' => esc_html__( '15 minutes', 'bookit' ),
290 '20_minutes' => esc_html__( '20 minutes', 'bookit' ),
291 '30_minutes' => esc_html__( '30 minutes', 'bookit' ),
292 '45_minutes' => esc_html__( '45 minutes', 'bookit' ),
293 '1_hour' => esc_html__( '1 hour', 'bookit' ),
294 'to' => esc_html__( 'to', 'bookit' ),
295 'no_break' => esc_html__( 'No Break', 'bookit' ),
296 'add_icon' => esc_html__( 'Add Icon', 'bookit' ),
297 'replace_icon' => esc_html__( 'Replace Icon', 'bookit' ),
298 'remove_icon' => esc_html__( 'Remove Icon', 'bookit' ),
299 'reset' => esc_html__( 'Reset', 'bookit' ),
300 'import_completed' => esc_html__( 'Import completed', 'bookit' ),
301 'import_started' => esc_html__( 'Import Data started', 'bookit' ),
302 'google_calendar' => esc_html_x( 'Google Calendar', 'Name for the Google Calendar setting tab', 'bookit' ),
303 );
304
305 return $translations;
306 }
307
308 //TODO get by loop
309 public static function get_addon_translations() {
310 $translations = array();
311 $translations = array_merge( self::google_calendar_translations(), self::payments_translations() );
312 return $translations;
313 }
314
315 public static function google_calendar_translations() {
316 $google_data_link = self::get_google_data_link();
317
318 // translators: %1$s and %2$s are opening and closing HTML link tags.
319 $google_app_data = sprintf(
320 esc_html_x(
321 'BookIt for Google Calendar will ensure that any data received from Google APIs is handled in accordance with the %1$sGoogle API Services User Data Policy%2$s, including compliance with the Limited Use requirements.',
322 'BookIt for Google calendar data disclaimer text.',
323 'bookit'
324 ),
325 '<a href="' . esc_url( $google_data_link ) . '" target="_blank">',
326 '</a>'
327 );
328
329 $translations = array(
330 'main_settings' => esc_html__( 'Main settings', 'bookit' ),
331 'enabled' => esc_html__( 'Enabled', 'bookit' ),
332 'client_id' => esc_html__( 'Client ID', 'bookit' ),
333 'client_id_help' => esc_html__( 'Client ID, derived from the Google Developers Console Credentials', 'bookit' ),
334 'client_secret' => esc_html__( 'Client Secret', 'bookit' ),
335 'client_secret_help' => esc_html__( 'Client Secret, derived from the Google Developers Console Credentials', 'bookit' ),
336 'redirect_uri' => esc_html__( 'Redirect URI', 'bookit' ),
337 'send_pending' => esc_html__( 'Syncronization with pending appointments', 'bookit' ),
338 'send_pending_help' => esc_html__( "New unapproved appointments created by customers will be also added to the staff's Google Calendar.", 'bookit' ),
339 'rm_busy_slots_title' => esc_html__( 'Consider Google calendar busy slots for customers', 'bookit' ),
340 'rm_busy_slots_help' => esc_html__( "Google Calendar time slots will be checked before displaying free time slots for new appointments. Customers cannot make appointments if the time slot is busy in the staff's Google Сalendar account.", 'bookit' ),
341 'customer_as_attendees' => esc_html__( 'Add customer as event attendees', 'bookit' ),
342 'customer_attendees_help' => esc_html__( 'By creating the event on Google Calendar, the email of the client will be added to the event as an attendee.', 'bookit' ),
343 'export_appointments' => esc_html__( 'Export appointments', 'bookit' ),
344 'export_appointments_help' => esc_html__( 'Synchronization of all the upcoming events with Google Calendar of the staff.', 'bookit' ),
345 'template' => esc_html__( 'Template', 'bookit' ),
346 'body' => esc_html__( 'Body', 'bookit' ),
347 'connect' => esc_html__( 'Connect', 'bookit' ),
348 're_connect' => esc_html__( 'Re-Connect', 'bookit' ),
349 'connected' => esc_html__( 'Connected', 'bookit' ),
350 'disconnect' => esc_html__( 'Disconnect', 'bookit' ),
351 'gc_busy_event_info' => esc_html__( 'On selected period exist google calendar event', 'bookit' ),
352 'timezone_label' => esc_html_x( 'Timezone', 'Label for timezone setting.', 'bookit' ),
353 'timezone_select' => esc_html_x( 'Select a Timezone', 'Label for timezone select placeholder.', 'bookit' ),
354 'google_app_data' => $google_app_data,
355 );
356
357 return $translations;
358 }
359
360 public static function payments_translations() {
361 $translations = array(
362 'paypal_ipn_setup' => esc_html__( 'PayPal IPN Setup', 'bookit' ),
363 'paypal_ipn_pre_link' => esc_html__( 'You need to use this URL for your', 'bookit' ),
364 'paypal_ipn_link_txt' => esc_html__( 'IPN Listener Settings:', 'bookit' ),
365 'paypal_email' => esc_html__( 'PayPal Email', 'bookit' ),
366 'paypal_mode' => esc_html__( 'PayPal Mode', 'bookit' ),
367 'paypal_mode_live' => esc_html__( 'Live', 'bookit' ),
368 'paypal_mode_sandbox' => esc_html__( 'Sandbox', 'bookit' ),
369 'paypal_validation_failed' => esc_html_x( 'PayPal settings validation failed. Please check the fields in the Payments tab.', 'Validation message for saving PayPal legacy settings.', 'bookit' ),
370 'paypal_email_required' => esc_html_x( 'PayPal email is required', 'Validation message for saving PayPal legacy settings.', 'bookit' ),
371 'paypal_mode_required' => esc_html_x( 'PayPal mode is required', 'Validation message for saving PayPal legacy settings.', 'bookit' ),
372 'stripe_publish_key' => esc_html__( 'Stripe Publish Key', 'bookit' ),
373 'stripe_secret_key' => esc_html__( 'Stripe Secret Key', 'bookit' ),
374 'woocommerce_product' => esc_html__( 'WooCommerce Product', 'bookit' ),
375 'woocommerce_title' => esc_html__( 'WooCommerce Custom Title', 'bookit' ),
376 'woocommerce_icon' => esc_html__( 'WooCommerce Custom Icon', 'bookit' ),
377 'woocommerce_icon_error' => esc_html__( 'WooCommerce Custom Icon must be image', 'bookit' ),
378 'choose_icon' => esc_html__( 'Choose icon', 'bookit' ),
379
380 // Stripe Connect.
381 'stripe_connect_name' => esc_html_x( 'Stripe Connect', 'Stripe Connect singular name.', 'bookit' ),
382 'stripe_connect_title' => esc_html_x( 'Accept online payments with Stripe!', 'Stripe Connect intro title.', 'bookit' ),
383 'stripe_connect_start_selling' => esc_html_x( 'Start having customers pay for appointments today with Stripe integration for Bookit Stripe Connect.', 'Stripe Connect intro text.', 'bookit' ),
384 'stripe_connect_get_connected' => esc_html_x( 'Get connected with', 'Stripe Connect connect account link text.', 'bookit' ),
385 'stripe_connect_get_connected_name' => esc_html_x( 'Stripe', 'Stripe Connect connect account link text service name.', 'bookit' ),
386 'stripe_connect_get_troubleshoot_help' => esc_html_x( 'Get troubleshooting help', 'Stripe Connect intro text for button to authorize.', 'bookit' ),
387 'stripe_connect_marketing_1' => esc_html_x( 'Credit, debit card payments and more!', 'Stripe Connect marketing information line 1.', 'bookit' ),
388 'stripe_connect_marketing_2' => esc_html_x( 'Easy, streamlined connection', 'Stripe Connect marketing information line 2.', 'bookit' ),
389 'stripe_connect_marketing_3' => esc_html_x( 'Accept payments from around the world', 'Stripe Connect marketing information line 3.', 'bookit' ),
390 'stripe_connect_marketing_4' => esc_html_x( 'Supports 3D Secure payments', 'Stripe Connect marketing information line 4.', 'bookit' ),
391 'stripe_connect_connected_title' => esc_html_x( "You are now connected to Stripe! What's next?", 'Stripe Connect after connected title.', 'bookit' ),
392 'stripe_connect_active_message' => esc_html_x( 'Your connection is active, but Bookit Stripe Connect is set to test mode. While in test mode no live transactions are processed.', 'Stripe Connect is active message.', 'bookit' ),
393 'stripe_connect_test_mode_label' => esc_html_x( 'Enables Test Mode', 'Stripe Connect test mode label.', 'bookit' ),
394 'stripe_connect_test_mode_description' => esc_html_x( 'Enables Test mode for testing payments. Any payments made will be done on "sandbox" accounts.', 'Stripe Connect test mode message.', 'bookit' ),
395 'stripe_connect_currency_header' => esc_html_x( 'Currency', 'Stripe Connect currency matching header.', 'bookit' ),
396 'stripe_connect_currency_text' => esc_html_x( 'Be sure that your Stripe currency matches the currency you have configured for Bookit Stripe Connect, to avoid any issues or unexpected conversion fees.', 'Stripe Connect currency matching text.', 'bookit' ),
397 'stripe_connect_payment_methods_header' => esc_html_x( 'Payment methods', 'Stripe Connect payment methods header.', 'bookit' ),
398 'stripe_connect_payment_methods_text' => esc_html_x( 'You will have to confirm that the payments methods you have selected to sell appointments are enabled on the', 'Stripe Connect payment methods text.', 'bookit' ),
399 'stripe_connect_payment_methods_link' => esc_html_x( 'Stripe payment methods section', 'Stripe Connect payment methods link text.', 'bookit' ),
400 'stripe_connect_webhooks_header' => esc_html_x( 'Webhooks', 'Stripe Connect webhooks header.', 'bookit' ),
401 'stripe_connect_webhooks_text' => esc_html_x( 'Your webhook is now automatically configured! A webhook is required for appointment payments to be marked as complete for some payment methods on your Stripe gateway for your Bookit site. If you would like to read more on how we set up the webhook or if you are facing issues with it there are resources', 'Stripe Connect webhooks text.', 'bookit' ),
402 'stripe_connect_webhooks_link' => esc_html_x( 'here', 'Stripe Connect webhooks link text.', 'bookit' ),
403 'stripe_connect_pci_compliance_header' => esc_html_x( 'PCI Compliance', 'Stripe Connect PCI Compliance header.', 'bookit' ),
404 'stripe_connect_pci_compliance_text' => esc_html_x( 'Stripe allows you to accept credit or debit cards directly on your website. Because of this, your site needs to maintain', 'Stripe Connect PCI Compliance text.', 'bookit' ),
405 'stripe_connect_pci_compliance_link' => esc_html_x( 'PCI-DSS compliance', 'Stripe Connect PCI Compliance link text.', 'bookit' ),
406 'stripe_connect_connected_close_button_text' => esc_html_x( 'Got it, thanks!', 'Stripe Connect connected message button close text.', 'bookit' ),
407 'stripe_connect_connected_as' => esc_html_x( 'Connected as', 'Stripe Connect connected as id message.', 'bookit' ),
408 'stripe_connect_disconnect_button_text' => esc_html_x( 'Disconnect', 'Stripe Connect connected disconnect button text.', 'bookit' ),
409 'stripe_connect_payment_status_title' => esc_html_x( 'Payments status', 'Stripe Connect connected payment_status title.', 'bookit' ),
410 'stripe_connect_currency_title' => esc_html_x( 'Stripe currency', 'Stripe Connect currency title.', 'bookit' ),
411 'stripe_connect_currency_message' => esc_html_x( 'Please be sure to enable all the payment methods you want to use for this currency on your', 'Stripe Connect currency information message title.', 'bookit' ),
412 // Translators: %1$s is the Stripe currency, %2$s is the Bookit currency symbol.
413 'stripe_connect_currency_not_match_message' => esc_html_x( 'Your Stripe account is set to %1$s, but your site is set to %2$s. Using different currencies for Bookit and Stripe may not be supported by all payment methods available in %2$s, and may result in exchange rates and conversions from %2$s to %1$s being handled by Stripe.', 'Stripe Connect currency not matching message.', 'bookit' ),
414
415 'stripe_connect_currency_message_link_text' => esc_html_x( 'Stripe dashboard', 'Stripe Connect dashboard link text.', 'bookit' ),
416 'stripe_connect_settings_link_text' => esc_html_x( 'Edit Your Stripe Settings', 'Stripe Connect settings link text.', 'bookit' ),
417 'stripe_connect_configured_link_text' => esc_html_x( 'Learn more about configuring Stripe payments', 'Stripe Connect settings link text.', 'bookit' ),
418 );
419 return $translations;
420 }
421
422 /**
423 * Admin Translation Strings
424 * @return array
425 */
426 public static function get_addons_page_translations() {
427 $translations = array(
428 'addons_title' => esc_html__( 'Add-ons', 'bookit' ),
429 'addons_description' => esc_html__( 'This is a universal tool that works with any WordPress theme and performs greatly on any business website.', 'bookit' ),
430 'version' => esc_html__( 'Version', 'bookit' ),
431 'buy' => esc_html__( 'Buy', 'bookit' ),
432 'view_changelog' => esc_html__( 'View Changelog', 'bookit' ),
433 'popular' => esc_html__( 'Popular', 'bookit' ),
434 // translators: First %s is the license type, second %s is the product name.
435 'license_purchased' => esc_html__( '%s %s license already purchased', 'bookit' ), // phpcs:ignore WordPress.WP.I18n.UnorderedPlaceholdersText
436 'upgrade' => esc_html__( 'Upgrade', 'bookit' ),
437 // translators: %s is the product name.
438 'active_license' => esc_html__( 'Lifetime license %s already active', 'bookit' ),
439 'active' => esc_html__( 'Active', 'bookit' ),
440 'per_year' => esc_html__( 'per year', 'bookit' ),
441 'learn_more' => esc_html__( 'Learn More', 'bookit' ),
442 'lifetime' => esc_html__( 'lifetime', 'bookit' ),
443 );
444 return $translations;
445 }
446
447 /**
448 * Get Google Data Link
449 *
450 * @since 2.5.0
451 *
452 * @return string Filtered Google Data Link
453 */
454 public static function get_google_data_link(): string {
455 $google_data_link = 'https://developers.google.com/terms/api-services-user-data-policy#additional_requirements_for_specific_api_scopes';
456
457 /**
458 * Filter the Google Data Link.
459 *
460 * @since 2.5.0
461 *
462 * @param string $google_data_link The Google Data Link URL.
463 */
464 return apply_filters( 'bookit_filter_google_data_link', $google_data_link );
465 }
466 }
467