PluginProbe
VikAppointments Services Booking Calendar / 1.2.20
VikAppointments Services Booking Calendar v1.2.20
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / modules / mod_vikappointments_employees / languages / handler.php
handler.php
169 lines 4.7 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_employees
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 Employees widget languages.
18 *
19 * @since 1.0
20 */
21 class Mod_VikAppointments_EmployeesLanguageHandler 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 * Employees module.
43 */
44
45 case 'VIKAPPOINTMENTS_EMPLOYEES_MODULE_TITLE':
46 $result = __('VikAppointments Employees', 'vikappointments');
47 break;
48
49 case 'VIKAPPOINTMENTS_EMPLOYEES_MODULE_DESCRIPTION':
50 $result = __('Displays a slideshow of some employees.', 'vikappointments');
51 break;
52
53 case 'VAGROUPFILTER':
54 $result = __('Group Filter', 'vikappointments');
55 break;
56
57 case 'VAGROUPFILTERDESC':
58 $result = __('By selecting one or more groups, only the related employees will be used. Otherwise all the employees will be taken.', 'vikappointments');
59 break;
60
61 case 'VAEMPLOYEEFILTER':
62 $result = __('Employees Filter', 'vikappointments');
63 break;
64
65 case 'VAEMPLOYEEFILTERDESC':
66 $result = __('Select all the employees that should be display. Leave empty to display all the employees.', 'vikappointments');
67 break;
68
69 case 'VAEMPLOYEENUMBROW':
70 $result = __('Number of Items', 'vikappointments');
71 break;
72
73 case 'VAEMPLOYEENUMBROWDESC':
74 $result = __('The maximum number of employees to display per slide.', 'vikappointments');
75 break;
76
77 case 'VAEMPLOYEESIMAGE':
78 $result = __('Show Image', 'vikappointments');
79 break;
80
81 case 'VAEMPLOYEESDESC':
82 $result = __('Show Description', 'vikappointments');
83 break;
84
85 case 'VAMODEMPLOYEESBUTTON':
86 $result = __('Show Details Button', 'vikappointments');
87 break;
88
89 case 'VAMODEMPLOYEESBUTTONDESC':
90 $result = __('Display the button used to access the details of the employees.', 'vikappointments');
91 break;
92
93 case 'VAMODEMPLOYEESWIDTH':
94 $result = __('Box Width', 'vikappointments');
95 break;
96
97 case 'VAMODEMPLOYEESWIDTHDESC':
98 $result = __('Width of the employees boxes (specify px or % after the number).', 'vikappointments');
99 break;
100
101 case 'VAHEIGHTIMAGE':
102 $result = __('Image Height', 'vikappointments');
103 break;
104
105 case 'VAHEIGHTIMAGEDESC':
106 $result = __('Height of the images (specify px or % after the number). Leave empty if you don\'t want to force a height.', 'vikappointments');
107 break;
108
109 case 'VAMODEMPLOYEESSCROLLBAR':
110 $result = __('Enable Scrollbar', 'vikappointments');
111 break;
112
113 case 'VAMODEMPLOYEESSCROLLBARDESC':
114 $result = __('Choose if you want to show the scrollbar.', 'vikappointments');
115 break;
116
117 case 'VAMODEMPLOYEESDOTNAV':
118 $result = __('Dotted Navigation', 'vikappointments');
119 break;
120
121 case 'VAMODEMPLOYEESDOTNAVDESC':
122 $result = __('Choose if you want to show the dotted navigation.', 'vikappointments');
123 break;
124
125 case 'VAMODEMPLOYEESARROWS':
126 $result = __('Enable Pagination', 'vikappointments');
127 break;
128
129 case 'VAMODEMPLOYEESARROWSDESC':
130 $result = __('Choose if you want to show the pagination buttons.', 'vikappointments');
131 break;
132
133 case 'VAMODEMPLOYEESAUTOPLAY':
134 $result = __('Autoplay', 'vikappointments');
135 break;
136
137 case 'VAMODEMPLOYEESAUTOPLAYDESC':
138 $result = __('Enable automatic horizontal scrolling.', 'vikappointments');
139 break;
140
141 case 'VAMODEMPLOYEESTIMESCROLL':
142 $result = __('Time Scrolling', 'vikappointments');
143 break;
144
145 case 'VAMODEMPLOYEESTIMESCROLLDESC':
146 $result = __('Autoplay time scrolling in milliseconds.', 'vikappointments');
147 break;
148
149 case 'VAMODEMPLOYEESCONTINUE':
150 $result = __('View Details', 'vikappointments');
151 break;
152
153 case 'VAGROUPFILTER':
154 $result = __('Show Group Name', 'vikappointments');
155 break;
156
157 case 'VAGROUPFILTERDESC':
158 $result = __('By selecting one or more groups, only the related employees will be used. Otherwise all the employees will be taken.', 'vikappointments');
159 break;
160
161 default:
162 // fallback to parent handler for commons
163 $result = parent::translate($string);
164 }
165
166 return $result;
167 }
168 }
169