original_string: 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 ];
  
     }
code: 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 ];
  
     }
code_tokens: 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 ] ; }
docstring: 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
docstring_tokens: Reads one or more translation values .