PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.21
VikAppointments Services Booking Calendar v1.2.21
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / libraries / language / adminsys.php
vikappointments / libraries / language Last commit date
admin.php 1 day ago adminsys.php 1 day ago site.php 1 day ago system.php 1 day ago widget.php 1 day ago
adminsys.php
473 lines
1 <?php
2 /**
3 * @package VikAppointments - Libraries
4 * @subpackage language
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 JLoader::import('adapter.language.handler');
15
16 /**
17 * Switcher class to translate the VikAppointments plugin common languages.
18 *
19 * @since 1.0
20 */
21 class VikAppointmentsLanguageAdminSys implements JLanguageHandler
22 {
23 /**
24 * Checks if exists a translation for the given string.
25 *
26 * @param string $string The string to translate.
27 *
28 * @return string The translated string, otherwise null.
29 */
30 public function translate($string)
31 {
32 $result = null;
33
34 /**
35 * Translations go here.
36 * @tip Use 'TRANSLATORS:' comment to attach a description of the language.
37 */
38
39 switch ($string)
40 {
41 /**
42 * VikAppointments core platform.
43 */
44
45 case 'COM_VIKAPPOINTMENTS':
46 $result = __('VikAppointments', 'vikappointments');
47 break;
48
49 case 'COM_VIKAPPOINTMENTS_MENU':
50 $result = __('VikAppointments', 'vikappointments');
51 break;
52
53 case 'COM_VIKAPPOINTMENTS_MENU_APPOINTMENTS':
54 $result = __('VikAppointments', 'vikappointments');
55 break;
56
57 /**
58 * Employees list view.
59 */
60
61 case 'COM_VIKAPPOINTMENTS_EMPLOYEESLIST_VIEW_DEFAULT_TITLE':
62 $result = __('Employees List', 'vikappointments');
63 break;
64
65 case 'COM_VIKAPPOINTMENTS_EMPLOYEESLIST_VIEW_DEFAULT_DESC':
66 $result = __('Shows the list of all employees to book an appointment.', 'vikappointments');
67 break;
68
69 case 'COM_VIKAPPOINTMENTS_EMPLOYEESLIST_FIELD_SELECT_TITLE':
70 $result = __('Group Filter', 'vikappointments');
71 break;
72
73 case 'COM_VIKAPPOINTMENTS_EMPLOYEESLIST_FIELD_SELECT_TITLE_DESC':
74 $result = __('Choose a group to filter employees.', 'vikappointments');
75 break;
76
77 /**
78 * Employee details view.
79 */
80
81 case 'COM_VIKAPPOINTMENTS_EMPLOYEESEARCH_VIEW_DEFAULT_TITLE':
82 $result = __('Employee Details', 'vikappointments');
83 break;
84
85 case 'COM_VIKAPPOINTMENTS_EMPLOYEESEARCH_VIEW_DEFAULT_DESC':
86 $result = __('Shows the employee calendar to book an appointment.', 'vikappointments');
87 break;
88
89 case 'COM_VIKAPPOINTMENTS_EMPLOYEESEARCH_FIELD_SELECT_TITLE':
90 $result = __('Employee', 'vikappointments');
91 break;
92
93 case 'COM_VIKAPPOINTMENTS_EMPLOYEESEARCH_FIELD_SELECT_TITLE_DESC':
94 $result = __('Choose the employee to show.', 'vikappointments');
95 break;
96
97 /**
98 * Services list view.
99 */
100
101 case 'COM_VIKAPPOINTMENTS_SERVICESLIST_VIEW_DEFAULT_TITLE':
102 $result = __('Services List', 'vikappointments');
103 break;
104
105 case 'COM_VIKAPPOINTMENTS_SERVICESLIST_VIEW_DEFAULT_DESC':
106 $result = __('Shows the list of all services to book an appointment.', 'vikappointments');
107 break;
108
109 case 'COM_VIKAPPOINTMENTS_SERVICESLIST_FIELD_SELECT_TITLE':
110 $result = __('Group Filter', 'vikappointments');
111 break;
112
113 case 'COM_VIKAPPOINTMENTS_SERVICESLIST_FIELD_SELECT_TITLE_DESC':
114 $result = __('Choose a group to filter services.', 'vikappointments');
115 break;
116
117 /**
118 * Service details view.
119 */
120
121 case 'COM_VIKAPPOINTMENTS_SERVICESEARCH_VIEW_DEFAULT_TITLE':
122 $result = __('Service Details', 'vikappointments');
123 break;
124
125 case 'COM_VIKAPPOINTMENTS_SERVICESEARCH_VIEW_DEFAULT_DESC':
126 $result = __('Shows the service calendar to book an appointment.', 'vikappointments');
127 break;
128
129 case 'COM_VIKAPPOINTMENTS_SERVICESEARCH_FIELD_SELECT_TITLE':
130 $result = __('Service', 'vikappointments');
131 break;
132
133 case 'COM_VIKAPPOINTMENTS_SERVICESEARCH_FIELD_SELECT_TITLE_DESC':
134 $result = __('Choose the service to show.', 'vikappointments');
135 break;
136
137 /**
138 * Appointment confirmation view.
139 */
140
141 case 'COM_VIKAPPOINTMENTS_CONFIRMAPP_VIEW_DEFAULT_TITLE':
142 $result = __('Confirmation', 'vikappointments');
143 break;
144
145 case 'COM_VIKAPPOINTMENTS_CONFIRMAPP_VIEW_DEFAULT_DESC':
146 $result = __('Shows the checkout form (only if the cart is not empty).', 'vikappointments');
147 break;
148
149 /**
150 * Order summary view.
151 */
152
153 case 'COM_VIKAPPOINTMENTS_ORDER_VIEW_DEFAULT_TITLE':
154 $result = __('Order View', 'vikappointments');
155 break;
156
157 case 'COM_VIKAPPOINTMENTS_ORDER_VIEW_DEFAULT_DESC':
158 $result = __('Shows the form to view own order.', 'vikappointments');
159 break;
160
161 /**
162 * Orders list view (customers area).
163 */
164
165 case 'COM_VIKAPPOINTMENTS_ALLORDERS_VIEW_DEFAULT_TITLE':
166 $result = __('All Orders View', 'vikappointments');
167 break;
168
169 case 'COM_VIKAPPOINTMENTS_ALLORDERS_VIEW_DEFAULT_DESC':
170 $result = __('This page lists all the orders made for the logged in users.', 'vikappointments');
171 break;
172
173 /**
174 * Employees area.
175 */
176
177 case 'COM_VIKAPPOINTMENTS_EMPLOYEE_LOGIN_VIEW_DEFAULT_TITLE':
178 $result = __('Employees Area', 'vikappointments');
179 break;
180
181 case 'COM_VIKAPPOINTMENTS_EMPLOYEE_LOGIN_VIEW_DEFAULT_DESC':
182 $result = __('Shows the login page for registered employees.', 'vikappointments');
183 break;
184
185 /**
186 * Packages view.
187 */
188
189 case 'COM_VIKAPPOINTMENTS_PACKAGES_VIEW_DEFAULT_TITLE':
190 $result = __('Packages', 'vikappointments');
191 break;
192
193 case 'COM_VIKAPPOINTMENTS_PACKAGES_VIEW_DEFAULT_DESC':
194 $result = __('Shows the list of all available packages.', 'vikappointments');
195 break;
196
197 case 'COM_VIKAPPOINTMENTS_PACKAGES_FIELD_SELECT_TITLE':
198 $result = __('Group Filter', 'vikappointments');
199 break;
200
201 case 'COM_VIKAPPOINTMENTS_PACKAGES_FIELD_SELECT_TITLE_DESC':
202 $result = __('Choose a group to filter packages.', 'vikappointments');
203 break;
204
205 /**
206 * Subscriptions view.
207 */
208
209 case 'COM_VIKAPPOINTMENTS_SUBSCRIPTIONS_VIEW_DEFAULT_TITLE':
210 $result = __('Subscriptions', 'vikappointments');
211 break;
212
213 case 'COM_VIKAPPOINTMENTS_SUBSCRIPTIONS_VIEW_DEFAULT_DESC':
214 $result = __('Displays the page that a customer can use to purchase a subscription.', 'vikappointments');
215 break;
216
217 /**
218 * ACL rules (access.xml)
219 */
220
221 case 'VAP_ACCESS_EMPLOYEES':
222 $result = __('Employees View', 'vikappointments');
223 break;
224
225 case 'VAP_ACCESS_EMPLOYEES_DESC':
226 $result = __('This rule allows the users to access to the employees view.', 'vikappointments');
227 break;
228
229 case 'VAP_ACCESS_GROUPS':
230 $result = __('Groups View', 'vikappointments');
231 break;
232
233 case 'VAP_ACCESS_GROUPS_DESC':
234 $result = __('This rule allows the users to access to the groups view.', 'vikappointments');
235 break;
236
237 case 'VAP_ACCESS_SERVICES':
238 $result = __('Services View', 'vikappointments');
239 break;
240
241 case 'VAP_ACCESS_SERVICES_DESC':
242 $result = __('This rule allows the users to access to the services view.', 'vikappointments');
243 break;
244
245 case 'VAP_ACCESS_OPTIONS':
246 $result = __('Options View', 'vikappointments');
247 break;
248
249 case 'VAP_ACCESS_OPTIONS_DESC':
250 $result = __('This rule allows the users to access to the options view.', 'vikappointments');
251 break;
252
253 case 'VAP_ACCESS_LOCATIONS':
254 $result = __('Locations View', 'vikappointments');
255 break;
256
257 case 'VAP_ACCESS_LOCATIONS_DESC':
258 $result = __('This rule allows the users to access to the locations view.', 'vikappointments');
259 break;
260
261 case 'VAP_ACCESS_PACKAGES':
262 $result = __('Packages View', 'vikappointments');
263 break;
264
265 case 'VAP_ACCESS_PACKAGES_DESC':
266 $result = __('This rule allows the users to access to the packages view.', 'vikappointments');
267 break;
268
269 case 'VAP_ACCESS_RESERVATIONS':
270 $result = __('Reservations View', 'vikappointments');
271 break;
272
273 case 'VAP_ACCESS_RESERVATIONS_DESC':
274 $result = __('This rule allows the users to access to the reservations view.', 'vikappointments');
275 break;
276
277 case 'VAP_ACCESS_WAITINGLIST':
278 $result = __('Waiting List View', 'vikappointments');
279 break;
280
281 case 'VAP_ACCESS_WAITINGLIST_DESC':
282 $result = __('This rule allows the users to access to the waiting list view.', 'vikappointments');
283 break;
284
285 case 'VAP_ACCESS_CUSTOMERS':
286 $result = __('Customers View', 'vikappointments');
287 break;
288
289 case 'VAP_ACCESS_CUSTOMERS_DESC':
290 $result = __('This rule allows the users to access to the customers view.', 'vikappointments');
291 break;
292
293 case 'VAP_ACCESS_COUPONS':
294 $result = __('Coupons View', 'vikappointments');
295 break;
296
297 case 'VAP_ACCESS_COUPONS_DESC':
298 $result = __('This rule allows the users to access to the coupons view.', 'vikappointments');
299 break;
300
301 case 'VAP_ACCESS_CALENDAR':
302 $result = __('Calendar View', 'vikappointments');
303 break;
304
305 case 'VAP_ACCESS_CALENDAR_DESC':
306 $result = __('This rule allows the users to access to the calendar view.', 'vikappointments');
307 break;
308
309 case 'VAP_ACCESS_DASHBOARD':
310 $result = __('Dashboard View', 'vikappointments');
311 break;
312
313 case 'VAP_ACCESS_DASHBOARD_DESC':
314 $result = __('This rule allows the users to access to the dashboard view.', 'vikappointments');
315 break;
316
317 case 'VAP_ACCESS_COUNTRIES':
318 $result = __('Countries View', 'vikappointments');
319 break;
320
321 case 'VAP_ACCESS_COUNTRIES_DESC':
322 $result = __('This rule allows the users to access to the countries view.', 'vikappointments');
323 break;
324
325 case 'VAP_ACCESS_REVIEWS':
326 $result = __('Reviews View', 'vikappointments');
327 break;
328
329 case 'VAP_ACCESS_REVIEWS_DESC':
330 $result = __('This rule allows the users to access to the reviews view.', 'vikappointments');
331 break;
332
333 case 'VAP_ACCESS_SUBSCRIPTIONS':
334 $result = __('Subscriptions View', 'vikappointments');
335 break;
336
337 case 'VAP_ACCESS_SUBSCRIPTIONS_DESC':
338 $result = __('This rule allows the users to access to the subscriptions view.', 'vikappointments');
339 break;
340
341 case 'VAP_ACCESS_CUSTFIELDS':
342 $result = __('Custom Fields View', 'vikappointments');
343 break;
344
345 case 'VAP_ACCESS_CUSTFIELDS_DESC':
346 $result = __('This rule allows the users to access to the custom fields view.', 'vikappointments');
347 break;
348
349 case 'VAP_ACCESS_PAYMENTS':
350 $result = __('Payments View', 'vikappointments');
351 break;
352
353 case 'VAP_ACCESS_PAYMENTS_DESC':
354 $result = __('This rule allows the users to access to the payments view.', 'vikappointments');
355 break;
356
357 case 'VAP_ACCESS_STATUSCODES':
358 $result = __('Status Codes View', 'vikappointments');
359 break;
360
361 case 'VAP_ACCESS_STATUSCODES_DESC':
362 $result = __('This rule allows the users to access to the status codes view.', 'vikappointments');
363 break;
364
365 case 'VAP_ACCESS_TAXES':
366 $result = __('Taxes View', 'vikappointments');
367 break;
368
369 case 'VAP_ACCESS_TAXES_DESC':
370 $result = __('This rule allows the users to access to the taxes view.', 'vikappointments');
371 break;
372
373 case 'VAP_ACCESS_ARCHIVE':
374 $result = __('Invoices Archive View', 'vikappointments');
375 break;
376
377 case 'VAP_ACCESS_ARCHIVE_DESC':
378 $result = __('This rule allows the users to access to the invoices archive view.', 'vikappointments');
379 break;
380
381 case 'VAP_ACCESS_MEDIA':
382 $result = __('Media View', 'vikappointments');
383 break;
384
385 case 'VAP_ACCESS_MEDIA_DESC':
386 $result = __('This rule allows the users to access to the media view.', 'vikappointments');
387 break;
388
389 case 'VAP_ACCESS_CLOSINGDAYS':
390 $result = __('Closing Days', 'vikappointments');
391 break;
392
393 case 'VAP_ACCESS_CLOSINGDAYS_DESC':
394 $result = __('This rule allows the users to manage the global closing days and periods.', 'vikappointments');
395 break;
396
397 case 'VAP_ACCESS_CONFIG':
398 $result = __('Configuration', 'vikappointments');
399 break;
400
401 case 'VAP_ACCESS_CONFIG_DESC':
402 $result = __('This rule allows the users to manage the configuration of the component.', 'vikappointments');
403 break;
404
405 case 'VAP_ACCESS_ANALYTICS_FINANCE':
406 $result = __('Financial Analytics', 'vikappointments');
407 break;
408
409 case 'VAP_ACCESS_ANALYTICS_FINANCE_DESC':
410 $result = __('This rule allows the users to access the financial analytics page.', 'vikappointments');
411 break;
412
413 case 'VAP_ACCESS_ANALYTICS_APPOINTMENTS':
414 $result = __('Appointments Analytics', 'vikappointments');
415 break;
416
417 case 'VAP_ACCESS_ANALYTICS_APPOINTMENTS_DESC':
418 $result = __('This rule allows the users to access the appointments analytics page.', 'vikappointments');
419 break;
420
421 case 'VAP_ACCESS_ANALYTICS_SERVICES':
422 $result = __('Services Analytics', 'vikappointments');
423 break;
424
425 case 'VAP_ACCESS_ANALYTICS_SERVICES_DESC':
426 $result = __('This rule allows the users to access the services analytics page.', 'vikappointments');
427 break;
428
429 case 'VAP_ACCESS_ANALYTICS_EMPLOYEES':
430 $result = __('Employees Analytics', 'vikappointments');
431 break;
432
433 case 'VAP_ACCESS_ANALYTICS_EMPLOYEES_DESC':
434 $result = __('This rule allows the users to access the employees analytics page.', 'vikappointments');
435 break;
436
437 case 'VAP_ACCESS_ANALYTICS_OPTIONS':
438 $result = __('Options Analytics', 'vikappointments');
439 break;
440
441 case 'VAP_ACCESS_ANALYTICS_OPTIONS_DESC':
442 $result = __('This rule allows the users to access the options analytics page.', 'vikappointments');
443 break;
444
445 case 'VAP_ACCESS_ANALYTICS_CUSTOMERS':
446 $result = __('Customers Analytics', 'vikappointments');
447 break;
448
449 case 'VAP_ACCESS_ANALYTICS_CUSTOMERS_DESC':
450 $result = __('This rule allows the users to access the customers analytics page.', 'vikappointments');
451 break;
452
453 case 'VAP_ACCESS_ANALYTICS_PACKAGES':
454 $result = __('Packages Analytics', 'vikappointments');
455 break;
456
457 case 'VAP_ACCESS_ANALYTICS_PACKAGES_DESC':
458 $result = __('This rule allows the users to access the packages analytics page.', 'vikappointments');
459 break;
460
461 case 'VAP_ACCESS_ANALYTICS_SUBSCRIPTIONS':
462 $result = __('Subscriptions Analytics', 'vikappointments');
463 break;
464
465 case 'VAP_ACCESS_ANALYTICS_SUBSCRIPTIONS_DESC':
466 $result = __('This rule allows the users to access the subscriptions analytics page.', 'vikappointments');
467 break;
468 }
469
470 return $result;
471 }
472 }
473