PluginProbe
CSS & JavaScript Toolbox / 10
CSS & JavaScript Toolbox v10
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | css-js-toolbox.class.php +9 -8 trunk10 View file →
@@ -83,9 +83,9 @@
83 83 * put your comment there...
84 84 *
85 85 * @var mixed
86 86 */
87 - protected static $ongettext = [ 'parameters' => [ 'text' ] ];
87 + protected static $ongettext = array( 'parameters' => array( 'text' ) );
88 88
89 89 /**
90 90 * put your comment there...
91 91 *
@@ -90,9 +90,9 @@
90 90 * put your comment there...
91 91 *
92 92 * @var mixed
93 93 */
94 - protected static $onimport = [ 'parameters' => [ 'vpaths' ] ];
94 + protected static $onimport = array( 'parameters' => array( 'vpaths' ) );
95 95
96 96 /**
97 97 * put your comment there...
98 98 *
@@ -97,9 +97,9 @@
97 97 * put your comment there...
98 98 *
99 99 * @var mixed
100 100 */
101 - protected static $oninstantiate = [ 'parameters' => [ 'instance' ] ];
101 + protected static $oninstantiate = array( 'parameters' => array( 'instance' ) );
102 102
103 103 /**
104 104 * put your comment there...
105 105 *
@@ -104,9 +104,9 @@
104 104 * put your comment there...
105 105 *
106 106 * @var mixed
107 107 */
108 - protected $onloadconfiguration = [ 'parameters' => [ 'configuration' ] ];
108 + protected $onloadconfiguration = array( 'parameters' => array( 'configuration' ) );
109 109
110 110 /**
111 111 * put your comment there...
112 112 *
@@ -111,9 +111,9 @@
111 111 * put your comment there...
112 112 *
113 113 * @var mixed
114 114 */
115 - protected $onloaddbdriver = [ 'parameters' => [ 'dbdriver' ] ];
115 + protected $onloaddbdriver = array( 'parameters' => array( 'dbdriver' ) );
116 116
117 117 /**
118 118 * put your comment there...
119 119 *
@@ -118,9 +118,9 @@
118 118 * put your comment there...
119 119 *
120 120 * @var mixed
121 121 */
122 - protected static $onresolvepath = [ 'parameters' => [ 'path', 'vpath' ] ];
122 + protected static $onresolvepath = array( 'parameters' => array( 'path', 'vpath' ) );
123 123
124 124 /**
125 125 * put your comment there...
126 126 *
@@ -210,10 +210,11 @@
210 210 * @param mixed $text
211 211 */
212 212 public static function getText( $text )
213 213 {
214 - // Simply return text without any translation attempts
215 - return $text;
214 + // Make sure to don't use $this while calling!
215 + // $this might be an object other than CssJSToolbox!
216 + return self::__callStatic( 'cssJSToolbox.ongettext', array( __( $text, CJTOOLBOX_TEXT_DOMAIN ) ) );
216 217 }
217 218
218 219 /**
219 220 * put your comment there...