| @@ -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... |