PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.6.5
VikBooking Hotel Booking Engine & PMS v1.6.5
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_otareviews / language / handler.php

handler.php in VikBooking Hotel Booking Engine & PMS 1.6.5, at modules/mod_vikbooking_otareviews/language/handler.php

149 lines 4.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 OTA Reviews widget languages.
10 *
11 * @since 1.0
12 */
13 class Mod_VikBooking_OtareviewsLanguageHandler 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_OTAREVIEWS':
34 $result = __('VikBooking OTA Reviews', 'vikbooking');
35 break;
36 case 'MOD_VIKBOOKING_OTAREVIEWS_DESC':
37 $result = __('Widget to show the reviews downloaded from the OTAs by the Channel Manager.', 'vikbooking');
38 break;
39 case 'VBOMODOTAREVCHOOSECH':
40 $result = __('Channel Account', 'vikbooking');
41 break;
42 case 'VBOMODOTAREVCHOOSECHHELP':
43 $result = __('Choose the channel-account combination for which you would like to display the review or the global score. Some data must have been downloaded from the channels in order to be able to display some contents.', 'vikbooking');
44 break;
45 case 'VBOMODOTAREVORSCORE':
46 $result = __('Reviews or Score', 'vikbooking');
47 break;
48 case 'VBOMODOTAREVORSCOREHELP':
49 $result = __('Choose whether to display the reviews or the global score for the selected channel-account.', 'vikbooking');
50 break;
51 case 'VBOMODOTAREVSHOWREVS':
52 $result = __('Reviews', 'vikbooking');
53 break;
54 case 'VBOMODOTAREVSHOWSCORE':
55 $result = __('Global Score', 'vikbooking');
56 break;
57 case 'VBOMODOTAREVSORTING':
58 $result = __('Sorting', 'vikbooking');
59 break;
60 case 'VBOMODOTAREVSORTSCORE':
61 $result = __('by score', 'vikbooking');
62 break;
63 case 'VBOMODOTAREVSORTDATE':
64 $result = __('by date', 'vikbooking');
65 break;
66 case 'VBOMODOTAREVORDERING':
67 $result = __('Ordering', 'vikbooking');
68 break;
69 case 'VBOMODOTAREVORDERASC':
70 $result = __('Ascending', 'vikbooking');
71 break;
72 case 'VBOMODOTAREVORDERDESC':
73 $result = __('Descending', 'vikbooking');
74 break;
75 case 'VBOMODOTAREVINTROTXT':
76 $result = __('Intro Text', 'vikbooking');
77 break;
78 case 'VBOMODOTAREVINTROTXTHELP':
79 $result = __('An optional introduction text that can be printed above the reviews or the global score.', 'vikbooking');
80 break;
81 case 'VBOMODOTAREVLIM':
82 $result = __('Limit', 'vikbooking');
83 break;
84 case 'VBOMODOTAREVLIMHELP':
85 $result = __('The maximum number of reviews to display.', 'vikbooking');
86 break;
87 case 'VBOMODREVSREVBASEDONTOT':
88 $result = __('based on %d reviews', 'vikbooking');
89 break;
90 case 'VBOMODOTAREVCONTENT':
91 $result = __('Contents Level', 'vikbooking');
92 break;
93 case 'VBOMODOTAREVCONTENTHELP':
94 $result = __('Choose how many contents to display. The result may be different depending if you choose to display the reviews or the global score. Selecting maximum will display all the possible information available with the channel, while choosing compact will display only the minimum information.', 'vikbooking');
95 break;
96 case 'VBOMODOTAREVCONTENTSTAND':
97 $result = __('Maximum', 'vikbooking');
98 break;
99 case 'VBOMODOTAREVCONTENTCOMPA':
100 $result = __('Compact', 'vikbooking');
101 break;
102 case 'VBOMODOTAREVWEBSITE':
103 $result = __('Website', 'vikbooking');
104 break;
105
106 /**
107 * Review categories
108 */
109 case 'VBOGREVCOMFORT':
110 $result = __('Comfort', 'vikbooking');
111 break;
112 case 'VBOGREVLOCATION':
113 $result = __('Location', 'vikbooking');
114 break;
115 case 'VBOGREVCLEAN':
116 $result = __('Clean', 'vikbooking');
117 break;
118 case 'VBOGREVVALUE':
119 $result = __('Value for money', 'vikbooking');
120 break;
121 case 'VBOGREVSTAFF':
122 $result = __('Staff', 'vikbooking');
123 break;
124 case 'VBOGREVFACILITIES':
125 $result = __('Facilities', 'vikbooking');
126 break;
127
128 /**
129 * Layout and Page
130 */
131
132 case 'JLAYOUT':
133 $result = __('Layout', 'vikbooking');
134 break;
135 case 'JLAYOUT_DESC':
136 $result = __('The layout of the module to use. The available layouts are contained within the <b>tmpl</b> folder of the module.', 'vikbooking');
137 break;
138 case 'JMENUITEM':
139 $result = __('Page', 'vikbooking');
140 break;
141 case 'JMENUITEM_DESC':
142 $result = __('Select a page to start the booking process. The page must use a VikBooking shortcode.', 'vikbooking');
143 break;
144 }
145
146 return $result;
147 }
148 }
149