added smarty translate html function