/** * Smarty {gettext} modifier plugin * * Type: modifier<br> * Name: gettext<br> * Purpose: Replace with the chosen language for this text * * @param string $str * @return string */ function smarty_modifier_gettext($str) { return expLang::gettext($str); }
/** * Smarty {gettext} function plugin * * Type: function<br> * Name: gettext<br> * Purpose: Replace with the chosen language for this text * * @param $params * @param $smarty */ function smarty_function_gettext($params, &$smarty) { echo expLang::gettext($params['str']); }
function gt($s) { return expLang::gettext($s); }