PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.6.4
VikBooking Hotel Booking Engine & PMS v1.6.4
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_currencyconverter / language / handler.php

handler.php in VikBooking Hotel Booking Engine & PMS 1.6.4, at modules/mod_vikbooking_currencyconverter/language/handler.php

81 lines 2.2 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 Currency Converter widget languages.
10 *
11 * @since 1.0
12 */
13 class Mod_VikBooking_CurrencyconverterLanguageHandler 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 /**
34 * Name, Description and Parameters
35 */
36
37 case 'MOD_VIKBOOKING_CURRENCYCONVERTER':
38 $result = __('VikBooking Currency Converter', 'vikbooking');
39 break;
40 case 'MOD_VIKBOOKING_CURRENCYCONVERTER_DESC':
41 $result = __('Live conversion of room rates.', 'vikbooking');
42 break;
43 case 'PARAMALLOWEDCURRENCIES':
44 $result = __('Allowed Currencies for conversion', 'vikbooking');
45 break;
46 case 'PARAMVBONLY':
47 $result = __('Show conversion form only within VikBooking', 'vikbooking');
48 break;
49 case 'PARAMCURNAME':
50 $result = __('Currency Name Format', 'vikbooking');
51 break;
52 case 'PARAMCURNAMEHELP':
53 $result = __('i.e. the Three Letters format will print USD, the Full Name format will print United States Dollar while the Long format will print United States Dollar (USD)', 'vikbooking');
54 break;
55 case 'PARAMCURNAMEFORMATONE':
56 $result = __('Three Letters', 'vikbooking');
57 break;
58 case 'PARAMCURNAMEFORMATTWO':
59 $result = __('Full Name', 'vikbooking');
60 break;
61 case 'PARAMCURNAMEFORMATTHREE':
62 $result = __('Long', 'vikbooking');
63 break;
64 case 'JNO':
65 $result = __('No', 'vikbooking');
66 break;
67 case 'JYES':
68 $result = __('Yes', 'vikbooking');
69 break;
70 case 'JLAYOUT':
71 $result = __('Layout', 'vikbooking');
72 break;
73 case 'JLAYOUT_DESC':
74 $result = __('The layout of the module to use. The available layouts are contained within the <b>tmpl</b> folder of the module.', 'vikbooking');
75 break;
76 }
77
78 return $result;
79 }
80 }
81