public function getLanguage($vocabulary_id, $language_id = null)
    {
        if (!$this->isTranslatable($vocabulary_id)) {
            return 1;
        }

        if ($language_id === null) {
            return I18N::getCurrentId();
        }

        return $language_id;
    }
public function getLanguage($vocabulary_id, $language_id = null)
    {
        if (!$this->isTranslatable($vocabulary_id)) {
            return 1;
        }

        if ($language_id === null) {
            return I18N::getCurrentId();
        }

        return $language_id;
    }
public function getLanguage ( $ vocabulary_id , $ language_id = null ) { if ( ! $ this -> isTranslatable ( $ vocabulary_id ) ) { return 1 ; } if ( $ language_id === null ) { return I18N :: getCurrentId ( ) ; } return $ language_id ; }
Get the internal language for the vocabulary

This will return the language_id if the vocabulary is translated or 1 if it's not

@param int|string $vocabulary_id
@param int $language_id
@return int|null
Get the internal language for the vocabulary