public function read( $identifier, $defaultTranslation = false )
   {

      if ( ! isset( $this->_options[ 'data' ] ) )
      {
         $this->reload();
      }

      if ( ! \is_int( $identifier ) && ! \is_string( $identifier ) )
      {
         // No identifier => RETURN ALL REGISTERED TRANSLATIONS
         return $this->_options[ 'data' ];
      }

      // A known identifier format
      if ( ! isset( $this->_options[ 'data' ][ $identifier ] ) )
      {
         // The translation not exists
         return $defaultTranslation;
      }

      return $this->_options[ 'data' ][ $identifier ];

   }
public function read( $identifier, $defaultTranslation = false )
   {

      if ( ! isset( $this->_options[ 'data' ] ) )
      {
         $this->reload();
      }

      if ( ! \is_int( $identifier ) && ! \is_string( $identifier ) )
      {
         // No identifier => RETURN ALL REGISTERED TRANSLATIONS
         return $this->_options[ 'data' ];
      }

      // A known identifier format
      if ( ! isset( $this->_options[ 'data' ][ $identifier ] ) )
      {
         // The translation not exists
         return $defaultTranslation;
      }

      return $this->_options[ 'data' ][ $identifier ];

   }
public function read ( $ identifier , $ defaultTranslation = false ) { if ( ! isset ( $ this -> _options [ 'data' ] ) ) { $ this -> reload ( ) ; } if ( ! \ is_int ( $ identifier ) && ! \ is_string ( $ identifier ) ) { // No identifier => RETURN ALL REGISTERED TRANSLATIONS return $ this -> _options [ 'data' ] ; } // A known identifier format if ( ! isset ( $ this -> _options [ 'data' ] [ $ identifier ] ) ) { // The translation not exists return $ defaultTranslation ; } return $ this -> _options [ 'data' ] [ $ identifier ] ; }
Reads one or more translation values.

@param  string|int $identifier
@param  mixed      $defaultTranslation Is returned if no translation was found for defined identifier.
@return mixed
Reads one or more translation values .