/** * Provides a platform-specific translation function * @param string $key The translation key * @return string */ public function translate($key) { if (class_exists('AEUtilTranslate')) { return AEUtilTranslate::_($key); // Doing so forces autoloading of the custom translator class } }
public static function sprintf($string) { return AEUtilTranslate::sprintf($string); }
/** * Provides a platform-specific translation function * @param string $key The translation key * @return string */ public static function translate($key) { if(defined('AKEEBACLI')) { if(class_exists('AEUtilTranslate')) { return AEUtilTranslate::_($key); // Doing so forces autoloading of the custom translator class } } return JText::_($key); }