original_string: public function isTranslationAttribute($key)
      {
          if ($this->isSpecialAttribute($key))
          {
              return false;
          }
  
          // When there is no node type we exclude source attributes
          return $this->_isTranslationAttribute($key) ||
          (is_null($this->getNodeTypeName()) ? false : $this->isSourceAttribute($key));
      }
code: public function isTranslationAttribute($key)
      {
          if ($this->isSpecialAttribute($key))
          {
              return false;
          }
  
          // When there is no node type we exclude source attributes
          return $this->_isTranslationAttribute($key) ||
          (is_null($this->getNodeTypeName()) ? false : $this->isSourceAttribute($key));
      }
code_tokens: public function isTranslationAttribute ( $ key ) { if ( $ this -> isSpecialAttribute ( $ key ) ) { return false ; } // When there is no node type we exclude source attributes return $ this -> _isTranslationAttribute ( $ key ) || ( is_null ( $ this -> getNodeTypeName ( ) ) ? false : $ this -> isSourceAttribute ( $ key ) ) ; }
docstring: Checks if key is a translation attribute
  
  @param string $key
  @return bool
docstring_tokens: Checks if key is a translation attribute