public function contextForLanguage($language, $opts = array()) {
        if (count($this->context_keys) > 0) {
            $ctx = $language->contextByKeyword($this->context_keys[0]);
        } else {
            $ctx = $language->contextByTokenName($this->short_name);
        }

        return $ctx;
    }
public function contextForLanguage($language, $opts = array()) {
        if (count($this->context_keys) > 0) {
            $ctx = $language->contextByKeyword($this->context_keys[0]);
        } else {
            $ctx = $language->contextByTokenName($this->short_name);
        }

        return $ctx;
    }
public function contextForLanguage ( $ language , $ opts = array ( ) ) { if ( count ( $ this -> context_keys ) > 0 ) { $ ctx = $ language -> contextByKeyword ( $ this -> context_keys [ 0 ] ) ; } else { $ ctx = $ language -> contextByTokenName ( $ this -> short_name ) ; } return $ ctx ; }
For transform tokens, we can only use the first context key, if it is not mapped in the context itself.

{user:gender | male: , female: ... }

It is not possible to apply multiple context rules on a single token at the same time:

{user:gender:value | .... hah?}

It is still possible to setup dependencies on multiple contexts.

{user:gender:value}   - just not with transform tokens

@param \Tr8n\Language $language
@param array $opts
@return \Tr8n\LanguageContext|null
@throws \Tr8n\Tr8nException
For transform tokens we can only use the first context key if it is not mapped in the context itself .