original_string: protected function setLang() 
      {
          $array = explode(",", $this->_accept_language);
          $ca = count($array);
          for($i = 0; $i < $ca; $i++) 
          {
              //Konqueror
              $array[$i] = str_replace(" ", null, $array[$i]);
              $array[$i] = substr($array[$i], 0, 2);
              $array[$i] = strtolower($array[$i]);
          }
          $array = array_unique($array);
          $this->_lang = strtoupper($array[0]);
          if(empty($this->_lang) || strlen($this->_lang) < 2) 
          {
          	$this->_lang = 'Unknown';
          }
          return true;
      }
code: protected function setLang() 
      {
          $array = explode(",", $this->_accept_language);
          $ca = count($array);
          for($i = 0; $i < $ca; $i++) 
          {
              //Konqueror
              $array[$i] = str_replace(" ", null, $array[$i]);
              $array[$i] = substr($array[$i], 0, 2);
              $array[$i] = strtolower($array[$i]);
          }
          $array = array_unique($array);
          $this->_lang = strtoupper($array[0]);
          if(empty($this->_lang) || strlen($this->_lang) < 2) 
          {
          	$this->_lang = 'Unknown';
          }
          return true;
      }
code_tokens: protected function setLang ( ) { $ array = explode ( "," , $ this -> _accept_language ) ; $ ca = count ( $ array ) ; for ( $ i = 0 ; $ i < $ ca ; $ i ++ ) { //Konqueror $ array [ $ i ] = str_replace ( " " , null , $ array [ $ i ] ) ; $ array [ $ i ] = substr ( $ array [ $ i ] , 0 , 2 ) ; $ array [ $ i ] = strtolower ( $ array [ $ i ] ) ; } $ array = array_unique ( $ array ) ; $ this -> _lang = strtoupper ( $ array [ 0 ] ) ; if ( empty ( $ this -> _lang ) || strlen ( $ this -> _lang ) < 2 ) { $ this -> _lang = 'Unknown' ; } return true ; }
docstring: Ermittle akzeptierten Sprachen
  
  @return bool	true
  @access protected
docstring_tokens: Ermittle akzeptierten Sprachen