PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.11
Booking for Appointments and Events Calendar – Amelia v1.2.11
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / src / Infrastructure / WP / Translations / LiteFrontendStrings.php
ameliabooking / src / Infrastructure / WP / Translations Last commit date
BackendStrings.php 1 year ago FrontendStrings.php 1 year ago LiteBackendStrings.php 1 year ago LiteFrontendStrings.php 1 year ago NotificationsStrings.php 1 year ago
LiteFrontendStrings.php
275 lines
1 <?php
2
3 namespace AmeliaBooking\Infrastructure\WP\Translations;
4
5 use AmeliaBooking\Domain\Services\Settings\SettingsService;
6 use AmeliaBooking\Infrastructure\WP\SettingsService\SettingsStorage;
7
8 /**
9 * Class LiteFrontendStrings
10 *
11 * @package AmeliaBooking\Infrastructure\WP\Translations
12 *
13 * @phpcs:disable
14 */
15 class LiteFrontendStrings
16 {
17 /** @var array */
18 private static $settings;
19
20 /**
21 * Set Settings
22 *
23 * @return array|mixed
24 */
25 public static function getLabelsFromSettings()
26 {
27 if (!self::$settings) {
28 self::$settings = new SettingsService(new SettingsStorage());
29 }
30
31 if (self::$settings->getSetting('labels', 'enabled') === true) {
32 $labels = self::$settings->getCategorySettings('labels');
33 unset($labels['enabled']);
34
35 return $labels;
36 }
37
38 return [];
39 }
40
41 /**
42 * Return all strings for frontend
43 *
44 * @return array
45 */
46 public static function getAllStrings()
47 {
48 return array_merge(
49 self::getCommonStrings(),
50 self::getBookingStrings(),
51 self::getBookableStrings(),
52 self::getCatalogStrings(),
53 self::getSearchStrings(),
54 self::getLabelsFromSettings(),
55 self::getEventStrings(),
56 self::getCabinetStrings()
57 );
58 }
59
60 /**
61 * Returns the array for the bookable strings
62 *
63 * @return array
64 */
65 public static function getBookableStrings()
66 {
67 return [
68 ];
69 }
70
71 /**
72 * Returns the array of the common frontend strings
73 *
74 * @return array
75 */
76 public static function getCommonStrings()
77 {
78 return [
79 'add_to_calendar' => __('Add to Calendar', 'wpamelia'),
80 'no_services_employees' => __('It seems like there are no employees or services created, or no employees are assigned to the service, at this moment.'),
81 'add_services_employees' => __('If you are the admin of this page, see how to'),
82 'add_services_url' => __('Add services'),
83 'add_employees_url' => __('employees.'),
84 'back' => __('Back', 'wpamelia'),
85 'base_price_colon' => __('Base Price:', 'wpamelia'),
86 'booking_completed_approved' => __('Thank you! Your booking is completed.', 'wpamelia'),
87 'bookings_limit_reached' => __('Maximum bookings reached', 'wpamelia'),
88 'cancel' => __('Cancel', 'wpamelia'),
89 'canceled' => __('Canceled', 'wpamelia'),
90 'capacity_colon' => __('Capacity:', 'wpamelia'),
91 'closed' => __('Closed', 'wpamelia'),
92 'content_mode_tooltip' => __('Don\'t use Text mode option if you already have HTML code in the description, since once this option is enabled the existing HTML tags could be lost.', 'wpamelia'),
93 'enable_google_meet' => __('Enable Google Meet', 'wpamelia'),
94 'full' => __('Full', 'wpamelia'),
95 'upcoming' => __('Upcoming', 'wpamelia'),
96 'confirm' => __('Confirm', 'wpamelia'),
97 'congratulations' => __('Congratulations', 'wpamelia'),
98 'customer_already_booked_app' => __('You have already booked this appointment', 'wpamelia'),
99 'customer_already_booked_ev' => __('You have already booked this event', 'wpamelia'),
100 'date_colon' => __('Date:', 'wpamelia'),
101 'duration_colon' => __('Duration:', 'wpamelia'),
102 'email_colon' => __('Email:', 'wpamelia'),
103 'email_exist_error' => __('Email already exists with different name. Please check your name.', 'wpamelia'),
104 'employee_limit_reached' => __('Employee daily appointment limit has been reached. Please choose another date or employee.', 'wpamelia'),
105 'enter_email_warning' => __('Please enter email', 'wpamelia'),
106 'enter_first_name_warning' => __('Please enter first name', 'wpamelia'),
107 'enter_last_name_warning' => __('Please enter last name', 'wpamelia'),
108 'enter_phone_warning' => __('Please enter phone number', 'wpamelia'),
109 'enter_valid_email_warning' => __('Please enter a valid email address', 'wpamelia'),
110 'enter_valid_phone_warning' => __('Please enter a valid phone number', 'wpamelia'),
111 'event_info' => __('Event Info', 'wpamelia'),
112 'finish_appointment' => __('Finish', 'wpamelia'),
113 'first_name_colon' => __('First Name:', 'wpamelia'),
114 'h' => __('h', 'wpamelia'),
115 'last_name_colon' => __('Last Name:', 'wpamelia'),
116 'licence_start_description' => __('Available from Starter license', 'wpamelia'),
117 'licence_basic_description' => __('Available from Standard license', 'wpamelia'),
118 'licence_pro_description' => __('Available from Pro license', 'wpamelia'),
119 'licence_dev_description' => __('Available in Elite licence', 'wpamelia'),
120 'licence_button_text' => __('Upgrade', 'wpamelia'),
121 'min' => __('min', 'wpamelia'),
122 'on_site' => __('On-site', 'wpamelia'),
123 'payment_btn_on_site' => __('On-Site', 'wpamelia'),
124 'oops' => __('Oops...'),
125 'payment_btn_square' => __('Square', 'wpamelia'),
126 'open' => __('Open', 'wpamelia'),
127 'phone_colon' => __('Phone:', 'wpamelia'),
128 'phone_exist_error' => __('Phone already exists with different name. Please check your name.', 'wpamelia'),
129 'price_colon' => __('Price:', 'wpamelia'),
130 'service' => __('service', 'wpamelia'),
131 'select_calendar' => __('Select Calendar', 'wpamelia'),
132 'services_lower' => __('services', 'wpamelia'),
133 'square' => __('Square', 'wpamelia'),
134 'time_colon' => __('Local Time:', 'wpamelia'),
135 'time_slot_unavailable' => __('Time slot is unavailable', 'wpamelia'),
136 'total_cost_colon' => __('Total Cost:', 'wpamelia'),
137 'total_number_of_persons' => __('Total Number of People:', 'wpamelia'),
138 ];
139 }
140
141 /**
142 * Returns the array of the frontend strings for the search shortcode
143 *
144 * @return array
145 */
146 public static function getSearchStrings()
147 {
148 return [
149 ];
150 }
151
152 /**
153 * Returns the array of the frontend strings for the booking shortcode
154 *
155 * @return array
156 */
157 public static function getBookingStrings()
158 {
159 return [
160 'continue' => __('Continue', 'wpamelia'),
161 'email_address_colon' => __('Email Address', 'wpamelia'),
162 'get_in_touch' => __('Get in Touch', 'wpamelia'),
163 'collapse_menu' => __('Collapse menu', 'wpamelia'),
164 'payment_onsite_sentence' => __('The payment will be done on-site.', 'wpamelia'),
165 'phone_number_colon' => __('Phone Number', 'wpamelia'),
166 'pick_date_and_time_colon' => __('Pick date & time:', 'wpamelia'),
167 'please_select' => __('Please select', 'wpamelia'),
168 'summary' => __('Summary', 'wpamelia'),
169 'total_amount_colon' => __('Total Amount:', 'wpamelia'),
170 'your_name_colon' => __('Your Name', 'wpamelia'),
171
172 'service_selection' => __('Service Selection', 'wpamelia'),
173 'service_colon' => __('Service', 'wpamelia'),
174 'please_select_service' => __('Please select service', 'wpamelia'),
175 'dropdown_category_heading' => __('Category', 'wpamelia'),
176 'dropdown_items_heading' => __('Service', 'wpamelia'),
177 'date_time' => __('Date & Time', 'wpamelia'),
178 'info_step' => __('Your Information', 'wpamelia'),
179 'enter_first_name' => __('Enter first name', 'wpamelia'),
180 'enter_last_name' => __('Enter last name', 'wpamelia'),
181 'enter_email' => __('Enter email', 'wpamelia'),
182 'enter_phone' => __('Enter phone', 'wpamelia'),
183 'payment_step' => __('Payments', 'wpamelia'),
184 'summary_services' => __('Services', 'wpamelia'),
185 'summary_person' => __('person', 'wpamelia'),
186 'summary_persons' => __('people', 'wpamelia'),
187 'summary_event' => __('Event', 'wpamelia'),
188 'appointment_id' => __('Appointment ID', 'wpamelia'),
189 'event_id' => __('Event ID', 'wpamelia'),
190 'congrats_payment' => __('Payment', 'wpamelia'),
191 'congrats_date' => __('Date', 'wpamelia'),
192 'congrats_time' => __('Local Time', 'wpamelia'),
193 'congrats_service' => __('Service', 'wpamelia'),
194 'congrats_employee' => __('Employee', 'wpamelia'),
195 'show_more' => __('Show more', 'wpamelia'),
196 'show_less' => __('Show less', 'wpamelia'),
197 ];
198 }
199
200 /**
201 * Returns the array of the frontend strings for the event shortcode
202 *
203 * @return array
204 */
205 public static function getEventStrings()
206 {
207 return [
208 'event_book_event' => __('Book event', 'wpamelia'),
209 'event_book' => __('Book this event', 'wpamelia'),
210 'event_capacity' => __('Capacity:', 'wpamelia'),
211 'event_filters' => __('Filters', 'wpamelia'),
212 'event_start' => __('Event Starts', 'wpamelia'),
213 'event_end' => __('Event Ends', 'wpamelia'),
214 'event_at' => __('at', 'wpamelia'),
215 'event_close' => __('Close', 'wpamelia'),
216 'event_congrats' => __('Congratulations', 'wpamelia'),
217 'event_payment' => __('Payment', 'wpamelia'),
218 'event_customer_info' => __('Your Information', 'wpamelia'),
219 'event_about_list' => __('About Event', 'wpamelia'),
220 'events_available' => __('Events Available', 'wpamelia'),
221 'event_available' => __('Event Available', 'wpamelia'),
222 'event_search' => __('Search for Events', 'wpamelia'),
223 'event_slot_left' => __('slot left', 'wpamelia'),
224 'event_slots_left' => __('slots left', 'wpamelia'),
225 'event_learn_more' => __('Learn more', 'wpamelia'),
226 'event_read_more' => __('Read more', 'wpamelia'),
227 'event_timetable' => __('Timetable', 'wpamelia'),
228 'event_bringing' => __('How many attendees do you want to book event for?', 'wpamelia'),
229 'event_show_less' => __('Show less', 'wpamelia'),
230 'event_show_more' => __('Show more', 'wpamelia'),
231 'event_location' => __('Event Location', 'wpamelia'),
232 ];
233 }
234
235 /**
236 * Returns the array of the frontend strings for the catalog shortcode
237 *
238 * @return array
239 */
240 public static function getCatalogStrings()
241 {
242 return [
243 'categories' => __('Categories', 'wpamelia'),
244 'category_colon' => __('Category:', 'wpamelia'),
245 'description' => __('Description', 'wpamelia'),
246 'info' => __('Info', 'wpamelia'),
247 'view_more' => __('View More', 'wpamelia'),
248 'view_all' => __('View All', 'wpamelia'),
249 'filter_input' => __('Search', 'wpamelia'),
250 'book_now' => __('Book Now', 'wpamelia'),
251 'about_service' => __('About Service', 'wpamelia'),
252 'view_all_photos' => __('View all photos', 'wpamelia'),
253 'back_btn' => __('Go Back', 'wpamelia'),
254 'heading_service' => __('Service', 'wpamelia'),
255 'heading_services' => __('Services', 'wpamelia'),
256 ];
257 }
258
259 /**
260 * Returns the array of the frontend strings for the event shortcode
261 *
262 * @return array
263 */
264 public static function getCabinetStrings()
265 {
266 return [
267 'available' => __('Available', 'wpamelia'),
268 'booking_cancel_exception' => __('Booking can\'t be canceled', 'wpamelia'),
269 'no_results' => __('There are no results...', 'wpamelia'),
270 'select_service' => __('Select Service', 'wpamelia'),
271 'subtotal' => __('Subtotal', 'wpamelia'),
272 ];
273 }
274 }
275