Exemplo n.º 1
0
/**
 * 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);
}
Exemplo n.º 2
0
/**
 * 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']);
}
Exemplo n.º 3
0
function gt($s)
{
    return expLang::gettext($s);
}