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 / modules / mod_vikappointments_services_shuffle / languages / handler.php
handler.php
105 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package VikAppointments
4 * @subpackage mod_vikappointments_services_shuffle
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2023 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 to this file
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 VikAppointmentsLoader::import('language.widget');
15
16 /**
17 * Switcher class to translate the VikAppointments Services Shuffle widget languages.
18 *
19 * @since 1.0
20 */
21 class Mod_VikAppointments_Services_ShuffleLanguageHandler extends VikAppointmentsLanguageWidget
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 * Services shuffle module.
43 */
44
45 case 'VIKAPPOINTMENTS_SERVICES_SHUFFLE_MODULE_TITLE':
46 $result = __('VikAppointments Services Shuffle', 'vikappointments');
47 break;
48
49 case 'VIKAPPOINTMENTS_SERVICES_SHUFFLE_MODULE_DESCRIPTION':
50 $result = __('Displays a grid of services, which can be shuffled.', 'vikappointments');
51 break;
52
53 case 'VAPFIELDORDFILT':
54 $result = __('Ordering and Filtering', 'vikappointments');
55 break;
56
57 case 'VAPFIELDORDFILTDESC':
58 $result = __('Choose how the services should be sorted.', 'vikappointments');
59 break;
60
61 case 'VAPORDFILTOPT1':
62 $result = __('Default Ordering', 'vikappointments');
63 break;
64
65 case 'VAPORDFILTOPT2':
66 $result = __('By Name', 'vikappointments');
67 break;
68
69 case 'VAPFIELDSHOWGN':
70 $result = __('Show Group Name', 'vikappointments');
71 break;
72
73 case 'VAPFIELDGROUPS':
74 $result = __('Groups', 'vikappointments');
75 break;
76
77 case 'VAPFIELDGROUPSDESC':
78 $result = __('Leave this field empty to select all the groups.', 'vikappointments');
79 break;
80
81 case 'VAPFIELDSERVICES':
82 $result = __('Services', 'vikappointments');
83 break;
84
85 case 'VAPFIELDSERVICESDESC':
86 $result = __('Leave this field empty to select all the services.', 'vikappointments');
87 break;
88
89 case 'VAPGRIDALL':
90 $result = __('All Groups', 'vikappointments');
91 break;
92
93 case 'VAPCONTINUE':
94 $result = __('Continue', 'vikappointments');
95 break;
96
97 default:
98 // fallback to parent handler for commons
99 $result = parent::translate($string);
100 }
101
102 return $result;
103 }
104 }
105