public function substitute($label, $token_values, $language, $options = array()) {
//        Logger::instance()->debug("Substituting $label in " . $language->locale);
        $token_value = $this->tokenValue($token_values, $language, $options);
        return str_replace($this->full_name, $token_value, $label);
    }
public function substitute($label, $token_values, $language, $options = array()) {
//        Logger::instance()->debug("Substituting $label in " . $language->locale);
        $token_value = $this->tokenValue($token_values, $language, $options);
        return str_replace($this->full_name, $token_value, $label);
    }
public function substitute ( $ label , $ token_values , $ language , $ options = array ( ) ) { //        Logger::instance()->debug("Substituting $label in " . $language->locale); $ token_value = $ this -> tokenValue ( $ token_values , $ language , $ options ) ; return str_replace ( $ this -> full_name , $ token_value , $ label ) ; }
Main substitution function

@param string $label
@param mixed[] $token_values
@param \Tr8n\Language $language
@param mixed[] $options
@return mixed
Main substitution function