33 foreach (array_keys($params) as $key)
34 if (preg_match(
"/^r[0-9]+$/", $key))
35 array_push($variables, $params[$key]);
37 $value =
Message::get($params[
'text'], $variables, $params[
'domain'], $params[
'lang']);
38 if (isset($params[
'varname']))
39 $smarty->assign($params[
'varname'], $value);
get($message, $parameters=null, $domain='', $lang='')
smarty_function_translate($params, &$smarty)