components/I18n/I18n.php
public function obj_is_language_enabled( $locale, $data ) {

		// If the locale isn't enabled in the global scope from the component it's always disabled
		if ( ! array_key_exists( $locale, $this->languages ) ) {
			return false;
		}
		$data    = (array) $data;
		$options = ( isset( $data['options'] ) ) ? $data['options'] : $data;
		// If it doesn't exist in the object data then use the default (enabled)
		if ( isset( $options['enable_i18n'][ $locale ] ) && false === (bool) $options['enable_i18n'][ $locale ] ) {
			return false;
		}

		return true;
	}
public function obj_is_language_enabled( $locale, $data ) {

		// If the locale isn't enabled in the global scope from the component it's always disabled
		if ( ! array_key_exists( $locale, $this->languages ) ) {
			return false;
		}
		$data    = (array) $data;
		$options = ( isset( $data['options'] ) ) ? $data['options'] : $data;
		// If it doesn't exist in the object data then use the default (enabled)
		if ( isset( $options['enable_i18n'][ $locale ] ) && false === (bool) $options['enable_i18n'][ $locale ] ) {
			return false;
		}

		return true;
	}
public function obj_is_language_enabled ( $ locale , $ data ) { // If the locale isn't enabled in the global scope from the component it's always disabled if ( ! array_key_exists ( $ locale , $ this -> languages ) ) { return false ; } $ data = ( array ) $ data ; $ options = ( isset ( $ data [ 'options' ] ) ) ? $ data [ 'options' ] : $ data ; // If it doesn't exist in the object data then use the default (enabled) if ( isset ( $ options [ 'enable_i18n' ] [ $ locale ] ) && false === ( bool ) $ options [ 'enable_i18n' ] [ $ locale ] ) { return false ; } return true ; }
Check if a language is get to enabled for an object

@since 0.1.0

@param  string $locale The locale to validate
@param  array  $data   Object data

@return bool
Check if a language is get to enabled for an object