PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
vikbooking / modules / mod_vikbooking_channelrates / language / handler.php

handler.php in VikBooking Hotel Booking Engine & PMS 1.8.16, at modules/mod_vikbooking_channelrates/language/handler.php

259 lines 9.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // No direct access
4 defined('ABSPATH') or die('No script kiddies please!');
5
6 JLoader::import('adapter.language.handler');
7
8 /**
9 * Switcher class to translate the VikBooking Channel Rates widget languages.
10 *
11 * @since 1.0
12 */
13 class Mod_VikBooking_ChannelratesLanguageHandler implements JLanguageHandler
14 {
15 /**
16 * Checks if exists a translation for the given string.
17 *
18 * @param string $string The string to translate.
19 *
20 * @return string The translated string, otherwise null.
21 */
22 public function translate($string)
23 {
24 $result = null;
25
26 /**
27 * Translations go here.
28 * @tip Use 'TRANSLATORS:' comment to attach a description of the language.
29 */
30
31 switch ($string)
32 {
33 case 'MOD_VIKBOOKING_CHANNELRATES':
34 $result = __('VikBooking Channel Rates', 'vikbooking');
35 break;
36 case 'MOD_VIKBOOKING_CHANNELRATES_DESC':
37 $result = __('Rates comparison between the website and the channels connected with Vik Channel Manager.', 'vikbooking');
38 break;
39 case 'VBOMODCMRSELCHANNELS':
40 $result = __('Select the Channels to Compare', 'vikbooking');
41 break;
42 case 'VBOMODCMRSELCHANNELSHELP':
43 $result = __('The list of channels to display with the corresponding rates for the selected period. Only the channels for which you have mapped some rooms will be available. Channels based on iCal connections do not support rooms mapping. Please notice that the module reads the rates from the website and applies the rules for altering the rates for the channels. This means that you must have launched before a Bulk Action of type Rates Upload from Vik Channel Manager.', 'vikbooking');
44 break;
45 case 'VBOMODCMRDEFPRICE':
46 $result = __('Default Type of Price', 'vikbooking');
47 break;
48 case 'VBOMODCMRDEFPRICEHELP':
49 $result = __('Select the preferred type of price to use (if available) for displaying the rates. For example, if you have multiple rate plans for your rooms, like \'Free Cancellation\' and \'Non Refundable\', choose which rates you would like to display as starting from price. If empty, the system will always take the lowest rate available for each room.', 'vikbooking');
50 break;
51 case 'VBOMODCMRDEFPRICEEMPTY':
52 $result = __('Lowest Rate Available', 'vikbooking');
53 break;
54 case 'VBOMODCMRDEFTAX':
55 $result = __('Taxes', 'vikbooking');
56 break;
57 case 'VBOMODCMRDEFTAXHELP':
58 $result = __('Choose whether the rates displayed should be before taxes or after taxes.', 'vikbooking');
59 break;
60 case 'VBOMODCMRDEFTAXEX':
61 $result = __('Rates Before Tax (Excluded)', 'vikbooking');
62 break;
63 case 'VBOMODCMRDEFTAXIN':
64 $result = __('Rates After Tax (Included)', 'vikbooking');
65 break;
66 case 'VBOMODCMRINTROTXT':
67 $result = __('Intro Text', 'vikbooking');
68 break;
69 case 'VBOMODCMRINTROTXTHELP':
70 $result = __('The text to be displayed above the search form. It should contain attractive words for marketing, like \'Best Available Rate by booking from our website\'.', 'vikbooking');
71 break;
72 case 'VBOMODCMRINTROTXTDEF':
73 $result = __('Best Available Rate by booking from our website!', 'vikbooking');
74 break;
75 case 'VBOMODCMRMODSTYLE':
76 $result = __('Layout Style', 'vikbooking');
77 break;
78 case 'VBOMODCMRMODSTYLEHELP':
79 $result = __('Choose the style of the module you prefer. The style \'Flat\' will occupy space in the position of your template where the module is published. This style will display the module vertically together with the search form. The style \'Fixed\' will place the module at the bottom of your page, on top of any other content. With this style, the module will not move when the page scrolls because it has a fixed position.', 'vikbooking');
80 break;
81 case 'VBOMODCMRMODSTYLEFLATVERT':
82 $result = __('Flat, Vertical', 'vikbooking');
83 break;
84 case 'VBOMODCMRMODSTYLEFLATFIXD':
85 $result = __('Fixed', 'vikbooking');
86 break;
87 case 'COM_MODULES_CONTACTS_FIELDSET_LABEL':
88 $result = __('Contact Buttons', 'vikbooking');
89 break;
90 case 'VBOMODCMRCEMAIL':
91 $result = __('Email Contact', 'vikbooking');
92 break;
93 case 'VBOMODCMRCEMAILHELP':
94 $result = __('If not empty, a button will be displayed for the users to contact you via email.', 'vikbooking');
95 break;
96 case 'VBOMODCMRCMESSENGER':
97 $result = __('Messenger Contact', 'vikbooking');
98 break;
99 case 'VBOMODCMRCMESSENGERHELP':
100 $result = __('If not empty, a button will be displayed for the users to contact you through Facebook Messenger. Enter here your Facebook vanity username. If you don’t have a username yet, you can use your numerical Facebook profile ID instead.', 'vikbooking');
101 break;
102 case 'VBOMODCMRCWHATSAPP':
103 $result = __('Whatsapp Contact', 'vikbooking');
104 break;
105 case 'VBOMODCMRCWHATSAPPHELP':
106 $result = __('If not empty, a button will be displayed for the users to contact you through Whatsapp. Enter your phone number without leading zeros, but with the plus sign before your country code. Ex. +5511999999999', 'vikbooking');
107 break;
108 case 'VBOMODCMRCPHONE':
109 $result = __('Phone Contact', 'vikbooking');
110 break;
111 case 'VBOMODCMRCPHONEHELP':
112 $result = __('If not empty, a button will be displayed for the users to call you through their mobile phone.', 'vikbooking');
113 break;
114 case 'VBOMODCMRREFRESHRATES':
115 $result = __('Refresh Rates', 'vikbooking');
116 break;
117 case 'SEARCHD':
118 $result = __('Book Now', 'vikbooking');
119 break;
120 case 'VBMCHECKIN':
121 $result = __('Check-in date', 'vikbooking');
122 break;
123 case 'VBMCHECKOUT':
124 $result = __('Check-out date', 'vikbooking');
125 break;
126 case 'VBMFORMROOMSN':
127 $result = __('Rooms', 'vikbooking');
128 break;
129 case 'VBMFORMADULTS':
130 $result = __('Adults', 'vikbooking');
131 break;
132 case 'VBMHORSGUESTS':
133 $result = __('Guests', 'vikbooking');
134 break;
135 case 'VBMFORMNUMROOM':
136 $result = __('Room', 'vikbooking');
137 break;
138 case 'VBFORMCHILDREN':
139 $result = __('Children', 'vikbooking');
140 break;
141 case 'VBMJSTOTNIGHTS':
142 $result = __('Nights', 'vikbooking');
143 break;
144 case 'VBOMODCMRWEBSITERATE':
145 $result = __('Our Best Rate', 'vikbooking');
146 break;
147 case 'VBJQCALDONE':
148 $result = __('Done', 'vikbooking');
149 break;
150 case 'VBJQCALPREV':
151 $result = __('Prev', 'vikbooking');
152 break;
153 case 'VBJQCALNEXT':
154 $result = __('Next', 'vikbooking');
155 break;
156 case 'VBJQCALTODAY':
157 $result = __('Today', 'vikbooking');
158 break;
159 case 'VBJQCALSUN':
160 $result = __('Sunday', 'vikbooking');
161 break;
162 case 'VBJQCALMON':
163 $result = __('Monday', 'vikbooking');
164 break;
165 case 'VBJQCALTUE':
166 $result = __('Tuesday', 'vikbooking');
167 break;
168 case 'VBJQCALWED':
169 $result = __('Wednesday', 'vikbooking');
170 break;
171 case 'VBJQCALTHU':
172 $result = __('Thursday', 'vikbooking');
173 break;
174 case 'VBJQCALFRI':
175 $result = __('Friday', 'vikbooking');
176 break;
177 case 'VBJQCALSAT':
178 $result = __('Saturday', 'vikbooking');
179 break;
180 case 'VBJQCALWKHEADER':
181 $result = __('Wk', 'vikbooking');
182 break;
183 case 'VBMONTHONE':
184 $result = __('January', 'vikbooking');
185 break;
186 case 'VBMONTHTWO':
187 $result = __('February', 'vikbooking');
188 break;
189 case 'VBMONTHTHREE':
190 $result = __('March', 'vikbooking');
191 break;
192 case 'VBMONTHFOUR':
193 $result = __('April', 'vikbooking');
194 break;
195 case 'VBMONTHFIVE':
196 $result = __('May', 'vikbooking');
197 break;
198 case 'VBMONTHSIX':
199 $result = __('June', 'vikbooking');
200 break;
201 case 'VBMONTHSEVEN':
202 $result = __('July', 'vikbooking');
203 break;
204 case 'VBMONTHEIGHT':
205 $result = __('August', 'vikbooking');
206 break;
207 case 'VBMONTHNINE':
208 $result = __('September', 'vikbooking');
209 break;
210 case 'VBMONTHTEN':
211 $result = __('October', 'vikbooking');
212 break;
213 case 'VBMONTHELEVEN':
214 $result = __('November', 'vikbooking');
215 break;
216 case 'VBMONTHTWELVE':
217 $result = __('December', 'vikbooking');
218 break;
219 case 'VBOMODCMRCUSTRMODPCENT':
220 $result = __('Custom increase mode', 'vikbooking');
221 break;
222 case 'VBOMODCMRCUSTRMODPCENTHELP':
223 $result = __('The website rates modification rules for the OTAs are taken automatically from what was set up on Vik Channel Manager. However, it is also possible to force the increase operator for the website rates to calculate the final costs on the OTAs. Choose between a percent increase operator or an absolute amount in your currency. For example, 15 % or EUR 20', 'vikbooking');
224 break;
225 case 'VBOMODCMRCUSTRMODPCENTP':
226 $result = __('Percent %', 'vikbooking');
227 break;
228 case 'VBOMODCMRCUSTRMODPCENTF':
229 $result = __('Absolute amount', 'vikbooking');
230 break;
231 case 'VBOMODCMRCUSTRMODVAL':
232 $result = __('Custom increase value', 'vikbooking');
233 break;
234 case 'VBOMODCMRCUSTRMODVALHELP':
235 $result = __('The value for increasing the website rates and to transmit them to the OTAs is taken automatically from what you have configured in Vik Channel Manager. However, you can force a custom increase value to be used for the calculation of the final costs for the OTAs by setting a value here greater than zero. Set the proper increase mode to use this value as a fixed or a percent amount.', 'vikbooking');
236 break;
237
238 /**
239 * Layout and Page
240 */
241
242 case 'JLAYOUT':
243 $result = __('Layout', 'vikbooking');
244 break;
245 case 'JLAYOUT_DESC':
246 $result = __('The layout of the module to use. The available layouts are contained within the <b>tmpl</b> folder of the module.', 'vikbooking');
247 break;
248 case 'JMENUITEM':
249 $result = __('Page', 'vikbooking');
250 break;
251 case 'JMENUITEM_DESC':
252 $result = __('Select a page to start the booking process. The page must use a VikBooking shortcode.', 'vikbooking');
253 break;
254 }
255
256 return $result;
257 }
258 }
259